Google API Common Protos Client - Class Control (4.8.3)

Reference documentation and code samples for the Google API Common Protos Client class Control.

Selects and configures the service controller used by the service.

Example: control: environment: servicecontrol.googleapis.com

Generated from protobuf message google.api.Control

Namespace

Google \ Api

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ environment string

The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com

↳ method_policies array<MethodPolicy>

Defines policies applying to the API methods of the service.

getEnvironment

The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com

Returns
Type Description
string

setEnvironment

The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com

Parameter
Name Description
var string
Returns
Type Description
$this

getMethodPolicies

Defines policies applying to the API methods of the service.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMethodPolicies

Defines policies applying to the API methods of the service.

Parameter
Name Description
var array<MethodPolicy>
Returns
Type Description
$this