Package com.google.api
Enum ResourceDescriptor.Style
- java.lang.Object
-
- java.lang.Enum<ResourceDescriptor.Style>
-
- com.google.api.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 enumgoogle.api.ResourceDescriptor.Style
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECLARATIVE_FRIENDLYThis resource is intended to be "declarative-friendly".STYLE_UNSPECIFIEDThe unspecified value.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDECLARATIVE_FRIENDLY_VALUEThis resource is intended to be "declarative-friendly".static intSTYLE_UNSPECIFIED_VALUEThe unspecified value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ResourceDescriptor.StyleforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ResourceDescriptor.Style>internalGetValueMap()static ResourceDescriptor.StylevalueOf(int value)Deprecated.static ResourceDescriptor.StylevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ResourceDescriptor.StylevalueOf(String name)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 Detail
-
STYLE_UNSPECIFIED
public static final ResourceDescriptor.Style STYLE_UNSPECIFIED
The unspecified value. Do not use.
STYLE_UNSPECIFIED = 0;
-
DECLARATIVE_FRIENDLY
public static final ResourceDescriptor.Style 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
public static final ResourceDescriptor.Style UNRECOGNIZED
-
-
Field Detail
-
STYLE_UNSPECIFIED_VALUE
public static final int STYLE_UNSPECIFIED_VALUE
The unspecified value. Do not use.
STYLE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
DECLARATIVE_FRIENDLY_VALUE
public static final int DECLARATIVE_FRIENDLY_VALUE
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;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ResourceDescriptor.Style[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceDescriptor.Style c : ResourceDescriptor.Style.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceDescriptor.Style valueOf(String name)
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ResourceDescriptor.Style valueOf(int value)
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
public static ResourceDescriptor.Style forNumber(int value)
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-