Package com.google.cloud.channel.v1
Enum ResourceType
- java.lang.Object
-
- java.lang.Enum<ResourceType>
-
- com.google.cloud.channel.v1.ResourceType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ResourceType>
public enum ResourceType extends Enum<ResourceType> implements com.google.protobuf.ProtocolMessageEnum
Represents the type for a monetizable resource(any entity on which billing happens). For example, this could be MINUTES for Google Voice and GB for Google Drive. One SKU can map to multiple monetizable resources.
Protobuf enumgoogle.cloud.channel.v1.ResourceType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GB
GB (used for storage SKUs).IAAS_USAGE
For IaaS SKUs like Google Cloud, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource.LICENSED_USER
Active licensed users(for Voice SKUs).MAU
Monthly active user.MINUTES
Voice usage.RESOURCE_TYPE_UNSPECIFIED
Not used.SEAT
Seat.SUBSCRIPTION
For Google Cloud subscriptions like Anthos or SAP.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
GB_VALUE
GB (used for storage SKUs).static int
IAAS_USAGE_VALUE
For IaaS SKUs like Google Cloud, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource.static int
LICENSED_USER_VALUE
Active licensed users(for Voice SKUs).static int
MAU_VALUE
Monthly active user.static int
MINUTES_VALUE
Voice usage.static int
RESOURCE_TYPE_UNSPECIFIED_VALUE
Not used.static int
SEAT_VALUE
Seat.static int
SUBSCRIPTION_VALUE
For Google Cloud subscriptions like Anthos or SAP.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ResourceType
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<ResourceType>
internalGetValueMap()
static ResourceType
valueOf(int value)
Deprecated.static ResourceType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static ResourceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESOURCE_TYPE_UNSPECIFIED
public static final ResourceType RESOURCE_TYPE_UNSPECIFIED
Not used.
RESOURCE_TYPE_UNSPECIFIED = 0;
-
SEAT
public static final ResourceType SEAT
Seat.
SEAT = 1;
-
MAU
public static final ResourceType MAU
Monthly active user.
MAU = 2;
-
GB
public static final ResourceType GB
GB (used for storage SKUs).
GB = 3;
-
LICENSED_USER
public static final ResourceType LICENSED_USER
Active licensed users(for Voice SKUs).
LICENSED_USER = 4;
-
MINUTES
public static final ResourceType MINUTES
Voice usage.
MINUTES = 5;
-
IAAS_USAGE
public static final ResourceType IAAS_USAGE
For IaaS SKUs like Google Cloud, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource. This enum represents an aggregated resource/container for all usage SKUs on a billing account. Currently, only applicable to Google Cloud.
IAAS_USAGE = 6;
-
SUBSCRIPTION
public static final ResourceType SUBSCRIPTION
For Google Cloud subscriptions like Anthos or SAP.
SUBSCRIPTION = 7;
-
UNRECOGNIZED
public static final ResourceType UNRECOGNIZED
-
-
Field Detail
-
RESOURCE_TYPE_UNSPECIFIED_VALUE
public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE
Not used.
RESOURCE_TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
SEAT_VALUE
public static final int SEAT_VALUE
Seat.
SEAT = 1;
- See Also:
- Constant Field Values
-
MAU_VALUE
public static final int MAU_VALUE
Monthly active user.
MAU = 2;
- See Also:
- Constant Field Values
-
GB_VALUE
public static final int GB_VALUE
GB (used for storage SKUs).
GB = 3;
- See Also:
- Constant Field Values
-
LICENSED_USER_VALUE
public static final int LICENSED_USER_VALUE
Active licensed users(for Voice SKUs).
LICENSED_USER = 4;
- See Also:
- Constant Field Values
-
MINUTES_VALUE
public static final int MINUTES_VALUE
Voice usage.
MINUTES = 5;
- See Also:
- Constant Field Values
-
IAAS_USAGE_VALUE
public static final int IAAS_USAGE_VALUE
For IaaS SKUs like Google Cloud, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource. This enum represents an aggregated resource/container for all usage SKUs on a billing account. Currently, only applicable to Google Cloud.
IAAS_USAGE = 6;
- See Also:
- Constant Field Values
-
SUBSCRIPTION_VALUE
public static final int SUBSCRIPTION_VALUE
For Google Cloud subscriptions like Anthos or SAP.
SUBSCRIPTION = 7;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ResourceType[] 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 (ResourceType c : ResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceType 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 ResourceType 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 ResourceType 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<ResourceType> 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 ResourceType 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
-
-