Class OrderTrackingSignal.LineItemDetails (0.2.0)

public static final class OrderTrackingSignal.LineItemDetails extends GeneratedMessageV3 implements OrderTrackingSignal.LineItemDetailsOrBuilder

The line items of the order.

Protobuf type google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OrderTrackingSignal.LineItemDetails

Static Fields

BRAND_FIELD_NUMBER

public static final int BRAND_FIELD_NUMBER
Field Value
Type Description
int

GTIN_FIELD_NUMBER

public static final int GTIN_FIELD_NUMBER
Field Value
Type Description
int

LINE_ITEM_ID_FIELD_NUMBER

public static final int LINE_ITEM_ID_FIELD_NUMBER
Field Value
Type Description
int

MPN_FIELD_NUMBER

public static final int MPN_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_ID_FIELD_NUMBER

public static final int PRODUCT_ID_FIELD_NUMBER
Field Value
Type Description
int

PRODUCT_TITLE_FIELD_NUMBER

public static final int PRODUCT_TITLE_FIELD_NUMBER
Field Value
Type Description
int

QUANTITY_FIELD_NUMBER

public static final int QUANTITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OrderTrackingSignal.LineItemDetails getDefaultInstance()
Returns
Type Description
OrderTrackingSignal.LineItemDetails

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OrderTrackingSignal.LineItemDetails.Builder newBuilder()
Returns
Type Description
OrderTrackingSignal.LineItemDetails.Builder

newBuilder(OrderTrackingSignal.LineItemDetails prototype)

public static OrderTrackingSignal.LineItemDetails.Builder newBuilder(OrderTrackingSignal.LineItemDetails prototype)
Parameter
Name Description
prototype OrderTrackingSignal.LineItemDetails
Returns
Type Description
OrderTrackingSignal.LineItemDetails.Builder

parseDelimitedFrom(InputStream input)

public static OrderTrackingSignal.LineItemDetails parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderTrackingSignal.LineItemDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OrderTrackingSignal.LineItemDetails parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OrderTrackingSignal.LineItemDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OrderTrackingSignal.LineItemDetails parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OrderTrackingSignal.LineItemDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OrderTrackingSignal.LineItemDetails parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderTrackingSignal.LineItemDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OrderTrackingSignal.LineItemDetails parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrderTrackingSignal.LineItemDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OrderTrackingSignal.LineItemDetails parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OrderTrackingSignal.LineItemDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderTrackingSignal.LineItemDetails
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OrderTrackingSignal.LineItemDetails> parser()
Returns
Type Description
Parser<LineItemDetails>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<OrderTrackingSignal.LineItemDetails> getParserForType()
Returns
Type Description
Parser<LineItemDetails>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OrderTrackingSignal.LineItemDetails.Builder newBuilderForType()
Returns
Type Description
OrderTrackingSignal.LineItemDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrderTrackingSignal.LineItemDetails.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OrderTrackingSignal.LineItemDetails.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OrderTrackingSignal.LineItemDetails.Builder toBuilder()
Returns
Type Description
OrderTrackingSignal.LineItemDetails.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException