Enum 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 enum google.cloud.channel.v1.ResourceType
    • 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
      • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null