public enum LineItemChangeType extends Enum<LineItemChangeType> implements com.google.protobuf.ProtocolMessageEnum
Type of a line item change.Protobuf enum
google.cloud.commerce.consumer.procurement.v1.LineItemChangeType| Enum Constant and Description |
|---|
LINE_ITEM_CHANGE_TYPE_CANCEL
The change is to cancel an existing line item.
|
LINE_ITEM_CHANGE_TYPE_CREATE
The change is to create a new line item.
|
LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION
The change is to revert a cancellation.
|
LINE_ITEM_CHANGE_TYPE_UNSPECIFIED
Sentinel value.
|
LINE_ITEM_CHANGE_TYPE_UPDATE
The change is to update an existing line item.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
LINE_ITEM_CHANGE_TYPE_CANCEL_VALUE
The change is to cancel an existing line item.
|
static int |
LINE_ITEM_CHANGE_TYPE_CREATE_VALUE
The change is to create a new line item.
|
static int |
LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION_VALUE
The change is to revert a cancellation.
|
static int |
LINE_ITEM_CHANGE_TYPE_UNSPECIFIED_VALUE
Sentinel value.
|
static int |
LINE_ITEM_CHANGE_TYPE_UPDATE_VALUE
The change is to update an existing line item.
|
| Modifier and Type | Method and Description |
|---|---|
static LineItemChangeType |
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<LineItemChangeType> |
internalGetValueMap() |
static LineItemChangeType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LineItemChangeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LineItemChangeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineItemChangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineItemChangeType LINE_ITEM_CHANGE_TYPE_UNSPECIFIED
Sentinel value. Do not use.
LINE_ITEM_CHANGE_TYPE_UNSPECIFIED = 0;public static final LineItemChangeType LINE_ITEM_CHANGE_TYPE_CREATE
The change is to create a new line item.
LINE_ITEM_CHANGE_TYPE_CREATE = 1;public static final LineItemChangeType LINE_ITEM_CHANGE_TYPE_UPDATE
The change is to update an existing line item.
LINE_ITEM_CHANGE_TYPE_UPDATE = 2;public static final LineItemChangeType LINE_ITEM_CHANGE_TYPE_CANCEL
The change is to cancel an existing line item.
LINE_ITEM_CHANGE_TYPE_CANCEL = 3;public static final LineItemChangeType LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION
The change is to revert a cancellation.
LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION = 4;public static final LineItemChangeType UNRECOGNIZED
public static final int LINE_ITEM_CHANGE_TYPE_UNSPECIFIED_VALUE
Sentinel value. Do not use.
LINE_ITEM_CHANGE_TYPE_UNSPECIFIED = 0;public static final int LINE_ITEM_CHANGE_TYPE_CREATE_VALUE
The change is to create a new line item.
LINE_ITEM_CHANGE_TYPE_CREATE = 1;public static final int LINE_ITEM_CHANGE_TYPE_UPDATE_VALUE
The change is to update an existing line item.
LINE_ITEM_CHANGE_TYPE_UPDATE = 2;public static final int LINE_ITEM_CHANGE_TYPE_CANCEL_VALUE
The change is to cancel an existing line item.
LINE_ITEM_CHANGE_TYPE_CANCEL = 3;public static final int LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION_VALUE
The change is to revert a cancellation.
LINE_ITEM_CHANGE_TYPE_REVERT_CANCELLATION = 4;public static LineItemChangeType[] values()
for (LineItemChangeType c : LineItemChangeType.values()) System.out.println(c);
public static LineItemChangeType 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 LineItemChangeType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static LineItemChangeType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LineItemChangeType> 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 LineItemChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.