Package com.google.cloud.channel.v1
Enum Entitlement.SuspensionReason
- java.lang.Object
-
- java.lang.Enum<Entitlement.SuspensionReason>
-
- com.google.cloud.channel.v1.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 enumgoogle.cloud.channel.v1.Entitlement.SuspensionReason
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OTHEROther reasons (internal reasons, abuse, etc.).PENDING_TOS_ACCEPTANCEEntitlement was automatically suspended on creation for pending ToS acceptance on customer.RENEWAL_WITH_TYPE_CANCELEntitlement renewal was canceled.RESELLER_INITIATEDEntitlement was manually suspended by the Reseller.SUSPENSION_REASON_UNSPECIFIEDNot used.TRIAL_ENDEDTrial ended.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intOTHER_VALUEOther reasons (internal reasons, abuse, etc.).static intPENDING_TOS_ACCEPTANCE_VALUEEntitlement was automatically suspended on creation for pending ToS acceptance on customer.static intRENEWAL_WITH_TYPE_CANCEL_VALUEEntitlement renewal was canceled.static intRESELLER_INITIATED_VALUEEntitlement was manually suspended by the Reseller.static intSUSPENSION_REASON_UNSPECIFIED_VALUENot used.static intTRIAL_ENDED_VALUETrial ended.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Entitlement.SuspensionReasonforNumber(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<Entitlement.SuspensionReason>internalGetValueMap()static Entitlement.SuspensionReasonvalueOf(int value)Deprecated.static Entitlement.SuspensionReasonvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Entitlement.SuspensionReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static Entitlement.SuspensionReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
TRIAL_ENDED
public static final Entitlement.SuspensionReason TRIAL_ENDED
Trial ended.
TRIAL_ENDED = 2;
-
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;
-
OTHER
public static final Entitlement.SuspensionReason OTHER
Other reasons (internal reasons, abuse, etc.).
OTHER = 100;
-
UNRECOGNIZED
public static final Entitlement.SuspensionReason UNRECOGNIZED
-
-
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 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 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 nameNullPointerException- 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.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Entitlement.SuspensionReason> 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 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 nameNullPointerException- if the argument is null
-
-