1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: src/proto/grpc/testing/control.proto 4 5namespace Grpc\Testing; 6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\RepeatedField; 9use Google\Protobuf\Internal\GPBUtil; 10 11/** 12 * Generated from protobuf message <code>grpc.testing.ChannelArg</code> 13 */ 14class ChannelArg extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * Generated from protobuf field <code>string name = 1;</code> 18 */ 19 private $name = ''; 20 protected $value; 21 22 public function __construct() { 23 \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); 24 parent::__construct(); 25 } 26 27 /** 28 * Generated from protobuf field <code>string name = 1;</code> 29 * @return string 30 */ 31 public function getName() 32 { 33 return $this->name; 34 } 35 36 /** 37 * Generated from protobuf field <code>string name = 1;</code> 38 * @param string $var 39 * @return $this 40 */ 41 public function setName($var) 42 { 43 GPBUtil::checkString($var, True); 44 $this->name = $var; 45 46 return $this; 47 } 48 49 /** 50 * Generated from protobuf field <code>string str_value = 2;</code> 51 * @return string 52 */ 53 public function getStrValue() 54 { 55 return $this->readOneof(2); 56 } 57 58 /** 59 * Generated from protobuf field <code>string str_value = 2;</code> 60 * @param string $var 61 * @return $this 62 */ 63 public function setStrValue($var) 64 { 65 GPBUtil::checkString($var, True); 66 $this->writeOneof(2, $var); 67 68 return $this; 69 } 70 71 /** 72 * Generated from protobuf field <code>int32 int_value = 3;</code> 73 * @return int 74 */ 75 public function getIntValue() 76 { 77 return $this->readOneof(3); 78 } 79 80 /** 81 * Generated from protobuf field <code>int32 int_value = 3;</code> 82 * @param int $var 83 * @return $this 84 */ 85 public function setIntValue($var) 86 { 87 GPBUtil::checkInt32($var); 88 $this->writeOneof(3, $var); 89 90 return $this; 91 } 92 93 /** 94 * @return string 95 */ 96 public function getValue() 97 { 98 return $this->whichOneof("value"); 99 } 100 101} 102 103