Enum 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 enum google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChangeState
    • 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;
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null