<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1.proto

namespace Rv\Data;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>rv.data.NetworkAPI_v1</code>
 */
class NetworkAPI_v1 extends \Google\Protobuf\Internal\Message
{
    protected $Command;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\NetworkAPI_v1\Action $action
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI_v1.Action action = 1;</code>
     * @return \Rv\Data\NetworkAPI_v1\Action|null
     */
    public function getAction()
    {
        return $this->readOneof(1);
    }

    public function hasAction()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.rv.data.NetworkAPI_v1.Action action = 1;</code>
     * @param \Rv\Data\NetworkAPI_v1\Action $var
     * @return $this
     */
    public function setAction($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI_v1\Action::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getCommand()
    {
        return $this->whichOneof("Command");
    }

}

