Enum LineItemChangeState
java.lang.Object
java.lang.Enum<LineItemChangeState>
com.google.cloud.commerce.consumer.procurement.v1.LineItemChangeState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<LineItemChangeState>
@Generated
public enum LineItemChangeState
extends Enum<LineItemChangeState>
implements com.google.protobuf.ProtocolMessageEnum
State of a change.Protobuf enum
google.cloud.commerce.consumer.procurement.v1.LineItemChangeState-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChange is in this state if it was abandoned by the user.Change is in this state if it's currently being provisioned downstream.Change is in this state after it's approved by the partner or auto-approved but before it takes effect.Change is in this state after it's been activated.Change is in this state when a change is initiated and waiting for partner approval.Change is in this state if it was rejected by the partner.Sentinel value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intChange is in this state if it was abandoned by the user.static final intChange is in this state if it's currently being provisioned downstream.static final intChange is in this state after it's approved by the partner or auto-approved but before it takes effect.static final intChange is in this state after it's been activated.static final intChange is in this state when a change is initiated and waiting for partner approval.static final intChange is in this state if it was rejected by the partner.static final intSentinel value. -
Method Summary
Modifier and TypeMethodDescriptionstatic LineItemChangeStateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<LineItemChangeState>static LineItemChangeStatevalueOf(int value) Deprecated.static LineItemChangeStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static LineItemChangeStateReturns 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 Details
-
LINE_ITEM_CHANGE_STATE_UNSPECIFIED
Sentinel value. Do not use.
LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0; -
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL
Change is in this state when a change is initiated and waiting for partner approval. This state is only applicable for pending change.
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1; -
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). This state is only applicable for pending change.
LINE_ITEM_CHANGE_STATE_APPROVED = 2; -
LINE_ITEM_CHANGE_STATE_COMPLETED
Change is in this state after it's been activated. This state is only applicable for change in history.
LINE_ITEM_CHANGE_STATE_COMPLETED = 3; -
LINE_ITEM_CHANGE_STATE_REJECTED
Change is in this state if it was rejected by the partner. This state is only applicable for change in history.
LINE_ITEM_CHANGE_STATE_REJECTED = 4; -
LINE_ITEM_CHANGE_STATE_ABANDONED
Change is in this state if it was abandoned by the user. This state is only applicable for change in history.
LINE_ITEM_CHANGE_STATE_ABANDONED = 5; -
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. This state is only applicable for pending change.
LINE_ITEM_CHANGE_STATE_ACTIVATING = 6; -
UNRECOGNIZED
-
-
Field Details
-
LINE_ITEM_CHANGE_STATE_UNSPECIFIED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_UNSPECIFIED_VALUESentinel value. Do not use.
LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0;- See Also:
-
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL_VALUE
public static final int LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL_VALUEChange is in this state when a change is initiated and waiting for partner approval. This state is only applicable for pending change.
LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1;- See Also:
-
LINE_ITEM_CHANGE_STATE_APPROVED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_APPROVED_VALUEChange 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). This state is only applicable for pending change.
LINE_ITEM_CHANGE_STATE_APPROVED = 2;- See Also:
-
LINE_ITEM_CHANGE_STATE_COMPLETED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_COMPLETED_VALUEChange is in this state after it's been activated. This state is only applicable for change in history.
LINE_ITEM_CHANGE_STATE_COMPLETED = 3;- See Also:
-
LINE_ITEM_CHANGE_STATE_REJECTED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_REJECTED_VALUEChange is in this state if it was rejected by the partner. This state is only applicable for change in history.
LINE_ITEM_CHANGE_STATE_REJECTED = 4;- See Also:
-
LINE_ITEM_CHANGE_STATE_ABANDONED_VALUE
public static final int LINE_ITEM_CHANGE_STATE_ABANDONED_VALUEChange is in this state if it was abandoned by the user. This state is only applicable for change in history.
LINE_ITEM_CHANGE_STATE_ABANDONED = 5;- See Also:
-
LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUE
public static final int LINE_ITEM_CHANGE_STATE_ACTIVATING_VALUEChange 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. This state is only applicable for pending change.
LINE_ITEM_CHANGE_STATE_ACTIVATING = 6;- 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
-
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
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
-