grpc.testing.ChannelArg
 */
class ChannelArg extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field string name = 1;
     */
    private $name = '';
    protected $value;
    public function __construct() {
        \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
        parent::__construct();
    }
    /**
     * Generated from protobuf field string name = 1;
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
    /**
     * Generated from protobuf field string name = 1;
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;
        return $this;
    }
    /**
     * Generated from protobuf field string str_value = 2;
     * @return string
     */
    public function getStrValue()
    {
        return $this->readOneof(2);
    }
    /**
     * Generated from protobuf field string str_value = 2;
     * @param string $var
     * @return $this
     */
    public function setStrValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);
        return $this;
    }
    /**
     * Generated from protobuf field int32 int_value = 3;
     * @return int
     */
    public function getIntValue()
    {
        return $this->readOneof(3);
    }
    /**
     * Generated from protobuf field int32 int_value = 3;
     * @param int $var
     * @return $this
     */
    public function setIntValue($var)
    {
        GPBUtil::checkInt32($var);
        $this->writeOneof(3, $var);
        return $this;
    }
    /**
     * @return string
     */
    public function getValue()
    {
        return $this->whichOneof("value");
    }
}