Class OrderTrackingSignal (0.2.0)

public final class OrderTrackingSignal extends GeneratedMessageV3 implements OrderTrackingSignalOrBuilder

Represents a business trade from which signals are extracted, such as shipping.

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

Static Fields

CUSTOMER_SHIPPING_FEE_FIELD_NUMBER

public static final int CUSTOMER_SHIPPING_FEE_FIELD_NUMBER
Field Value
Type Description
int

DELIVERY_POSTAL_CODE_FIELD_NUMBER

public static final int DELIVERY_POSTAL_CODE_FIELD_NUMBER
Field Value
Type Description
int

DELIVERY_REGION_CODE_FIELD_NUMBER

public static final int DELIVERY_REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

LINE_ITEMS_FIELD_NUMBER

public static final int LINE_ITEMS_FIELD_NUMBER
Field Value
Type Description
int

MERCHANT_ID_FIELD_NUMBER

public static final int MERCHANT_ID_FIELD_NUMBER
Field Value
Type Description
int

ORDER_CREATED_TIME_FIELD_NUMBER

public static final int ORDER_CREATED_TIME_FIELD_NUMBER
Field Value
Type Description
int

ORDER_ID_FIELD_NUMBER

public static final int ORDER_ID_FIELD_NUMBER
Field Value
Type Description
int

ORDER_TRACKING_SIGNAL_ID_FIELD_NUMBER

public static final int ORDER_TRACKING_SIGNAL_ID_FIELD_NUMBER
Field Value
Type Description
int

SHIPMENT_LINE_ITEM_MAPPING_FIELD_NUMBER

public static final int SHIPMENT_LINE_ITEM_MAPPING_FIELD_NUMBER
Field Value
Type Description
int

SHIPPING_INFO_FIELD_NUMBER

public static final int SHIPPING_INFO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OrderTrackingSignal getDefaultInstance()
Returns
Type Description
OrderTrackingSignal

getDescriptor()

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

newBuilder()

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

newBuilder(OrderTrackingSignal prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCustomerShippingFee()

public Price getCustomerShippingFee()

Optional. The shipping fee of the order; this value should be set to zero in the case of free shipping.

optional .google.shopping.type.Price customer_shipping_fee = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.shopping.type.Price

The customerShippingFee.

getCustomerShippingFeeOrBuilder()

public PriceOrBuilder getCustomerShippingFeeOrBuilder()

Optional. The shipping fee of the order; this value should be set to zero in the case of free shipping.

optional .google.shopping.type.Price customer_shipping_fee = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getDefaultInstanceForType()

public OrderTrackingSignal getDefaultInstanceForType()
Returns
Type Description
OrderTrackingSignal

getDeliveryPostalCode()

public String getDeliveryPostalCode()

Optional. The delivery postal code, as a continuous string without spaces or dashes, for example "95016". This field will be anonymized in returned OrderTrackingSignal creation response.

string delivery_postal_code = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The deliveryPostalCode.

getDeliveryPostalCodeBytes()

public ByteString getDeliveryPostalCodeBytes()

Optional. The delivery postal code, as a continuous string without spaces or dashes, for example "95016". This field will be anonymized in returned OrderTrackingSignal creation response.

string delivery_postal_code = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for deliveryPostalCode.

getDeliveryRegionCode()

public String getDeliveryRegionCode()

Optional. The CLDR territory code for the shipping destination.

string delivery_region_code = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The deliveryRegionCode.

getDeliveryRegionCodeBytes()

public ByteString getDeliveryRegionCodeBytes()

Optional. The CLDR territory code for the shipping destination.

string delivery_region_code = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for deliveryRegionCode.

getLineItems(int index)

public OrderTrackingSignal.LineItemDetails getLineItems(int index)

Required. Information about line items in the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails line_items = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
OrderTrackingSignal.LineItemDetails

getLineItemsCount()

public int getLineItemsCount()

Required. Information about line items in the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails line_items = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getLineItemsList()

public List<OrderTrackingSignal.LineItemDetails> getLineItemsList()

Required. Information about line items in the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails line_items = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<LineItemDetails>

getLineItemsOrBuilder(int index)

public OrderTrackingSignal.LineItemDetailsOrBuilder getLineItemsOrBuilder(int index)

Required. Information about line items in the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails line_items = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
OrderTrackingSignal.LineItemDetailsOrBuilder

getLineItemsOrBuilderList()

public List<? extends OrderTrackingSignal.LineItemDetailsOrBuilder> getLineItemsOrBuilderList()

Required. Information about line items in the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetails line_items = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.LineItemDetailsOrBuilder>

getMerchantId()

public long getMerchantId()

Optional. The Google Merchant Center ID of this order tracking signal. This value is optional. If left unset, the caller's Merchant Center ID is used. You must request access in order to provide data on behalf of another business. For more information, see Submitting Order Tracking Signals.

int64 merchant_id = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The merchantId.

getOrderCreatedTime()

public DateTime getOrderCreatedTime()

Required. The time when the order was created on the businesses side. Include the year and timezone string, if available.

.google.type.DateTime order_created_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateTime

The orderCreatedTime.

getOrderCreatedTimeOrBuilder()

public DateTimeOrBuilder getOrderCreatedTimeOrBuilder()

Required. The time when the order was created on the businesses side. Include the year and timezone string, if available.

.google.type.DateTime order_created_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateTimeOrBuilder

getOrderId()

public String getOrderId()

Required. The ID of the order on the businesses side. This field will be hashed in returned OrderTrackingSignal creation response.

string order_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The orderId.

getOrderIdBytes()

public ByteString getOrderIdBytes()

Required. The ID of the order on the businesses side. This field will be hashed in returned OrderTrackingSignal creation response.

string order_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for orderId.

getOrderTrackingSignalId()

public long getOrderTrackingSignalId()

Output only. The ID that uniquely identifies this order tracking signal.

int64 order_tracking_signal_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The orderTrackingSignalId.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShipmentLineItemMapping(int index)

public OrderTrackingSignal.ShipmentLineItemMapping getShipmentLineItemMapping(int index)

Optional. The mapping of the line items to the shipment information.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMapping shipment_line_item_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrderTrackingSignal.ShipmentLineItemMapping

getShipmentLineItemMappingCount()

public int getShipmentLineItemMappingCount()

Optional. The mapping of the line items to the shipment information.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMapping shipment_line_item_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getShipmentLineItemMappingList()

public List<OrderTrackingSignal.ShipmentLineItemMapping> getShipmentLineItemMappingList()

Optional. The mapping of the line items to the shipment information.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMapping shipment_line_item_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ShipmentLineItemMapping>

getShipmentLineItemMappingOrBuilder(int index)

public OrderTrackingSignal.ShipmentLineItemMappingOrBuilder getShipmentLineItemMappingOrBuilder(int index)

Optional. The mapping of the line items to the shipment information.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMapping shipment_line_item_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OrderTrackingSignal.ShipmentLineItemMappingOrBuilder

getShipmentLineItemMappingOrBuilderList()

public List<? extends OrderTrackingSignal.ShipmentLineItemMappingOrBuilder> getShipmentLineItemMappingOrBuilderList()

Optional. The mapping of the line items to the shipment information.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMapping shipment_line_item_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShipmentLineItemMappingOrBuilder>

getShippingInfo(int index)

public OrderTrackingSignal.ShippingInfo getShippingInfo(int index)

Required. The shipping information for the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo shipping_info = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
OrderTrackingSignal.ShippingInfo

getShippingInfoCount()

public int getShippingInfoCount()

Required. The shipping information for the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo shipping_info = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getShippingInfoList()

public List<OrderTrackingSignal.ShippingInfo> getShippingInfoList()

Required. The shipping information for the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo shipping_info = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ShippingInfo>

getShippingInfoOrBuilder(int index)

public OrderTrackingSignal.ShippingInfoOrBuilder getShippingInfoOrBuilder(int index)

Required. The shipping information for the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo shipping_info = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
OrderTrackingSignal.ShippingInfoOrBuilder

getShippingInfoOrBuilderList()

public List<? extends OrderTrackingSignal.ShippingInfoOrBuilder> getShippingInfoOrBuilderList()

Required. The shipping information for the order.

repeated .google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo shipping_info = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfoOrBuilder>

hasCustomerShippingFee()

public boolean hasCustomerShippingFee()

Optional. The shipping fee of the order; this value should be set to zero in the case of free shipping.

optional .google.shopping.type.Price customer_shipping_fee = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customerShippingFee field is set.

hasOrderCreatedTime()

public boolean hasOrderCreatedTime()

Required. The time when the order was created on the businesses side. Include the year and timezone string, if available.

.google.type.DateTime order_created_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the orderCreatedTime 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.Builder newBuilderForType()
Returns
Type Description
OrderTrackingSignal.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrderTrackingSignal.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OrderTrackingSignal.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.Builder toBuilder()
Returns
Type Description
OrderTrackingSignal.Builder

writeTo(CodedOutputStream output)

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