public static final class OrderTrackingSignal.ShipmentLineItemMapping.Builder extends GeneratedMessage.Builder<OrderTrackingSignal.ShipmentLineItemMapping.Builder> implements OrderTrackingSignal.ShipmentLineItemMappingOrBuilderRepresents how many items are in the shipment for the given shipment_id and line_item_id.
Protobuf type
google.shopping.merchant.ordertracking.v1.OrderTrackingSignal.ShipmentLineItemMapping
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OrderTrackingSignal.ShipmentLineItemMapping.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public OrderTrackingSignal.ShipmentLineItemMapping build()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping |
|
buildPartial()
public OrderTrackingSignal.ShipmentLineItemMapping buildPartial()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping |
|
clear()
public OrderTrackingSignal.ShipmentLineItemMapping.Builder clear()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
|
clearLineItemId()
public OrderTrackingSignal.ShipmentLineItemMapping.Builder clearLineItemId()Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |
clearQuantity()
public OrderTrackingSignal.ShipmentLineItemMapping.Builder clearQuantity()Required. The line item quantity in the shipment.
int64 quantity = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |
clearShipmentId()
public OrderTrackingSignal.ShipmentLineItemMapping.Builder clearShipmentId()Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public OrderTrackingSignal.ShipmentLineItemMapping getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLineItemId()
public String getLineItemId()Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The lineItemId. |
getLineItemIdBytes()
public ByteString getLineItemIdBytes()Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for lineItemId. |
getQuantity()
public long getQuantity()Required. The line item quantity in the shipment.
int64 quantity = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The quantity. |
getShipmentId()
public String getShipmentId()Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The shipmentId. |
getShipmentIdBytes()
public ByteString getShipmentIdBytes()Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for shipmentId. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
|
mergeFrom(OrderTrackingSignal.ShipmentLineItemMapping other)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder mergeFrom(OrderTrackingSignal.ShipmentLineItemMapping other)| Parameter | |
|---|---|
| Name | Description |
other |
OrderTrackingSignal.ShipmentLineItemMapping |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
|
setLineItemId(String value)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder setLineItemId(String value)Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe lineItemId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |
setLineItemIdBytes(ByteString value)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder setLineItemIdBytes(ByteString value)Required. The line item ID.
string line_item_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for lineItemId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |
setQuantity(long value)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder setQuantity(long value)Required. The line item quantity in the shipment.
int64 quantity = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe quantity to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |
setShipmentId(String value)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder setShipmentId(String value)Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe shipmentId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |
setShipmentIdBytes(ByteString value)
public OrderTrackingSignal.ShipmentLineItemMapping.Builder setShipmentIdBytes(ByteString value)Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for shipmentId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.ShipmentLineItemMapping.Builder |
This builder for chaining. |