Enum Entitlement.SuspensionReason

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Entitlement.SuspensionReason>
    Enclosing class:
    Entitlement

    public static enum Entitlement.SuspensionReason
    extends Enum<Entitlement.SuspensionReason>
    implements com.google.protobuf.ProtocolMessageEnum
     Suspension reason for an entitlement if
     [provisioning_state][google.cloud.channel.v1.Entitlement.provisioning_state]
     = SUSPENDED.
     
    Protobuf enum google.cloud.channel.v1.Entitlement.SuspensionReason
    • Enum Constant Detail

      • SUSPENSION_REASON_UNSPECIFIED

        public static final Entitlement.SuspensionReason SUSPENSION_REASON_UNSPECIFIED
         Not used.
         
        SUSPENSION_REASON_UNSPECIFIED = 0;
      • RESELLER_INITIATED

        public static final Entitlement.SuspensionReason RESELLER_INITIATED
         Entitlement was manually suspended by the Reseller.
         
        RESELLER_INITIATED = 1;
      • RENEWAL_WITH_TYPE_CANCEL

        public static final Entitlement.SuspensionReason RENEWAL_WITH_TYPE_CANCEL
         Entitlement renewal was canceled.
         
        RENEWAL_WITH_TYPE_CANCEL = 3;
      • PENDING_TOS_ACCEPTANCE

        public static final Entitlement.SuspensionReason PENDING_TOS_ACCEPTANCE
         Entitlement was automatically suspended on creation for pending ToS
         acceptance on customer.
         
        PENDING_TOS_ACCEPTANCE = 4;
    • Field Detail

      • SUSPENSION_REASON_UNSPECIFIED_VALUE

        public static final int SUSPENSION_REASON_UNSPECIFIED_VALUE
         Not used.
         
        SUSPENSION_REASON_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • RESELLER_INITIATED_VALUE

        public static final int RESELLER_INITIATED_VALUE
         Entitlement was manually suspended by the Reseller.
         
        RESELLER_INITIATED = 1;
        See Also:
        Constant Field Values
      • TRIAL_ENDED_VALUE

        public static final int TRIAL_ENDED_VALUE
         Trial ended.
         
        TRIAL_ENDED = 2;
        See Also:
        Constant Field Values
      • RENEWAL_WITH_TYPE_CANCEL_VALUE

        public static final int RENEWAL_WITH_TYPE_CANCEL_VALUE
         Entitlement renewal was canceled.
         
        RENEWAL_WITH_TYPE_CANCEL = 3;
        See Also:
        Constant Field Values
      • PENDING_TOS_ACCEPTANCE_VALUE

        public static final int PENDING_TOS_ACCEPTANCE_VALUE
         Entitlement was automatically suspended on creation for pending ToS
         acceptance on customer.
         
        PENDING_TOS_ACCEPTANCE = 4;
        See Also:
        Constant Field Values
      • OTHER_VALUE

        public static final int OTHER_VALUE
         Other reasons (internal reasons, abuse, etc.).
         
        OTHER = 100;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Entitlement.SuspensionReason[] 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 (Entitlement.SuspensionReason c : Entitlement.SuspensionReason.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Entitlement.SuspensionReason 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 Entitlement.SuspensionReason 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 Entitlement.SuspensionReason forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • 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 Entitlement.SuspensionReason 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