Reference documentation and code samples for the Google API Common Protos Client class MethodPolicy.
Defines policies applying to an RPC method.
Generated from protobuf message google.api.MethodPolicy
Namespace
Google \ ApiMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ selector |
string
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler . |
↳ request_policies |
array<Google\Api\FieldPolicy>
Policies that are applicable to the request message. |
getSelector
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription".
Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
Returns | |
---|---|
Type | Description |
string |
setSelector
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription".
Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getRequestPolicies
Policies that are applicable to the request message.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setRequestPolicies
Policies that are applicable to the request message.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Api\FieldPolicy>
|
Returns | |
---|---|
Type | Description |
$this |