- 0.51.0 (latest)
- 0.50.0
- 0.49.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.5
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.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.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.commerce.consumer.procurement.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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 |
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. |
clearField(Descriptors.FieldDescriptor field)
public PlaceOrderRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
PlaceOrderRequest.Builder |
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 | |
---|---|
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 |
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 |
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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.LineItemInfo line_item_info = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PlaceOrderRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
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.v1.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 |
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 | |
---|---|
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.v1.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 |
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 |