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 enum
google.cloud.channel.v1.Entitlement.SuspensionReason-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOther reasons (internal reasons, abuse, etc.).Entitlement was automatically suspended on creation for pending ToS acceptance on customer.Entitlement renewal was canceled.Entitlement was manually suspended by the Reseller.Not used.Trial ended. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOther reasons (internal reasons, abuse, etc.).static final intEntitlement was automatically suspended on creation for pending ToS acceptance on customer.static final intEntitlement renewal was canceled.static final intEntitlement was manually suspended by the Reseller.static final intNot used.static final intTrial ended. -
Method Summary
Modifier and TypeMethodDescriptionstatic Entitlement.SuspensionReasonforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Entitlement.SuspensionReason>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.SuspensionReasonReturns 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 Details
-
SUSPENSION_REASON_UNSPECIFIED
Not used.
SUSPENSION_REASON_UNSPECIFIED = 0; -
RESELLER_INITIATED
Entitlement was manually suspended by the Reseller.
RESELLER_INITIATED = 1; -
TRIAL_ENDED
Trial ended.
TRIAL_ENDED = 2; -
RENEWAL_WITH_TYPE_CANCEL
Entitlement renewal was canceled.
RENEWAL_WITH_TYPE_CANCEL = 3; -
PENDING_TOS_ACCEPTANCE
Entitlement was automatically suspended on creation for pending ToS acceptance on customer.
PENDING_TOS_ACCEPTANCE = 4; -
OTHER
Other reasons (internal reasons, abuse, etc.).
OTHER = 100; -
UNRECOGNIZED
-
-
Field Details
-
SUSPENSION_REASON_UNSPECIFIED_VALUE
public static final int SUSPENSION_REASON_UNSPECIFIED_VALUENot used.
SUSPENSION_REASON_UNSPECIFIED = 0;- See Also:
-
RESELLER_INITIATED_VALUE
public static final int RESELLER_INITIATED_VALUEEntitlement was manually suspended by the Reseller.
RESELLER_INITIATED = 1;- See Also:
-
TRIAL_ENDED_VALUE
public static final int TRIAL_ENDED_VALUETrial ended.
TRIAL_ENDED = 2;- See Also:
-
RENEWAL_WITH_TYPE_CANCEL_VALUE
public static final int RENEWAL_WITH_TYPE_CANCEL_VALUEEntitlement renewal was canceled.
RENEWAL_WITH_TYPE_CANCEL = 3;- See Also:
-
PENDING_TOS_ACCEPTANCE_VALUE
public static final int PENDING_TOS_ACCEPTANCE_VALUEEntitlement was automatically suspended on creation for pending ToS acceptance on customer.
PENDING_TOS_ACCEPTANCE = 4;- See Also:
-
OTHER_VALUE
public static final int OTHER_VALUEOther reasons (internal reasons, abuse, etc.).
OTHER = 100;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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 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
-