function ServiceDescriptorProto::setMethod
Generated from protobuf field <code>repeated .google.protobuf.MethodDescriptorProto method = 2;</code>
Parameters
array<\Google\Protobuf\Internal\MethodDescriptorProto>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ ServiceDescriptorProto.php, line 95
Class
- ServiceDescriptorProto
- Describes a service.
Namespace
Google\Protobuf\InternalCode
public function setMethod($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\MethodDescriptorProto::class);
$this->method = $arr;
return $this;
}