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 \ ApiMethods
__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<Google\Api\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<Google\Api\MethodPolicy>
|
Returns | |
---|---|
Type | Description |
$this |