Class LineItemChange
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA change made on a line item.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.intOutput only.intOutput only.Required.intRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static LineItemChangestatic final com.google.protobuf.Descriptors.DescriptorLine item info after the change.Line item info after the change.Output only.Output only.com.google.protobuf.Parser<LineItemChange>intOutput only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanLine item info after the change.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic LineItemChange.Builderstatic LineItemChange.BuildernewBuilder(LineItemChange prototype) protected LineItemChange.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static LineItemChangeparseDelimitedFrom(InputStream input) static LineItemChangeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LineItemChangeparseFrom(byte[] data) static LineItemChangeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LineItemChangeparseFrom(com.google.protobuf.ByteString data) static LineItemChangeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LineItemChangeparseFrom(com.google.protobuf.CodedInputStream input) static LineItemChangeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LineItemChangeparseFrom(InputStream input) static LineItemChangeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LineItemChangeparseFrom(ByteBuffer data) static LineItemChangeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LineItemChange>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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:
getChangeIdin interfaceLineItemChangeOrBuilder- 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:
getChangeIdBytesin interfaceLineItemChangeOrBuilder- 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:
getChangeTypeValuein interfaceLineItemChangeOrBuilder- Returns:
- The enum numeric value on the wire for changeType.
-
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:
getChangeTypein interfaceLineItemChangeOrBuilder- 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:
hasOldLineItemInfoin interfaceLineItemChangeOrBuilder- Returns:
- Whether the oldLineItemInfo field is set.
-
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:
getOldLineItemInfoin interfaceLineItemChangeOrBuilder- Returns:
- The oldLineItemInfo.
-
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:
getOldLineItemInfoOrBuilderin interfaceLineItemChangeOrBuilder
-
hasNewLineItemInfo
public boolean hasNewLineItemInfo()Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4;- Specified by:
hasNewLineItemInfoin interfaceLineItemChangeOrBuilder- Returns:
- Whether the newLineItemInfo field is set.
-
getNewLineItemInfo
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4;- Specified by:
getNewLineItemInfoin interfaceLineItemChangeOrBuilder- Returns:
- The newLineItemInfo.
-
getNewLineItemInfoOrBuilder
Line item info after the change.
.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo new_line_item_info = 4;- Specified by:
getNewLineItemInfoOrBuilderin interfaceLineItemChangeOrBuilder
-
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:
getChangeStateValuein interfaceLineItemChangeOrBuilder- Returns:
- The enum numeric value on the wire for changeState.
-
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:
getChangeStatein interfaceLineItemChangeOrBuilder- Returns:
- The changeState.
-
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:
getStateReasonin interfaceLineItemChangeOrBuilder- 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:
getStateReasonBytesin interfaceLineItemChangeOrBuilder- 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:
getChangeStateReasonTypeValuein interfaceLineItemChangeOrBuilder- Returns:
- The enum numeric value on the wire for changeStateReasonType.
-
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:
getChangeStateReasonTypein interfaceLineItemChangeOrBuilder- 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:
hasChangeEffectiveTimein interfaceLineItemChangeOrBuilder- 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:
getChangeEffectiveTimein interfaceLineItemChangeOrBuilder- 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:
getChangeEffectiveTimeOrBuilderin interfaceLineItemChangeOrBuilder
-
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:
hasCreateTimein interfaceLineItemChangeOrBuilder- 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:
getCreateTimein interfaceLineItemChangeOrBuilder- 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:
getCreateTimeOrBuilderin interfaceLineItemChangeOrBuilder
-
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:
hasUpdateTimein interfaceLineItemChangeOrBuilder- 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:
getUpdateTimein interfaceLineItemChangeOrBuilder- 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:
getUpdateTimeOrBuilderin interfaceLineItemChangeOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static LineItemChange parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LineItemChange.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-