Class PlaceOrderRequest.Builder (0.27.0)

public static final class PlaceOrderRequest.Builder extends GeneratedMessageV3.Builder<PlaceOrderRequest.Builder> implements PlaceOrderRequestOrBuilder

Request message for ConsumerProcurementService.PlaceOrder.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLineItemInfo(Iterable<? extends LineItemInfo> values)

public PlaceOrderRequest.Builder addAllLineItemInfo(Iterable<? extends LineItemInfo> values)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemInfo>
Returns
TypeDescription
PlaceOrderRequest.Builder

addLineItemInfo(LineItemInfo value)

public PlaceOrderRequest.Builder addLineItemInfo(LineItemInfo value)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLineItemInfo
Returns
TypeDescription
PlaceOrderRequest.Builder

addLineItemInfo(LineItemInfo.Builder builderForValue)

public PlaceOrderRequest.Builder addLineItemInfo(LineItemInfo.Builder builderForValue)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueLineItemInfo.Builder
Returns
TypeDescription
PlaceOrderRequest.Builder

addLineItemInfo(int index, LineItemInfo value)

public PlaceOrderRequest.Builder addLineItemInfo(int index, LineItemInfo value)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueLineItemInfo
Returns
TypeDescription
PlaceOrderRequest.Builder

addLineItemInfo(int index, LineItemInfo.Builder builderForValue)

public PlaceOrderRequest.Builder addLineItemInfo(int index, LineItemInfo.Builder builderForValue)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueLineItemInfo.Builder
Returns
TypeDescription
PlaceOrderRequest.Builder

addLineItemInfoBuilder()

public LineItemInfo.Builder addLineItemInfoBuilder()

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LineItemInfo.Builder

addLineItemInfoBuilder(int index)

public LineItemInfo.Builder addLineItemInfoBuilder(int index)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
LineItemInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PlaceOrderRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

build()

public PlaceOrderRequest build()
Returns
TypeDescription
PlaceOrderRequest

buildPartial()

public PlaceOrderRequest buildPartial()
Returns
TypeDescription
PlaceOrderRequest

clear()

public PlaceOrderRequest.Builder clear()
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

clearDisplayName()

public PlaceOrderRequest.Builder clearDisplayName()

Required. The user-specified name of the order being placed.

string display_name = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PlaceOrderRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

clearLineItemInfo()

public PlaceOrderRequest.Builder clearLineItemInfo()

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PlaceOrderRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PlaceOrderRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

clearParent()

public PlaceOrderRequest.Builder clearParent()

Required. The resource name of the parent resource. This field has the form billingAccounts/{billing-account-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

clearRequestId()

public PlaceOrderRequest.Builder clearRequestId()

Optional. A unique identifier for this request. The server will ignore subsequent requests that provide a duplicate request ID for at least 120 minutes after the first request.

The request ID must be a valid UUID.

string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

clone()

public PlaceOrderRequest.Builder clone()
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

getDefaultInstanceForType()

public PlaceOrderRequest getDefaultInstanceForType()
Returns
TypeDescription
PlaceOrderRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The user-specified name of the order being placed.

string display_name = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The user-specified name of the order being placed.

string display_name = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getLineItemInfo(int index)

public LineItemInfo getLineItemInfo(int index)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
LineItemInfo

getLineItemInfoBuilder(int index)

public LineItemInfo.Builder getLineItemInfoBuilder(int index)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
LineItemInfo.Builder

getLineItemInfoBuilderList()

public List<LineItemInfo.Builder> getLineItemInfoBuilderList()

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getLineItemInfoCount()

public int getLineItemInfoCount()

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLineItemInfoList()

public List<LineItemInfo> getLineItemInfoList()

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<LineItemInfo>

getLineItemInfoOrBuilder(int index)

public LineItemInfoOrBuilder getLineItemInfoOrBuilder(int index)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
LineItemInfoOrBuilder

getLineItemInfoOrBuilderList()

public List<? extends LineItemInfoOrBuilder> getLineItemInfoOrBuilderList()

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.commerce.consumer.procurement.v1.LineItemInfoOrBuilder>

getParent()

public String getParent()

Required. The resource name of the parent resource. This field has the form billingAccounts/{billing-account-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the parent resource. This field has the form billingAccounts/{billing-account-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A unique identifier for this request. The server will ignore subsequent requests that provide a duplicate request ID for at least 120 minutes after the first request.

The request ID must be a valid UUID.

string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A unique identifier for this request. The server will ignore subsequent requests that provide a duplicate request ID for at least 120 minutes after the first request.

The request ID must be a valid UUID.

string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PlaceOrderRequest other)

public PlaceOrderRequest.Builder mergeFrom(PlaceOrderRequest other)
Parameter
NameDescription
otherPlaceOrderRequest
Returns
TypeDescription
PlaceOrderRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PlaceOrderRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PlaceOrderRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PlaceOrderRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

removeLineItemInfo(int index)

public PlaceOrderRequest.Builder removeLineItemInfo(int index)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
PlaceOrderRequest.Builder

setDisplayName(String value)

public PlaceOrderRequest.Builder setDisplayName(String value)

Required. The user-specified name of the order being placed.

string display_name = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PlaceOrderRequest.Builder setDisplayNameBytes(ByteString value)

Required. The user-specified name of the order being placed.

string display_name = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PlaceOrderRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

setLineItemInfo(int index, LineItemInfo value)

public PlaceOrderRequest.Builder setLineItemInfo(int index, LineItemInfo value)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueLineItemInfo
Returns
TypeDescription
PlaceOrderRequest.Builder

setLineItemInfo(int index, LineItemInfo.Builder builderForValue)

public PlaceOrderRequest.Builder setLineItemInfo(int index, LineItemInfo.Builder builderForValue)

Optional. Places order for offer. Required when an offer-based order is being placed.

repeated .google.cloud.commerce.consumer.procurement.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueLineItemInfo.Builder
Returns
TypeDescription
PlaceOrderRequest.Builder

setParent(String value)

public PlaceOrderRequest.Builder setParent(String value)

Required. The resource name of the parent resource. This field has the form billingAccounts/{billing-account-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public PlaceOrderRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the parent resource. This field has the form billingAccounts/{billing-account-id}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

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

public PlaceOrderRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides

setRequestId(String value)

public PlaceOrderRequest.Builder setRequestId(String value)

Optional. A unique identifier for this request. The server will ignore subsequent requests that provide a duplicate request ID for at least 120 minutes after the first request.

The request ID must be a valid UUID.

string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public PlaceOrderRequest.Builder setRequestIdBytes(ByteString value)

Optional. A unique identifier for this request. The server will ignore subsequent requests that provide a duplicate request ID for at least 120 minutes after the first request.

The request ID must be a valid UUID.

string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
PlaceOrderRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PlaceOrderRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PlaceOrderRequest.Builder
Overrides