public enum LineItemChangeStateReasonType extends Enum<LineItemChangeStateReasonType> implements com.google.protobuf.ProtocolMessageEnum
Predefined types for line item change state reason.Protobuf enum
google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType| Enum Constant and Description |
|---|
LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED
Change is in current state due to term expiration.
|
LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED
Change is in current state due to system-initiated cancellation.
|
LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED
Default value, indicating there's no predefined type for change state
reason.
|
LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED
Change is in current state due to user-initiated cancellation.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED_VALUE
Change is in current state due to term expiration.
|
static int |
LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED_VALUE
Change is in current state due to system-initiated cancellation.
|
static int |
LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED_VALUE
Default value, indicating there's no predefined type for change state
reason.
|
static int |
LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED_VALUE
Change is in current state due to user-initiated cancellation.
|
| Modifier and Type | Method and Description |
|---|---|
static LineItemChangeStateReasonType |
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<LineItemChangeStateReasonType> |
internalGetValueMap() |
static LineItemChangeStateReasonType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LineItemChangeStateReasonType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LineItemChangeStateReasonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineItemChangeStateReasonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineItemChangeStateReasonType LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED
Default value, indicating there's no predefined type for change state reason.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED = 0;public static final LineItemChangeStateReasonType LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED
Change is in current state due to term expiration.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED = 1;public static final LineItemChangeStateReasonType LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED
Change is in current state due to user-initiated cancellation.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED = 2;public static final LineItemChangeStateReasonType LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED
Change is in current state due to system-initiated cancellation.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED = 3;public static final LineItemChangeStateReasonType UNRECOGNIZED
public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED_VALUE
Default value, indicating there's no predefined type for change state reason.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_UNSPECIFIED = 0;public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED_VALUE
Change is in current state due to term expiration.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_EXPIRED = 1;public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED_VALUE
Change is in current state due to user-initiated cancellation.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_USER_CANCELLED = 2;public static final int LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED_VALUE
Change is in current state due to system-initiated cancellation.
LINE_ITEM_CHANGE_STATE_REASON_TYPE_SYSTEM_CANCELLED = 3;public static LineItemChangeStateReasonType[] values()
for (LineItemChangeStateReasonType c : LineItemChangeStateReasonType.values()) System.out.println(c);
public static LineItemChangeStateReasonType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static LineItemChangeStateReasonType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static LineItemChangeStateReasonType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LineItemChangeStateReasonType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LineItemChangeStateReasonType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.