function Api::setSourceContext
Source context for the protocol buffer service represented by this message.
Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 5;</code>
Parameters
\Google\Protobuf\SourceContext $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Api.php, line 299
Class
- Api
- Api is a light-weight descriptor for an API Interface. Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which…
Namespace
Google\ProtobufCode
public function setSourceContext($var) {
GPBUtil::checkMessage($var, \Google\Protobuf\SourceContext::class);
$this->source_context = $var;
return $this;
}