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 and Description |
|---|
DECLARATIVE_FRIENDLY
This resource is intended to be "declarative-friendly".
|
STYLE_UNSPECIFIED
The unspecified value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DECLARATIVE_FRIENDLY_VALUE
This resource is intended to be "declarative-friendly".
|
static int |
STYLE_UNSPECIFIED_VALUE
The unspecified value.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourceDescriptor.Style |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ResourceDescriptor.Style> |
internalGetValueMap() |
static ResourceDescriptor.Style |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ResourceDescriptor.Style |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ResourceDescriptor.Style |
valueOf(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.
|
public static final ResourceDescriptor.Style STYLE_UNSPECIFIED
The unspecified value. Do not use.
STYLE_UNSPECIFIED = 0;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;public static final ResourceDescriptor.Style UNRECOGNIZED
public static final int STYLE_UNSPECIFIED_VALUE
The unspecified value. Do not use.
STYLE_UNSPECIFIED = 0;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;public static ResourceDescriptor.Style[] values()
for (ResourceDescriptor.Style c : ResourceDescriptor.Style.values()) System.out.println(c);
public static ResourceDescriptor.Style valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ResourceDescriptor.Style valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ResourceDescriptor.Style forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ResourceDescriptor.Style> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ResourceDescriptor.Style valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021 Google LLC. All rights reserved.