Reference documentation and code samples for the Google API Common Protos Client class ContextRule.
A context rule provides information about the context for an individual API element.
Generated from protobuf message google.api.ContextRule
Namespace
Google \ ApiMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ selector
↳ requested
array
A list of full type names of requested contexts, only the requested context will be made available to the backend.
↳ provided
array
A list of full type names of provided contexts. It is used to support propagating HTTP headers and ETags from the response extension.
↳ allowed_request_extensions
array
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
↳ allowed_response_extensions
array
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
getSelector
Selects the methods to which this rule applies.
Refer to selector for syntax details.
string
setSelector
Selects the methods to which this rule applies.
Refer to selector for syntax details.
var
string
$this
getRequested
A list of full type names of requested contexts, only the requested context will be made available to the backend.
setRequested
A list of full type names of requested contexts, only the requested context will be made available to the backend.
var
string[]
$this
getProvided
A list of full type names of provided contexts. It is used to support propagating HTTP headers and ETags from the response extension.
setProvided
A list of full type names of provided contexts. It is used to support propagating HTTP headers and ETags from the response extension.
var
string[]
$this
getAllowedRequestExtensions
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
setAllowedRequestExtensions
A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend.
var
string[]
$this
getAllowedResponseExtensions
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
setAllowedResponseExtensions
A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client.
var
string[]
$this