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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
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 |
|
public static final int DELIVERY_REGION_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LINE_ITEMS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MERCHANT_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ORDER_CREATED_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ORDER_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ORDER_TRACKING_SIGNAL_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SHIPMENT_LINE_ITEM_MAPPING_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SHIPPING_INFO_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static OrderTrackingSignal getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static OrderTrackingSignal.Builder newBuilder()
public static OrderTrackingSignal.Builder newBuilder(OrderTrackingSignal prototype)
public static OrderTrackingSignal parseDelimitedFrom(InputStream input)
public static OrderTrackingSignal parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static OrderTrackingSignal parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal parseFrom(ByteString data)
public static OrderTrackingSignal parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal parseFrom(CodedInputStream input)
public static OrderTrackingSignal parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal parseFrom(InputStream input)
public static OrderTrackingSignal parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal parseFrom(ByteBuffer data)
public static OrderTrackingSignal parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<OrderTrackingSignal> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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.
|
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 |
|
public OrderTrackingSignal getDefaultInstanceForType()
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.
|
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.
|
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.
|
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
|
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 |
|
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];
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
|
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> |
|
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.
|
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.
|
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 |
|
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.
|
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.
|
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.
|
public Parser<OrderTrackingSignal> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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
|
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 |
|
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];
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
|
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> |
|
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
|
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 |
|
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];
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
|
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> |
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public OrderTrackingSignal.Builder newBuilderForType()
protected OrderTrackingSignal.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public OrderTrackingSignal.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides