java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange
All Implemented Interfaces:
LineItemChangeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class LineItemChange extends com.google.protobuf.GeneratedMessage implements LineItemChangeOrBuilder
 A change made on a line item.
 
Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.LineItemChange
See Also:
  • Field Details

    • CHANGE_ID_FIELD_NUMBER

      public static final int CHANGE_ID_FIELD_NUMBER
      See Also:
    • CHANGE_TYPE_FIELD_NUMBER

      public static final int CHANGE_TYPE_FIELD_NUMBER
      See Also:
    • OLD_LINE_ITEM_INFO_FIELD_NUMBER

      public static final int OLD_LINE_ITEM_INFO_FIELD_NUMBER
      See Also:
    • NEW_LINE_ITEM_INFO_FIELD_NUMBER

      public static final int NEW_LINE_ITEM_INFO_FIELD_NUMBER
      See Also:
    • CHANGE_STATE_FIELD_NUMBER

      public static final int CHANGE_STATE_FIELD_NUMBER
      See Also:
    • STATE_REASON_FIELD_NUMBER

      public static final int STATE_REASON_FIELD_NUMBER
      See Also:
    • CHANGE_STATE_REASON_TYPE_FIELD_NUMBER

      public static final int CHANGE_STATE_REASON_TYPE_FIELD_NUMBER
      See Also:
    • CHANGE_EFFECTIVE_TIME_FIELD_NUMBER

      public static final int CHANGE_EFFECTIVE_TIME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.LineItemInfo old_line_item_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOldLineItemInfo in interface LineItemChangeOrBuilder
      Returns:
      The oldLineItemInfo.
    • getOldLineItemInfoOrBuilder

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

      public boolean hasNewLineItemInfo()
       Line item info after the change.
       
      .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.LineItemInfo new_line_item_info = 4;
      Specified by:
      getNewLineItemInfo in interface LineItemChangeOrBuilder
      Returns:
      The newLineItemInfo.
    • getNewLineItemInfoOrBuilder

      public LineItemInfoOrBuilder getNewLineItemInfoOrBuilder()
       Line item info after the change.
       
      .google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4;
      Specified by:
      getNewLineItemInfoOrBuilder in interface LineItemChangeOrBuilder
    • getChangeStateValue

      public int getChangeStateValue()
       Output only. State of the change.
       
      .google.cloud.commerce.consumer.procurement.v1alpha1.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.v1alpha1.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.v1alpha1.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.v1alpha1.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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LineItemChange parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LineItemChange parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LineItemChange parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LineItemChange parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static LineItemChange.Builder newBuilder()
    • newBuilder

      public static LineItemChange.Builder newBuilder(LineItemChange prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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