Class PlaceOrderRequest.Builder (0.52.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.v1alpha1.PlaceOrderRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.LineItemInfo>
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LineItemInfo
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue LineItemInfo.Builder
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value LineItemInfo
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue LineItemInfo.Builder
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LineItemInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PlaceOrderRequest build()
Returns
Type Description
PlaceOrderRequest

buildPartial()

public PlaceOrderRequest buildPartial()
Returns
Type Description
PlaceOrderRequest

clear()

public PlaceOrderRequest.Builder clear()
Returns
Type Description
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
Type Description
PlaceOrderRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PlaceOrderRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PlaceOrderRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PlaceOrderRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
PlaceOrderRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PlaceOrderRequest getDefaultInstanceForType()
Returns
Type Description
PlaceOrderRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.commerce.consumer.procurement.v1alpha1.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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for requestId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PlaceOrderRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PlaceOrderRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PlaceOrderRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PlaceOrderRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value LineItemInfo
Returns
Type Description
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.v1alpha1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue LineItemInfo.Builder
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The requestId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
PlaceOrderRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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