Enum State (2.57.0)

publicenumStateextendsEnum<State>implementsProtocolMessageEnum

Whether or not a service has been enabled for use by a consumer.

Protobuf enum google.api.serviceusage.v1.State

Implements

ProtocolMessageEnum

Static Fields

Name Description
DISABLED

The service cannot be used by this consumer. It has either been explicitly disabled, or has never been enabled.

DISABLED = 1;

DISABLED_VALUE

The service cannot be used by this consumer. It has either been explicitly disabled, or has never been enabled.

DISABLED = 1;

ENABLED

The service has been explicitly enabled for use by this consumer.

ENABLED = 2;

ENABLED_VALUE

The service has been explicitly enabled for use by this consumer.

ENABLED = 2;

STATE_UNSPECIFIED

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.

STATE_UNSPECIFIED = 0;

STATE_UNSPECIFIED_VALUE

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.

STATE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.