Reference documentation and code samples for the Google Cloud Service Usage V1 Client class State.
Whether or not a service has been enabled for use by a consumer.
Protobuf typegoogle.api.serviceusage.v1.State
Namespace
Google \ Cloud \ ServiceUsage \ V1
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
STATE_UNSPECIFIED
Value: 0
The default value, which indicates that the enabled state of the service
is unspecified or not meaningful. Currently, all consumers other than
projects (such as folders and organizations) are always in this state.
Generated from protobuf enumSTATE_UNSPECIFIED = 0;
DISABLED
Value: 1
The service cannot be used by this consumer. It has either been explicitly
disabled, or has never been enabled.
Generated from protobuf enumDISABLED = 1;
ENABLED
Value: 2
The service has been explicitly enabled for use by this consumer.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Service Usage V1 Client - Class State (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-usage/latest/V1.State)\n- [2.0.3](/php/docs/reference/cloud-service-usage/2.0.3/V1.State)\n- [1.3.4](/php/docs/reference/cloud-service-usage/1.3.4/V1.State)\n- [1.2.3](/php/docs/reference/cloud-service-usage/1.2.3/V1.State)\n- [1.1.1](/php/docs/reference/cloud-service-usage/1.1.1/V1.State)\n- [1.0.5](/php/docs/reference/cloud-service-usage/1.0.5/V1.State) \nReference documentation and code samples for the Google Cloud Service Usage V1 Client class State.\n\nWhether or not a service has been enabled for use by a consumer.\n\nProtobuf type `google.api.serviceusage.v1.State`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceUsage \\\\ V1\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### STATE_UNSPECIFIED\n\n Value: 0\n\nThe default value, which indicates that the enabled state of the service\nis unspecified or not meaningful. Currently, all consumers other than\nprojects (such as folders and organizations) are always in this state.\n\nGenerated from protobuf enum `STATE_UNSPECIFIED = 0;`\n\n### DISABLED\n\n Value: 1\n\nThe service cannot be used by this consumer. It has either been explicitly\ndisabled, or has never been enabled.\n\nGenerated from protobuf enum `DISABLED = 1;`\n\n### ENABLED\n\n Value: 2\n\nThe service has been explicitly enabled for use by this consumer.\n\nGenerated from protobuf enum `ENABLED = 2;`"]]