Package com.google.cloud.billing.v1
Enum GeoTaxonomy.Type
- java.lang.Object
-
- java.lang.Enum<GeoTaxonomy.Type>
-
- com.google.cloud.billing.v1.GeoTaxonomy.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<GeoTaxonomy.Type>
- Enclosing class:
- GeoTaxonomy
public static enum GeoTaxonomy.Type extends Enum<GeoTaxonomy.Type> implements com.google.protobuf.ProtocolMessageEnum
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
Protobuf enumgoogle.cloud.billing.v1.GeoTaxonomy.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GLOBAL
The sku is global in nature, e.g.MULTI_REGIONAL
The sku is associated with multiple regions, e.g.REGIONAL
The sku is available in a specific region, e.g.TYPE_UNSPECIFIED
The type is not specified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
GLOBAL_VALUE
The sku is global in nature, e.g.static int
MULTI_REGIONAL_VALUE
The sku is associated with multiple regions, e.g.static int
REGIONAL_VALUE
The sku is available in a specific region, e.g.static int
TYPE_UNSPECIFIED_VALUE
The type is not specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static GeoTaxonomy.Type
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<GeoTaxonomy.Type>
internalGetValueMap()
static GeoTaxonomy.Type
valueOf(int value)
Deprecated.static GeoTaxonomy.Type
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static GeoTaxonomy.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeoTaxonomy.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_UNSPECIFIED
public static final GeoTaxonomy.Type TYPE_UNSPECIFIED
The type is not specified.
TYPE_UNSPECIFIED = 0;
-
GLOBAL
public static final GeoTaxonomy.Type GLOBAL
The sku is global in nature, e.g. a license sku. Global skus are available in all regions, and so have an empty region list.
GLOBAL = 1;
-
REGIONAL
public static final GeoTaxonomy.Type REGIONAL
The sku is available in a specific region, e.g. "us-west2".
REGIONAL = 2;
-
MULTI_REGIONAL
public static final GeoTaxonomy.Type MULTI_REGIONAL
The sku is associated with multiple regions, e.g. "us-west2" and "us-east1".
MULTI_REGIONAL = 3;
-
UNRECOGNIZED
public static final GeoTaxonomy.Type UNRECOGNIZED
-
-
Field Detail
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUE
The type is not specified.
TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
GLOBAL_VALUE
public static final int GLOBAL_VALUE
The sku is global in nature, e.g. a license sku. Global skus are available in all regions, and so have an empty region list.
GLOBAL = 1;
- See Also:
- Constant Field Values
-
REGIONAL_VALUE
public static final int REGIONAL_VALUE
The sku is available in a specific region, e.g. "us-west2".
REGIONAL = 2;
- See Also:
- Constant Field Values
-
MULTI_REGIONAL_VALUE
public static final int MULTI_REGIONAL_VALUE
The sku is associated with multiple regions, e.g. "us-west2" and "us-east1".
MULTI_REGIONAL = 3;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GeoTaxonomy.Type[] 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 (GeoTaxonomy.Type c : GeoTaxonomy.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeoTaxonomy.Type 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static GeoTaxonomy.Type 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 GeoTaxonomy.Type 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<GeoTaxonomy.Type> 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 GeoTaxonomy.Type 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
-
-