1<?php 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: src/proto/grpc/testing/echo_messages.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.ResponseParams</code> 13 */ 14class ResponseParams extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * Generated from protobuf field <code>int64 request_deadline = 1;</code> 18 */ 19 protected $request_deadline = 0; 20 /** 21 * Generated from protobuf field <code>string host = 2;</code> 22 */ 23 protected $host = ''; 24 /** 25 * Generated from protobuf field <code>string peer = 3;</code> 26 */ 27 protected $peer = ''; 28 29 /** 30 * Constructor. 31 * 32 * @param array $data { 33 * Optional. Data for populating the Message object. 34 * 35 * @type int|string $request_deadline 36 * @type string $host 37 * @type string $peer 38 * } 39 */ 40 public function __construct($data = NULL) { 41 \GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce(); 42 parent::__construct($data); 43 } 44 45 /** 46 * Generated from protobuf field <code>int64 request_deadline = 1;</code> 47 * @return int|string 48 */ 49 public function getRequestDeadline() 50 { 51 return $this->request_deadline; 52 } 53 54 /** 55 * Generated from protobuf field <code>int64 request_deadline = 1;</code> 56 * @param int|string $var 57 * @return $this 58 */ 59 public function setRequestDeadline($var) 60 { 61 GPBUtil::checkInt64($var); 62 $this->request_deadline = $var; 63 64 return $this; 65 } 66 67 /** 68 * Generated from protobuf field <code>string host = 2;</code> 69 * @return string 70 */ 71 public function getHost() 72 { 73 return $this->host; 74 } 75 76 /** 77 * Generated from protobuf field <code>string host = 2;</code> 78 * @param string $var 79 * @return $this 80 */ 81 public function setHost($var) 82 { 83 GPBUtil::checkString($var, True); 84 $this->host = $var; 85 86 return $this; 87 } 88 89 /** 90 * Generated from protobuf field <code>string peer = 3;</code> 91 * @return string 92 */ 93 public function getPeer() 94 { 95 return $this->peer; 96 } 97 98 /** 99 * Generated from protobuf field <code>string peer = 3;</code> 100 * @param string $var 101 * @return $this 102 */ 103 public function setPeer($var) 104 { 105 GPBUtil::checkString($var, True); 106 $this->peer = $var; 107 108 return $this; 109 } 110 111} 112 113