Class ModifyOrderRequest.Builder (0.52.0)

public static final class ModifyOrderRequest.Builder extends GeneratedMessageV3.Builder<ModifyOrderRequest.Builder> implements ModifyOrderRequestOrBuilder

Request message for ConsumerProcurementService.ModifyOrder.

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

Static Methods

getDescriptor()

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

Methods

addAllModifications(Iterable<? extends ModifyOrderRequest.Modification> values)

public ModifyOrderRequest.Builder addAllModifications(Iterable<? extends ModifyOrderRequest.Modification> values)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification>
Returns
Type Description
ModifyOrderRequest.Builder

addModifications(ModifyOrderRequest.Modification value)

public ModifyOrderRequest.Builder addModifications(ModifyOrderRequest.Modification value)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ModifyOrderRequest.Modification
Returns
Type Description
ModifyOrderRequest.Builder

addModifications(ModifyOrderRequest.Modification.Builder builderForValue)

public ModifyOrderRequest.Builder addModifications(ModifyOrderRequest.Modification.Builder builderForValue)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ModifyOrderRequest.Modification.Builder
Returns
Type Description
ModifyOrderRequest.Builder

addModifications(int index, ModifyOrderRequest.Modification value)

public ModifyOrderRequest.Builder addModifications(int index, ModifyOrderRequest.Modification value)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ModifyOrderRequest.Modification
Returns
Type Description
ModifyOrderRequest.Builder

addModifications(int index, ModifyOrderRequest.Modification.Builder builderForValue)

public ModifyOrderRequest.Builder addModifications(int index, ModifyOrderRequest.Modification.Builder builderForValue)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ModifyOrderRequest.Modification.Builder
Returns
Type Description
ModifyOrderRequest.Builder

addModificationsBuilder()

public ModifyOrderRequest.Modification.Builder addModificationsBuilder()

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModifyOrderRequest.Modification.Builder

addModificationsBuilder(int index)

public ModifyOrderRequest.Modification.Builder addModificationsBuilder(int index)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ModifyOrderRequest.Modification.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModifyOrderRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

build()

public ModifyOrderRequest build()
Returns
Type Description
ModifyOrderRequest

buildPartial()

public ModifyOrderRequest buildPartial()
Returns
Type Description
ModifyOrderRequest

clear()

public ModifyOrderRequest.Builder clear()
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

clearDisplayName()

public ModifyOrderRequest.Builder clearDisplayName()

Optional. Updated display name of the order, leave as empty if you do not want to update current display name.

string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

clearEtag()

public ModifyOrderRequest.Builder clearEtag()

Optional. The weak etag, which can be optionally populated, of the order that this modify request is based on. Validation checking will only happen if the invoker supplies this field.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModifyOrderRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

clearModifications()

public ModifyOrderRequest.Builder clearModifications()

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModifyOrderRequest.Builder

clearName()

public ModifyOrderRequest.Builder clearName()

Required. Name of the order to update.

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

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ModifyOrderRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

clone()

public ModifyOrderRequest.Builder clone()
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

getDefaultInstanceForType()

public ModifyOrderRequest getDefaultInstanceForType()
Returns
Type Description
ModifyOrderRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. Updated display name of the order, leave as empty if you do not want to update current display name.

string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Updated display name of the order, leave as empty if you do not want to update current display name.

string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Optional. The weak etag, which can be optionally populated, of the order that this modify request is based on. Validation checking will only happen if the invoker supplies this field.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. The weak etag, which can be optionally populated, of the order that this modify request is based on. Validation checking will only happen if the invoker supplies this field.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getModifications(int index)

public ModifyOrderRequest.Modification getModifications(int index)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ModifyOrderRequest.Modification

getModificationsBuilder(int index)

public ModifyOrderRequest.Modification.Builder getModificationsBuilder(int index)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ModifyOrderRequest.Modification.Builder

getModificationsBuilderList()

public List<ModifyOrderRequest.Modification.Builder> getModificationsBuilderList()

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getModificationsCount()

public int getModificationsCount()

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getModificationsList()

public List<ModifyOrderRequest.Modification> getModificationsList()

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Modification>

getModificationsOrBuilder(int index)

public ModifyOrderRequest.ModificationOrBuilder getModificationsOrBuilder(int index)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ModifyOrderRequest.ModificationOrBuilder

getModificationsOrBuilderList()

public List<? extends ModifyOrderRequest.ModificationOrBuilder> getModificationsOrBuilderList()

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.ModificationOrBuilder>

getName()

public String getName()

Required. Name of the order to update.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the order to update.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModifyOrderRequest other)

public ModifyOrderRequest.Builder mergeFrom(ModifyOrderRequest other)
Parameter
Name Description
other ModifyOrderRequest
Returns
Type Description
ModifyOrderRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModifyOrderRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModifyOrderRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ModifyOrderRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModifyOrderRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

removeModifications(int index)

public ModifyOrderRequest.Builder removeModifications(int index)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ModifyOrderRequest.Builder

setDisplayName(String value)

public ModifyOrderRequest.Builder setDisplayName(String value)

Optional. Updated display name of the order, leave as empty if you do not want to update current display name.

string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ModifyOrderRequest.Builder setDisplayNameBytes(ByteString value)

Optional. Updated display name of the order, leave as empty if you do not want to update current display name.

string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

setEtag(String value)

public ModifyOrderRequest.Builder setEtag(String value)

Optional. The weak etag, which can be optionally populated, of the order that this modify request is based on. Validation checking will only happen if the invoker supplies this field.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public ModifyOrderRequest.Builder setEtagBytes(ByteString value)

Optional. The weak etag, which can be optionally populated, of the order that this modify request is based on. Validation checking will only happen if the invoker supplies this field.

string etag = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ModifyOrderRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

setModifications(int index, ModifyOrderRequest.Modification value)

public ModifyOrderRequest.Builder setModifications(int index, ModifyOrderRequest.Modification value)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ModifyOrderRequest.Modification
Returns
Type Description
ModifyOrderRequest.Builder

setModifications(int index, ModifyOrderRequest.Modification.Builder builderForValue)

public ModifyOrderRequest.Builder setModifications(int index, ModifyOrderRequest.Modification.Builder builderForValue)

Optional. Modifications for an existing Order created by an Offer. Required when Offer based Order is being modified, except for when going from an offer to a public plan.

repeated .google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification modifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ModifyOrderRequest.Modification.Builder
Returns
Type Description
ModifyOrderRequest.Builder

setName(String value)

public ModifyOrderRequest.Builder setName(String value)

Required. Name of the order to update.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ModifyOrderRequest.Builder setNameBytes(ByteString value)

Required. Name of the order to update.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ModifyOrderRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ModifyOrderRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ModifyOrderRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ModifyOrderRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModifyOrderRequest.Builder
Overrides