function Method::setOptions
Any metadata attached to the method.
Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code>
Parameters
array<\Google\Protobuf\Option>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Method.php, line 236
Class
- Method
- Method represents a method of an API interface.
Namespace
Google\ProtobufCode
public function setOptions($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Option::class);
$this->options = $arr;
return $this;
}