Enum LineItemChangeState
- java.lang.Object
-
- java.lang.Enum<LineItemChangeState>
-
- com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<LineItemChangeState>
public enum LineItemChangeState extends Enum<LineItemChangeState> implements com.google.protobuf.ProtocolMessageEnum
State of a change.
Protobuf enumgoogle.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LINE_ITEM_CHANGE_STATE_ABANDONED
Change is in this state if it was abandoned by the user.LINE_ITEM_CHANGE_STATE_ACTIVATING
Change is in this state if it's currently being provisioned downstream.LINE_ITEM_CHANGE_STATE_APPROVED
Change is in this state after it's approved by the partner or auto-approved but before it takes effect.LINE_ITEM_CHANGE_STATE_COMPLETED
Change is in this state after it's been activated.LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL
Change is in this state when a change is initiated and waiting for partner approval.LINE_ITEM_CHANGE_STATE_REJECTED
Change is in this state if it was rejected by the partner.LINE_ITEM_CHANGE_STATE_UNSPECIFIED
Sentinel value.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
LINE_ITEM_CHANGE_STATE_ABANDONED_VALUE
Change is in this state if it was abandoned by the user.static int
LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUE
Change is in this state if it's currently being provisioned downstream.static int
LINE_ITEM_CHANGE_STATE_APPROVED_VALUE
Change is in this state after it's approved by the partner or auto-approved but before it takes effect.static int
LINE_ITEM_CHANGE_STATE_COMPLETED_VALUE
Change is in this state after it's been activated.static int
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL_VALUE
Change is in this state when a change is initiated and waiting for partner approval.static int
LINE_ITEM_CHANGE_STATE_REJECTED_VALUE
Change is in this state if it was rejected by the partner.static int
LINE_ITEM_CHANGE_STATE_UNSPECIFIED_VALUE
Sentinel value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LineItemChangeState
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<LineItemChangeState>
internalGetValueMap()
static LineItemChangeState
valueOf(int value)
Deprecated.static LineItemChangeState
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static LineItemChangeState
valueOf(String name)
Returns the enum constant of this type with the specified name.static LineItemChangeState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINE_ITEM_CHANGE_STATE_UNSPECIFIED
public static final LineItemChangeState LINE_ITEM_CHANGE_STATE_UNSPECIFIED
Sentinel value. Do not use.
LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0;
-
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL
public static final LineItemChangeState LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL
Change is in this state when a change is initiated and waiting for partner approval.
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1;
-
LINE_ITEM_CHANGE_STATE_APPROVED
public static final LineItemChangeState LINE_ITEM_CHANGE_STATE_APPROVED
Change is in this state after it's approved by the partner or auto-approved but before it takes effect. The change can be overwritten or cancelled depending on the new line item info property (pending Private Offer change cannot be cancelled and can only be overwritten by another Private Offer).
LINE_ITEM_CHANGE_STATE_APPROVED = 2;
-
LINE_ITEM_CHANGE_STATE_COMPLETED
public static final LineItemChangeState LINE_ITEM_CHANGE_STATE_COMPLETED
Change is in this state after it's been activated.
LINE_ITEM_CHANGE_STATE_COMPLETED = 3;
-
LINE_ITEM_CHANGE_STATE_REJECTED
public static final LineItemChangeState LINE_ITEM_CHANGE_STATE_REJECTED
Change is in this state if it was rejected by the partner.
LINE_ITEM_CHANGE_STATE_REJECTED = 4;
-
LINE_ITEM_CHANGE_STATE_ABANDONED
public static final LineItemChangeState LINE_ITEM_CHANGE_STATE_ABANDONED
Change is in this state if it was abandoned by the user.
LINE_ITEM_CHANGE_STATE_ABANDONED = 5;
-
LINE_ITEM_CHANGE_STATE_ACTIVATING
public static final LineItemChangeState LINE_ITEM_CHANGE_STATE_ACTIVATING
Change is in this state if it's currently being provisioned downstream. The change can't be overwritten or cancelled when it's in this state.
LINE_ITEM_CHANGE_STATE_ACTIVATING = 6;
-
UNRECOGNIZED
public static final LineItemChangeState UNRECOGNIZED
-
-
Field Detail
-
LINE_ITEM_CHANGE_STATE_UNSPECIFIED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_UNSPECIFIED_VALUE
Sentinel value. Do not use.
LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL_VALUE
public static final int LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL_VALUE
Change is in this state when a change is initiated and waiting for partner approval.
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1;
- See Also:
- Constant Field Values
-
LINE_ITEM_CHANGE_STATE_APPROVED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_APPROVED_VALUE
Change is in this state after it's approved by the partner or auto-approved but before it takes effect. The change can be overwritten or cancelled depending on the new line item info property (pending Private Offer change cannot be cancelled and can only be overwritten by another Private Offer).
LINE_ITEM_CHANGE_STATE_APPROVED = 2;
- See Also:
- Constant Field Values
-
LINE_ITEM_CHANGE_STATE_COMPLETED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_COMPLETED_VALUE
Change is in this state after it's been activated.
LINE_ITEM_CHANGE_STATE_COMPLETED = 3;
- See Also:
- Constant Field Values
-
LINE_ITEM_CHANGE_STATE_REJECTED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_REJECTED_VALUE
Change is in this state if it was rejected by the partner.
LINE_ITEM_CHANGE_STATE_REJECTED = 4;
- See Also:
- Constant Field Values
-
LINE_ITEM_CHANGE_STATE_ABANDONED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_ABANDONED_VALUE
Change is in this state if it was abandoned by the user.
LINE_ITEM_CHANGE_STATE_ABANDONED = 5;
- See Also:
- Constant Field Values
-
LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUE
public static final int LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUE
Change is in this state if it's currently being provisioned downstream. The change can't be overwritten or cancelled when it's in this state.
LINE_ITEM_CHANGE_STATE_ACTIVATING = 6;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static LineItemChangeState[] 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 (LineItemChangeState c : LineItemChangeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineItemChangeState 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 LineItemChangeState 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 LineItemChangeState 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<LineItemChangeState> 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 LineItemChangeState 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
-
-