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 GBGB (used for storage SKUs).IAAS_USAGEFor IaaS SKUs like Google Cloud, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource.LICENSED_USERActive licensed users(for Voice SKUs).MAUMonthly active user.MINUTESVoice usage.RESOURCE_TYPE_UNSPECIFIEDNot used.SEATSeat.SUBSCRIPTIONFor Google Cloud subscriptions like Anthos or SAP.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intGB_VALUEGB (used for storage SKUs).static intIAAS_USAGE_VALUEFor IaaS SKUs like Google Cloud, monetization is based on usage accrued on your billing account irrespective of the type of monetizable resource.static intLICENSED_USER_VALUEActive licensed users(for Voice SKUs).static intMAU_VALUEMonthly active user.static intMINUTES_VALUEVoice usage.static intRESOURCE_TYPE_UNSPECIFIED_VALUENot used.static intSEAT_VALUESeat.static intSUBSCRIPTION_VALUEFor 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 ResourceTypeforNumber(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<ResourceType>internalGetValueMap()static ResourceTypevalueOf(int value)Deprecated.static ResourceTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ResourceTypevalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
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 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
-
-