public static final class PlaceOrderRequest.Builder extends GeneratedMessage.Builder<PlaceOrderRequest.Builder> implements PlaceOrderRequestOrBuilderRequest message for ConsumerProcurementService.PlaceOrder.
Protobuf type google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PlaceOrderRequest.BuilderImplements
PlaceOrderRequestOrBuilderStatic 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 |
|
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 |
|
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. |
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 |
|
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. |
getDefaultInstanceForType()
public PlaceOrderRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PlaceOrderRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PlaceOrderRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PlaceOrderRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
PlaceOrderRequest.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
PlaceOrderRequest.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for requestId to set. |
| Returns | |
|---|---|
| Type | Description |
PlaceOrderRequest.Builder |
This builder for chaining. |