Package com.google.api
Enum ResourceDescriptor.Style
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ResourceDescriptor.Style>
- Enclosing class:
- ResourceDescriptor
public static enum ResourceDescriptor.Style
extends Enum<ResourceDescriptor.Style>
implements com.google.protobuf.ProtocolMessageEnum
A flag representing a specific style that a resource claims to conform to.Protobuf enum
google.api.ResourceDescriptor.Style
-
Enum Constant Summary
Enum ConstantDescriptionThis resource is intended to be "declarative-friendly".The unspecified value. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
This resource is intended to be "declarative-friendly".static final int
The unspecified value. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceDescriptor.Style
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<ResourceDescriptor.Style>
static ResourceDescriptor.Style
valueOf
(int value) Deprecated.static ResourceDescriptor.Style
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ResourceDescriptor.Style
Returns the enum constant of this type with the specified name.static ResourceDescriptor.Style[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STYLE_UNSPECIFIED
The unspecified value. Do not use.
STYLE_UNSPECIFIED = 0;
-
DECLARATIVE_FRIENDLY
This resource is intended to be "declarative-friendly". Declarative-friendly resources must be more strictly consistent, and setting this to true communicates to tools that this resource should adhere to declarative-friendly expectations. Note: This is used by the API linter (linter.aip.dev) to enable additional checks.
DECLARATIVE_FRIENDLY = 1;
-
UNRECOGNIZED
-
-
Field Details
-
STYLE_UNSPECIFIED_VALUE
public static final int STYLE_UNSPECIFIED_VALUEThe unspecified value. Do not use.
STYLE_UNSPECIFIED = 0;
- See Also:
-
DECLARATIVE_FRIENDLY_VALUE
public static final int DECLARATIVE_FRIENDLY_VALUEThis resource is intended to be "declarative-friendly". Declarative-friendly resources must be more strictly consistent, and setting this to true communicates to tools that this resource should adhere to declarative-friendly expectations. Note: This is used by the API linter (linter.aip.dev) to enable additional checks.
DECLARATIVE_FRIENDLY = 1;
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ResourceDescriptor.Style> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ResourceDescriptor.Style valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-