Class LineItemChange

  • All Implemented Interfaces:
    LineItemChangeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class LineItemChange
    extends com.google.protobuf.GeneratedMessageV3
    implements LineItemChangeOrBuilder
     A change made on a line item.
     
    Protobuf type google.cloud.commerce.consumer.procurement.v1.LineItemChange
    See Also:
    Serialized Form
    • Field Detail

      • CHANGE_TYPE_FIELD_NUMBER

        public static final int CHANGE_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OLD_LINE_ITEM_INFO_FIELD_NUMBER

        public static final int OLD_LINE_ITEM_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NEW_LINE_ITEM_INFO_FIELD_NUMBER

        public static final int NEW_LINE_ITEM_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHANGE_STATE_FIELD_NUMBER

        public static final int CHANGE_STATE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STATE_REASON_FIELD_NUMBER

        public static final int STATE_REASON_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHANGE_STATE_REASON_TYPE_FIELD_NUMBER

        public static final int CHANGE_STATE_REASON_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CHANGE_EFFECTIVE_TIME_FIELD_NUMBER

        public static final int CHANGE_EFFECTIVE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getChangeId

        public String getChangeId()
         Output only. Change ID.
         All changes made within one order update operation have the same change_id.
         
        string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeId in interface LineItemChangeOrBuilder
        Returns:
        The changeId.
      • getChangeIdBytes

        public com.google.protobuf.ByteString getChangeIdBytes()
         Output only. Change ID.
         All changes made within one order update operation have the same change_id.
         
        string change_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeIdBytes in interface LineItemChangeOrBuilder
        Returns:
        The bytes for changeId.
      • getChangeTypeValue

        public int getChangeTypeValue()
         Required. Type of the change to make.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChangeTypeValue in interface LineItemChangeOrBuilder
        Returns:
        The enum numeric value on the wire for changeType.
      • getChangeType

        public LineItemChangeType getChangeType()
         Required. Type of the change to make.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChangeType in interface LineItemChangeOrBuilder
        Returns:
        The changeType.
      • hasOldLineItemInfo

        public boolean hasOldLineItemInfo()
         Output only. Line item info before the change.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasOldLineItemInfo in interface LineItemChangeOrBuilder
        Returns:
        Whether the oldLineItemInfo field is set.
      • getOldLineItemInfo

        public LineItemInfo getOldLineItemInfo()
         Output only. Line item info before the change.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOldLineItemInfo in interface LineItemChangeOrBuilder
        Returns:
        The oldLineItemInfo.
      • hasNewLineItemInfo

        public boolean hasNewLineItemInfo()
         Line item info after the change.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
        Specified by:
        hasNewLineItemInfo in interface LineItemChangeOrBuilder
        Returns:
        Whether the newLineItemInfo field is set.
      • getNewLineItemInfo

        public LineItemInfo getNewLineItemInfo()
         Line item info after the change.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 4;
        Specified by:
        getNewLineItemInfo in interface LineItemChangeOrBuilder
        Returns:
        The newLineItemInfo.
      • getChangeStateValue

        public int getChangeStateValue()
         Output only. State of the change.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeStateValue in interface LineItemChangeOrBuilder
        Returns:
        The enum numeric value on the wire for changeState.
      • getChangeState

        public LineItemChangeState getChangeState()
         Output only. State of the change.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemChangeState change_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeState in interface LineItemChangeOrBuilder
        Returns:
        The changeState.
      • getStateReason

        public String getStateReason()
         Output only. Provider-supplied message explaining the LineItemChange's
         state. Mainly used to communicate progress and ETA for provisioning in the
         case of `PENDING_APPROVAL`, and to explain why the change request was
         denied or canceled in the case of `REJECTED` and `CANCELED` states.
         
        string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateReason in interface LineItemChangeOrBuilder
        Returns:
        The stateReason.
      • getStateReasonBytes

        public com.google.protobuf.ByteString getStateReasonBytes()
         Output only. Provider-supplied message explaining the LineItemChange's
         state. Mainly used to communicate progress and ETA for provisioning in the
         case of `PENDING_APPROVAL`, and to explain why the change request was
         denied or canceled in the case of `REJECTED` and `CANCELED` states.
         
        string state_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateReasonBytes in interface LineItemChangeOrBuilder
        Returns:
        The bytes for stateReason.
      • getChangeStateReasonTypeValue

        public int getChangeStateReasonTypeValue()
         Output only. Predefined enum types for why this line item change is in
         current state. For example, a line item change's state could be
         `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
         immediate cancellation initiated by the user, or system-initiated
         cancellation.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeStateReasonTypeValue in interface LineItemChangeOrBuilder
        Returns:
        The enum numeric value on the wire for changeStateReasonType.
      • getChangeStateReasonType

        public LineItemChangeStateReasonType getChangeStateReasonType()
         Output only. Predefined enum types for why this line item change is in
         current state. For example, a line item change's state could be
         `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration,
         immediate cancellation initiated by the user, or system-initiated
         cancellation.
         
        .google.cloud.commerce.consumer.procurement.v1.LineItemChangeStateReasonType change_state_reason_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeStateReasonType in interface LineItemChangeOrBuilder
        Returns:
        The changeStateReasonType.
      • hasChangeEffectiveTime

        public boolean hasChangeEffectiveTime()
         Output only. A time at which the change became or will become (in case of
         pending change) effective.
         
        .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasChangeEffectiveTime in interface LineItemChangeOrBuilder
        Returns:
        Whether the changeEffectiveTime field is set.
      • getChangeEffectiveTime

        public com.google.protobuf.Timestamp getChangeEffectiveTime()
         Output only. A time at which the change became or will become (in case of
         pending change) effective.
         
        .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeEffectiveTime in interface LineItemChangeOrBuilder
        Returns:
        The changeEffectiveTime.
      • getChangeEffectiveTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getChangeEffectiveTimeOrBuilder()
         Output only. A time at which the change became or will become (in case of
         pending change) effective.
         
        .google.protobuf.Timestamp change_effective_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getChangeEffectiveTimeOrBuilder in interface LineItemChangeOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time when change was initiated.
         
        .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface LineItemChangeOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when change was initiated.
         
        .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface LineItemChangeOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when change was initiated.
         
        .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface LineItemChangeOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time when change was updated, e.g. approved/rejected by
         partners or cancelled by the user.
         
        .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface LineItemChangeOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time when change was updated, e.g. approved/rejected by
         partners or cancelled by the user.
         
        .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface LineItemChangeOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time when change was updated, e.g. approved/rejected by
         partners or cancelled by the user.
         
        .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface LineItemChangeOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static LineItemChange parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LineItemChange parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LineItemChange parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LineItemChange parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LineItemChange parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LineItemChange parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LineItemChange parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public LineItemChange.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public LineItemChange.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected LineItemChange.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static LineItemChange getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<LineItemChange> parser()
      • getParserForType

        public com.google.protobuf.Parser<LineItemChange> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public LineItemChange getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder