Google API Common Protos Client - Class MethodPolicy (4.9.0)

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 \ Api

Methods

__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< 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

setRequestPolicies

Policies that are applicable to the request message.

Parameter
Name
Description
var
array< FieldPolicy >
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: