Class ModifyOrderRequest.Modification (0.53.0)

public static final class ModifyOrderRequest.Modification extends GeneratedMessageV3 implements ModifyOrderRequest.ModificationOrBuilder

Modifications to make on the order.

Protobuf type google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ModifyOrderRequest.Modification

Static Fields

AUTO_RENEWAL_BEHAVIOR_FIELD_NUMBER

public static final int AUTO_RENEWAL_BEHAVIOR_FIELD_NUMBER
Field Value
Type Description
int

CHANGE_TYPE_FIELD_NUMBER

public static final int CHANGE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

LINE_ITEM_ID_FIELD_NUMBER

public static final int LINE_ITEM_ID_FIELD_NUMBER
Field Value
Type Description
int

NEW_LINE_ITEM_INFO_FIELD_NUMBER

public static final int NEW_LINE_ITEM_INFO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ModifyOrderRequest.Modification getDefaultInstance()
Returns
Type Description
ModifyOrderRequest.Modification

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ModifyOrderRequest.Modification.Builder newBuilder()
Returns
Type Description
ModifyOrderRequest.Modification.Builder

newBuilder(ModifyOrderRequest.Modification prototype)

public static ModifyOrderRequest.Modification.Builder newBuilder(ModifyOrderRequest.Modification prototype)
Parameter
Name Description
prototype ModifyOrderRequest.Modification
Returns
Type Description
ModifyOrderRequest.Modification.Builder

parseDelimitedFrom(InputStream input)

public static ModifyOrderRequest.Modification parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModifyOrderRequest.Modification parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ModifyOrderRequest.Modification parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ModifyOrderRequest.Modification parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ModifyOrderRequest.Modification parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ModifyOrderRequest.Modification parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ModifyOrderRequest.Modification parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ModifyOrderRequest.Modification parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ModifyOrderRequest.Modification parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ModifyOrderRequest.Modification parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ModifyOrderRequest.Modification parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ModifyOrderRequest.Modification parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Modification
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ModifyOrderRequest.Modification> parser()
Returns
Type Description
Parser<Modification>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAutoRenewalBehavior()

public AutoRenewalBehavior getAutoRenewalBehavior()

Optional. Auto renewal behavior of the subscription for the update. Applied when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default config when this field is not specified.

.google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior auto_renewal_behavior = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoRenewalBehavior

The autoRenewalBehavior.

getAutoRenewalBehaviorValue()

public int getAutoRenewalBehaviorValue()

Optional. Auto renewal behavior of the subscription for the update. Applied when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default config when this field is not specified.

.google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior auto_renewal_behavior = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for autoRenewalBehavior.

getChangeType()

public LineItemChangeType getChangeType()

Required. Type of change to make.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LineItemChangeType

The changeType.

getChangeTypeValue()

public int getChangeTypeValue()

Required. Type of change to make.

.google.cloud.commerce.consumer.procurement.v1.LineItemChangeType change_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for changeType.

getDefaultInstanceForType()

public ModifyOrderRequest.Modification getDefaultInstanceForType()
Returns
Type Description
ModifyOrderRequest.Modification

getLineItemId()

public String getLineItemId()

Required. ID of the existing line item to make change to. Required when change type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL].

string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The lineItemId.

getLineItemIdBytes()

public ByteString getLineItemIdBytes()

Required. ID of the existing line item to make change to. Required when change type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL].

string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for lineItemId.

getNewLineItemInfo()

public LineItemInfo getNewLineItemInfo()

Optional. The line item to update to. Required when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE].

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemInfo

The newLineItemInfo.

getNewLineItemInfoOrBuilder()

public LineItemInfoOrBuilder getNewLineItemInfoOrBuilder()

Optional. The line item to update to. Required when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE].

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineItemInfoOrBuilder

getParserForType()

public Parser<ModifyOrderRequest.Modification> getParserForType()
Returns
Type Description
Parser<Modification>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasNewLineItemInfo()

public boolean hasNewLineItemInfo()

Optional. The line item to update to. Required when change_type is [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE].

.google.cloud.commerce.consumer.procurement.v1.LineItemInfo new_line_item_info = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the newLineItemInfo field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ModifyOrderRequest.Modification.Builder newBuilderForType()
Returns
Type Description
ModifyOrderRequest.Modification.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ModifyOrderRequest.Modification.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ModifyOrderRequest.Modification.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ModifyOrderRequest.Modification.Builder toBuilder()
Returns
Type Description
ModifyOrderRequest.Modification.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException