| OLD | NEW |
| (Empty) |
| 1 <?php | |
| 2 # Generated by the protocol buffer compiler. DO NOT EDIT! | |
| 3 # source: google/protobuf/descriptor.proto | |
| 4 | |
| 5 namespace Google\Protobuf\Internal; | |
| 6 | |
| 7 use Google\Protobuf\Internal\GPBType; | |
| 8 use Google\Protobuf\Internal\GPBWire; | |
| 9 use Google\Protobuf\Internal\RepeatedField; | |
| 10 use Google\Protobuf\Internal\InputStream; | |
| 11 | |
| 12 use Google\Protobuf\Internal\GPBUtil; | |
| 13 | |
| 14 /** | |
| 15 * <pre> | |
| 16 * Describes a method of a service. | |
| 17 * </pre> | |
| 18 * | |
| 19 * Protobuf type <code>google.protobuf.MethodDescriptorProto</code> | |
| 20 */ | |
| 21 class MethodDescriptorProto extends \Google\Protobuf\Internal\Message | |
| 22 { | |
| 23 /** | |
| 24 * <code>optional string name = 1;</code> | |
| 25 */ | |
| 26 private $name = ''; | |
| 27 private $has_name = false; | |
| 28 /** | |
| 29 * <pre> | |
| 30 * Input and output type names. These are resolved in the same way as | |
| 31 * FieldDescriptorProto.type_name, but must refer to a message type. | |
| 32 * </pre> | |
| 33 * | |
| 34 * <code>optional string input_type = 2;</code> | |
| 35 */ | |
| 36 private $input_type = ''; | |
| 37 private $has_input_type = false; | |
| 38 /** | |
| 39 * <code>optional string output_type = 3;</code> | |
| 40 */ | |
| 41 private $output_type = ''; | |
| 42 private $has_output_type = false; | |
| 43 /** | |
| 44 * <code>optional .google.protobuf.MethodOptions options = 4;</code> | |
| 45 */ | |
| 46 private $options = null; | |
| 47 private $has_options = false; | |
| 48 /** | |
| 49 * <pre> | |
| 50 * Identifies if client streams multiple client messages | |
| 51 * </pre> | |
| 52 * | |
| 53 * <code>optional bool client_streaming = 5 [default = false];</code> | |
| 54 */ | |
| 55 private $client_streaming = false; | |
| 56 private $has_client_streaming = false; | |
| 57 /** | |
| 58 * <pre> | |
| 59 * Identifies if server streams multiple server messages | |
| 60 * </pre> | |
| 61 * | |
| 62 * <code>optional bool server_streaming = 6 [default = false];</code> | |
| 63 */ | |
| 64 private $server_streaming = false; | |
| 65 private $has_server_streaming = false; | |
| 66 | |
| 67 public function __construct() { | |
| 68 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); | |
| 69 parent::__construct(); | |
| 70 } | |
| 71 | |
| 72 /** | |
| 73 * <code>optional string name = 1;</code> | |
| 74 */ | |
| 75 public function getName() | |
| 76 { | |
| 77 return $this->name; | |
| 78 } | |
| 79 | |
| 80 /** | |
| 81 * <code>optional string name = 1;</code> | |
| 82 */ | |
| 83 public function setName($var) | |
| 84 { | |
| 85 GPBUtil::checkString($var, True); | |
| 86 $this->name = $var; | |
| 87 $this->has_name = true; | |
| 88 } | |
| 89 | |
| 90 public function hasName() | |
| 91 { | |
| 92 return $this->has_name; | |
| 93 } | |
| 94 | |
| 95 /** | |
| 96 * <pre> | |
| 97 * Input and output type names. These are resolved in the same way as | |
| 98 * FieldDescriptorProto.type_name, but must refer to a message type. | |
| 99 * </pre> | |
| 100 * | |
| 101 * <code>optional string input_type = 2;</code> | |
| 102 */ | |
| 103 public function getInputType() | |
| 104 { | |
| 105 return $this->input_type; | |
| 106 } | |
| 107 | |
| 108 /** | |
| 109 * <pre> | |
| 110 * Input and output type names. These are resolved in the same way as | |
| 111 * FieldDescriptorProto.type_name, but must refer to a message type. | |
| 112 * </pre> | |
| 113 * | |
| 114 * <code>optional string input_type = 2;</code> | |
| 115 */ | |
| 116 public function setInputType($var) | |
| 117 { | |
| 118 GPBUtil::checkString($var, True); | |
| 119 $this->input_type = $var; | |
| 120 $this->has_input_type = true; | |
| 121 } | |
| 122 | |
| 123 public function hasInputType() | |
| 124 { | |
| 125 return $this->has_input_type; | |
| 126 } | |
| 127 | |
| 128 /** | |
| 129 * <code>optional string output_type = 3;</code> | |
| 130 */ | |
| 131 public function getOutputType() | |
| 132 { | |
| 133 return $this->output_type; | |
| 134 } | |
| 135 | |
| 136 /** | |
| 137 * <code>optional string output_type = 3;</code> | |
| 138 */ | |
| 139 public function setOutputType($var) | |
| 140 { | |
| 141 GPBUtil::checkString($var, True); | |
| 142 $this->output_type = $var; | |
| 143 $this->has_output_type = true; | |
| 144 } | |
| 145 | |
| 146 public function hasOutputType() | |
| 147 { | |
| 148 return $this->has_output_type; | |
| 149 } | |
| 150 | |
| 151 /** | |
| 152 * <code>optional .google.protobuf.MethodOptions options = 4;</code> | |
| 153 */ | |
| 154 public function getOptions() | |
| 155 { | |
| 156 return $this->options; | |
| 157 } | |
| 158 | |
| 159 /** | |
| 160 * <code>optional .google.protobuf.MethodOptions options = 4;</code> | |
| 161 */ | |
| 162 public function setOptions(&$var) | |
| 163 { | |
| 164 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MethodOptions::cla
ss); | |
| 165 $this->options = $var; | |
| 166 $this->has_options = true; | |
| 167 } | |
| 168 | |
| 169 public function hasOptions() | |
| 170 { | |
| 171 return $this->has_options; | |
| 172 } | |
| 173 | |
| 174 /** | |
| 175 * <pre> | |
| 176 * Identifies if client streams multiple client messages | |
| 177 * </pre> | |
| 178 * | |
| 179 * <code>optional bool client_streaming = 5 [default = false];</code> | |
| 180 */ | |
| 181 public function getClientStreaming() | |
| 182 { | |
| 183 return $this->client_streaming; | |
| 184 } | |
| 185 | |
| 186 /** | |
| 187 * <pre> | |
| 188 * Identifies if client streams multiple client messages | |
| 189 * </pre> | |
| 190 * | |
| 191 * <code>optional bool client_streaming = 5 [default = false];</code> | |
| 192 */ | |
| 193 public function setClientStreaming($var) | |
| 194 { | |
| 195 GPBUtil::checkBool($var); | |
| 196 $this->client_streaming = $var; | |
| 197 $this->has_client_streaming = true; | |
| 198 } | |
| 199 | |
| 200 public function hasClientStreaming() | |
| 201 { | |
| 202 return $this->has_client_streaming; | |
| 203 } | |
| 204 | |
| 205 /** | |
| 206 * <pre> | |
| 207 * Identifies if server streams multiple server messages | |
| 208 * </pre> | |
| 209 * | |
| 210 * <code>optional bool server_streaming = 6 [default = false];</code> | |
| 211 */ | |
| 212 public function getServerStreaming() | |
| 213 { | |
| 214 return $this->server_streaming; | |
| 215 } | |
| 216 | |
| 217 /** | |
| 218 * <pre> | |
| 219 * Identifies if server streams multiple server messages | |
| 220 * </pre> | |
| 221 * | |
| 222 * <code>optional bool server_streaming = 6 [default = false];</code> | |
| 223 */ | |
| 224 public function setServerStreaming($var) | |
| 225 { | |
| 226 GPBUtil::checkBool($var); | |
| 227 $this->server_streaming = $var; | |
| 228 $this->has_server_streaming = true; | |
| 229 } | |
| 230 | |
| 231 public function hasServerStreaming() | |
| 232 { | |
| 233 return $this->has_server_streaming; | |
| 234 } | |
| 235 | |
| 236 } | |
| 237 | |
| OLD | NEW |