1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: src/proto/grpc/testing/payloads.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.ByteBufferParams</code> 13 */ 14class ByteBufferParams extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * Generated from protobuf field <code>int32 req_size = 1;</code> 18 */ 19 protected $req_size = 0; 20 /** 21 * Generated from protobuf field <code>int32 resp_size = 2;</code> 22 */ 23 protected $resp_size = 0; 24 25 /** 26 * Constructor. 27 * 28 * @param array $data { 29 * Optional. Data for populating the Message object. 30 * 31 * @type int $req_size 32 * @type int $resp_size 33 * } 34 */ 35 public function __construct($data = NULL) { 36 \GPBMetadata\Src\Proto\Grpc\Testing\Payloads::initOnce(); 37 parent::__construct($data); 38 } 39 40 /** 41 * Generated from protobuf field <code>int32 req_size = 1;</code> 42 * @return int 43 */ 44 public function getReqSize() 45 { 46 return $this->req_size; 47 } 48 49 /** 50 * Generated from protobuf field <code>int32 req_size = 1;</code> 51 * @param int $var 52 * @return $this 53 */ 54 public function setReqSize($var) 55 { 56 GPBUtil::checkInt32($var); 57 $this->req_size = $var; 58 59 return $this; 60 } 61 62 /** 63 * Generated from protobuf field <code>int32 resp_size = 2;</code> 64 * @return int 65 */ 66 public function getRespSize() 67 { 68 return $this->resp_size; 69 } 70 71 /** 72 * Generated from protobuf field <code>int32 resp_size = 2;</code> 73 * @param int $var 74 * @return $this 75 */ 76 public function setRespSize($var) 77 { 78 GPBUtil::checkInt32($var); 79 $this->resp_size = $var; 80 81 return $this; 82 } 83 84} 85 86