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
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google API Common Protos Client - Class Control (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.Control)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.Control)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.Control)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.Control)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.Control)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.Control) \nReference documentation and code samples for the Google API Common Protos Client class Control.\n\nSelects and configures the service controller used by the service.\n\nExample:\ncontrol:\nenvironment: servicecontrol.googleapis.com\n\nGenerated from protobuf message `google.api.Control`\n\nNamespace\n---------\n\nGoogle \\\\ Api\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getEnvironment\n\nThe service controller environment to use. If empty, no control plane\nfeature (like quota and billing) will be enabled. The recommended value for\nmost services is servicecontrol.googleapis.com\n\n### setEnvironment\n\nThe service controller environment to use. If empty, no control plane\nfeature (like quota and billing) will be enabled. The recommended value for\nmost services is servicecontrol.googleapis.com\n\n### getMethodPolicies\n\nDefines policies applying to the API methods of the service.\n\n### setMethodPolicies\n\nDefines policies applying to the API methods of the service."]]