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 OTHER
Other reasons (internal reasons, abuse, etc.).PENDING_TOS_ACCEPTANCE
Entitlement was automatically suspended on creation for pending ToS acceptance on customer.RENEWAL_WITH_TYPE_CANCEL
Entitlement renewal was canceled.RESELLER_INITIATED
Entitlement was manually suspended by the Reseller.SUSPENSION_REASON_UNSPECIFIED
Not used.TRIAL_ENDED
Trial ended.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
OTHER_VALUE
Other reasons (internal reasons, abuse, etc.).static int
PENDING_TOS_ACCEPTANCE_VALUE
Entitlement was automatically suspended on creation for pending ToS acceptance on customer.static int
RENEWAL_WITH_TYPE_CANCEL_VALUE
Entitlement renewal was canceled.static int
RESELLER_INITIATED_VALUE
Entitlement was manually suspended by the Reseller.static int
SUSPENSION_REASON_UNSPECIFIED_VALUE
Not used.static int
TRIAL_ENDED_VALUE
Trial ended.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Entitlement.SuspensionReason
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Entitlement.SuspensionReason>
internalGetValueMap()
static Entitlement.SuspensionReason
valueOf(int value)
Deprecated.static Entitlement.SuspensionReason
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Entitlement.SuspensionReason
valueOf(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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in 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
-
-