public static final class OrderTrackingSignal.LineItemDetails.Builder extends GeneratedMessageV3.Builder<OrderTrackingSignal.LineItemDetails.Builder> implements OrderTrackingSignal.LineItemDetailsOrBuilderThe line items of the order.
Protobuf type
google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OrderTrackingSignal.LineItemDetails.BuilderImplements
OrderTrackingSignal.LineItemDetailsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OrderTrackingSignal.LineItemDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
build()
public OrderTrackingSignal.LineItemDetails build()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails |
|
buildPartial()
public OrderTrackingSignal.LineItemDetails buildPartial()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails |
|
clear()
public OrderTrackingSignal.LineItemDetails.Builder clear()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
clearBrand()
public OrderTrackingSignal.LineItemDetails.Builder clearBrand()Optional. Brand of the product.
optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public OrderTrackingSignal.LineItemDetails.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
clearGtin()
public OrderTrackingSignal.LineItemDetails.Builder clearGtin()Optional. The Global Trade Item Number.
string gtin = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
clearLineItemId()
public OrderTrackingSignal.LineItemDetails.Builder clearLineItemId()Required. The ID for this line item.
string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
clearMpn()
public OrderTrackingSignal.LineItemDetails.Builder clearMpn()Optional. The manufacturer part number.
string mpn = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public OrderTrackingSignal.LineItemDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
clearProductId()
public OrderTrackingSignal.LineItemDetails.Builder clearProductId()Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
string product_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
clearProductTitle()
public OrderTrackingSignal.LineItemDetails.Builder clearProductTitle()Optional. Plain text title of this product.
optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
clearQuantity()
public OrderTrackingSignal.LineItemDetails.Builder clearQuantity()Required. The quantity of the line item in the order.
int64 quantity = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
clone()
public OrderTrackingSignal.LineItemDetails.Builder clone()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
getBrand()
public String getBrand()Optional. Brand of the product.
optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The brand. |
getBrandBytes()
public ByteString getBrandBytes()Optional. Brand of the product.
optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for brand. |
getDefaultInstanceForType()
public OrderTrackingSignal.LineItemDetails getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGtin()
public String getGtin()Optional. The Global Trade Item Number.
string gtin = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The gtin. |
getGtinBytes()
public ByteString getGtinBytes()Optional. The Global Trade Item Number.
string gtin = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gtin. |
getLineItemId()
public String getLineItemId()Required. The ID for this line item.
string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The lineItemId. |
getLineItemIdBytes()
public ByteString getLineItemIdBytes()Required. The ID for this line item.
string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for lineItemId. |
getMpn()
public String getMpn()Optional. The manufacturer part number.
string mpn = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The mpn. |
getMpnBytes()
public ByteString getMpnBytes()Optional. The manufacturer part number.
string mpn = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mpn. |
getProductId()
public String getProductId()Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
string product_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The productId. |
getProductIdBytes()
public ByteString getProductIdBytes()Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
string product_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for productId. |
getProductTitle()
public String getProductTitle()Optional. Plain text title of this product.
optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The productTitle. |
getProductTitleBytes()
public ByteString getProductTitleBytes()Optional. Plain text title of this product.
optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for productTitle. |
getQuantity()
public long getQuantity()Required. The quantity of the line item in the order.
int64 quantity = 7 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The quantity. |
hasBrand()
public boolean hasBrand()Optional. Brand of the product.
optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the brand field is set. |
hasProductTitle()
public boolean hasProductTitle()Optional. Plain text title of this product.
optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the productTitle field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OrderTrackingSignal.LineItemDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OrderTrackingSignal.LineItemDetails.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
mergeFrom(OrderTrackingSignal.LineItemDetails other)
public OrderTrackingSignal.LineItemDetails.Builder mergeFrom(OrderTrackingSignal.LineItemDetails other)| Parameter | |
|---|---|
| Name | Description |
other |
OrderTrackingSignal.LineItemDetails |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OrderTrackingSignal.LineItemDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
setBrand(String value)
public OrderTrackingSignal.LineItemDetails.Builder setBrand(String value)Optional. Brand of the product.
optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe brand to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setBrandBytes(ByteString value)
public OrderTrackingSignal.LineItemDetails.Builder setBrandBytes(ByteString value)Optional. Brand of the product.
optional string brand = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for brand to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public OrderTrackingSignal.LineItemDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
setGtin(String value)
public OrderTrackingSignal.LineItemDetails.Builder setGtin(String value)Optional. The Global Trade Item Number.
string gtin = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gtin to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setGtinBytes(ByteString value)
public OrderTrackingSignal.LineItemDetails.Builder setGtinBytes(ByteString value)Optional. The Global Trade Item Number.
string gtin = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gtin to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setLineItemId(String value)
public OrderTrackingSignal.LineItemDetails.Builder setLineItemId(String value)Required. The ID for this line item.
string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe lineItemId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setLineItemIdBytes(ByteString value)
public OrderTrackingSignal.LineItemDetails.Builder setLineItemIdBytes(ByteString value)Required. The ID for this line item.
string line_item_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for lineItemId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setMpn(String value)
public OrderTrackingSignal.LineItemDetails.Builder setMpn(String value)Optional. The manufacturer part number.
string mpn = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mpn to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setMpnBytes(ByteString value)
public OrderTrackingSignal.LineItemDetails.Builder setMpnBytes(ByteString value)Optional. The manufacturer part number.
string mpn = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mpn to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setProductId(String value)
public OrderTrackingSignal.LineItemDetails.Builder setProductId(String value)Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
string product_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe productId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setProductIdBytes(ByteString value)
public OrderTrackingSignal.LineItemDetails.Builder setProductIdBytes(ByteString value)Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
string product_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for productId to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setProductTitle(String value)
public OrderTrackingSignal.LineItemDetails.Builder setProductTitle(String value)Optional. Plain text title of this product.
optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe productTitle to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setProductTitleBytes(ByteString value)
public OrderTrackingSignal.LineItemDetails.Builder setProductTitleBytes(ByteString value)Optional. Plain text title of this product.
optional string product_title = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for productTitle to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setQuantity(long value)
public OrderTrackingSignal.LineItemDetails.Builder setQuantity(long value)Required. The quantity of the line item in the order.
int64 quantity = 7 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe quantity to set. |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OrderTrackingSignal.LineItemDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final OrderTrackingSignal.LineItemDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
OrderTrackingSignal.LineItemDetails.Builder |
|