public static final class OrderTrackingSignal.ShippingInfo extends GeneratedMessageV3 implements OrderTrackingSignal.ShippingInfoOrBuilder
The shipping information for the order.
Protobuf type
google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo
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 ACTUAL_DELIVERY_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CARRIER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CARRIER_SERVICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int EARLIEST_DELIVERY_PROMISE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LATEST_DELIVERY_PROMISE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ORIGIN_POSTAL_CODE_FIELD_NUMBER
public static final int ORIGIN_POSTAL_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ORIGIN_REGION_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SHIPMENT_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SHIPPED_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SHIPPING_STATUS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TRACKING_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static OrderTrackingSignal.ShippingInfo getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static OrderTrackingSignal.ShippingInfo.Builder newBuilder()
public static OrderTrackingSignal.ShippingInfo.Builder newBuilder(OrderTrackingSignal.ShippingInfo prototype)
public static OrderTrackingSignal.ShippingInfo parseDelimitedFrom(InputStream input)
public static OrderTrackingSignal.ShippingInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal.ShippingInfo parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static OrderTrackingSignal.ShippingInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal.ShippingInfo parseFrom(ByteString data)
public static OrderTrackingSignal.ShippingInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal.ShippingInfo parseFrom(CodedInputStream input)
public static OrderTrackingSignal.ShippingInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal.ShippingInfo parseFrom(InputStream input)
public static OrderTrackingSignal.ShippingInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OrderTrackingSignal.ShippingInfo parseFrom(ByteBuffer data)
public static OrderTrackingSignal.ShippingInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<OrderTrackingSignal.ShippingInfo> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public DateTime getActualDeliveryTime()
Optional. The time when the shipment was actually delivered.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime actual_delivery_time = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTime |
The actualDeliveryTime.
|
public DateTimeOrBuilder getActualDeliveryTimeOrBuilder()
Optional. The time when the shipment was actually delivered.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime actual_delivery_time = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTimeOrBuilder |
|
public String getCarrier()
Optional. The name of the shipping carrier for the delivery. This field
is required if one of the following fields is absent:
earliest_delivery_promise_time, latest_delivery_promise_time,
and actual_delivery_time.
string carrier = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The carrier.
|
public ByteString getCarrierBytes()
Optional. The name of the shipping carrier for the delivery. This field
is required if one of the following fields is absent:
earliest_delivery_promise_time, latest_delivery_promise_time,
and actual_delivery_time.
string carrier = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for carrier.
|
public String getCarrierService()
Optional. The service type for fulfillment, such as GROUND, FIRST_CLASS,
etc.
string carrier_service = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The carrierService.
|
public ByteString getCarrierServiceBytes()
Optional. The service type for fulfillment, such as GROUND, FIRST_CLASS,
etc.
string carrier_service = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for carrierService.
|
public OrderTrackingSignal.ShippingInfo getDefaultInstanceForType()
public DateTime getEarliestDeliveryPromiseTime()
Optional. The earliest delivery promised time.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime earliest_delivery_promise_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTime |
The earliestDeliveryPromiseTime.
|
public DateTimeOrBuilder getEarliestDeliveryPromiseTimeOrBuilder()
Optional. The earliest delivery promised time.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime earliest_delivery_promise_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTimeOrBuilder |
|
public DateTime getLatestDeliveryPromiseTime()
Optional. The latest delivery promised time.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime latest_delivery_promise_time = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTime |
The latestDeliveryPromiseTime.
|
public DateTimeOrBuilder getLatestDeliveryPromiseTimeOrBuilder()
Optional. The latest delivery promised time.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime latest_delivery_promise_time = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTimeOrBuilder |
|
getOriginPostalCode()
public String getOriginPostalCode()
Required. The origin postal code, as a continuous string without spaces
or dashes, for example "95016". This field will be anonymized in returned
OrderTrackingSignal creation response.
string origin_postal_code = 10 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The originPostalCode.
|
getOriginPostalCodeBytes()
public ByteString getOriginPostalCodeBytes()
Required. The origin postal code, as a continuous string without spaces
or dashes, for example "95016". This field will be anonymized in returned
OrderTrackingSignal creation response.
string origin_postal_code = 10 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for originPostalCode.
|
public String getOriginRegionCode()
Required. The CLDR territory code for
the shipping origin.
string origin_region_code = 11 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The originRegionCode.
|
public ByteString getOriginRegionCodeBytes()
Required. The CLDR territory code for
the shipping origin.
string origin_region_code = 11 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for originRegionCode.
|
public Parser<OrderTrackingSignal.ShippingInfo> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
public DateTime getShippedTime()
Optional. The time when the shipment was shipped.
Include the year and timezone string, if available.
.google.type.DateTime shipped_time = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTime |
The shippedTime.
|
public DateTimeOrBuilder getShippedTimeOrBuilder()
Optional. The time when the shipment was shipped.
Include the year and timezone string, if available.
.google.type.DateTime shipped_time = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
com.google.type.DateTimeOrBuilder |
|
public OrderTrackingSignal.ShippingInfo.ShippingState getShippingStatus()
Required. The status of the shipment.
.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo.ShippingState shipping_status = 9 [(.google.api.field_behavior) = REQUIRED];
public int getShippingStatusValue()
Required. The status of the shipment.
.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo.ShippingState shipping_status = 9 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for shippingStatus.
|
public String getTrackingId()
Optional. The tracking ID of the shipment. This field is required if one
of the following fields is absent: earliest_delivery_promise_time,
latest_delivery_promise_time, and actual_delivery_time.
string tracking_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The trackingId.
|
public ByteString getTrackingIdBytes()
Optional. The tracking ID of the shipment. This field is required if one
of the following fields is absent: earliest_delivery_promise_time,
latest_delivery_promise_time, and actual_delivery_time.
string tracking_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for trackingId.
|
public boolean hasActualDeliveryTime()
Optional. The time when the shipment was actually delivered.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime actual_delivery_time = 8 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the actualDeliveryTime field is set.
|
public boolean hasEarliestDeliveryPromiseTime()
Optional. The earliest delivery promised time.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime earliest_delivery_promise_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the earliestDeliveryPromiseTime field is set.
|
public boolean hasLatestDeliveryPromiseTime()
Optional. The latest delivery promised time.
Include the year and timezone string, if available.
This field is required, if one of the following fields is absent:
tracking_id or carrier_name.
.google.type.DateTime latest_delivery_promise_time = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the latestDeliveryPromiseTime field is set.
|
public boolean hasShippedTime()
Optional. The time when the shipment was shipped.
Include the year and timezone string, if available.
.google.type.DateTime shipped_time = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the shippedTime field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public OrderTrackingSignal.ShippingInfo.Builder newBuilderForType()
protected OrderTrackingSignal.ShippingInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public OrderTrackingSignal.ShippingInfo.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides