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.EchoResponse</code> 13 */ 14class EchoResponse extends \Google\Protobuf\Internal\Message 15{ 16 /** 17 * Generated from protobuf field <code>string message = 1;</code> 18 */ 19 protected $message = ''; 20 /** 21 * Generated from protobuf field <code>.grpc.testing.ResponseParams param = 2;</code> 22 */ 23 protected $param = null; 24 25 /** 26 * Constructor. 27 * 28 * @param array $data { 29 * Optional. Data for populating the Message object. 30 * 31 * @type string $message 32 * @type \Grpc\Testing\ResponseParams $param 33 * } 34 */ 35 public function __construct($data = NULL) { 36 \GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce(); 37 parent::__construct($data); 38 } 39 40 /** 41 * Generated from protobuf field <code>string message = 1;</code> 42 * @return string 43 */ 44 public function getMessage() 45 { 46 return $this->message; 47 } 48 49 /** 50 * Generated from protobuf field <code>string message = 1;</code> 51 * @param string $var 52 * @return $this 53 */ 54 public function setMessage($var) 55 { 56 GPBUtil::checkString($var, True); 57 $this->message = $var; 58 59 return $this; 60 } 61 62 /** 63 * Generated from protobuf field <code>.grpc.testing.ResponseParams param = 2;</code> 64 * @return \Grpc\Testing\ResponseParams 65 */ 66 public function getParam() 67 { 68 return $this->param; 69 } 70 71 /** 72 * Generated from protobuf field <code>.grpc.testing.ResponseParams param = 2;</code> 73 * @param \Grpc\Testing\ResponseParams $var 74 * @return $this 75 */ 76 public function setParam($var) 77 { 78 GPBUtil::checkMessage($var, \Grpc\Testing\ResponseParams::class); 79 $this->param = $var; 80 81 return $this; 82 } 83 84} 85 86