Package com.google.api
Enum Class ResourceDescriptor.Style
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<ResourceDescriptor.Style>
,Constable
- Enclosing class:
- ResourceDescriptor
public static enum ResourceDescriptor.Style
extends Enum<ResourceDescriptor.Style>
implements com.google.protobuf.Internal.EnumLite
A flag representing a specific style that a resource claims to conform to.Protobuf enum
google.api.ResourceDescriptor.Style
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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) final int
static com.google.protobuf.Internal.EnumLiteMap<ResourceDescriptor.Style>
static com.google.protobuf.Internal.EnumVerifier
static ResourceDescriptor.Style
valueOf
(int value) Deprecated.static ResourceDescriptor.Style
Returns the enum constant of this class with the specified name.static ResourceDescriptor.Style[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ResourceDescriptor.Style> internalGetValueMap() -
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-