Class OrderTrackingSignal.ShippingInfo.Builder (0.2.0)

public static final class OrderTrackingSignal.ShippingInfo.Builder extends GeneratedMessageV3.Builder<OrderTrackingSignal.ShippingInfo.Builder> implements OrderTrackingSignal.ShippingInfoOrBuilder

The shipping information for the order.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OrderTrackingSignal.ShippingInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

build()

public OrderTrackingSignal.ShippingInfo build()
Returns
Type Description
OrderTrackingSignal.ShippingInfo

buildPartial()

public OrderTrackingSignal.ShippingInfo buildPartial()
Returns
Type Description
OrderTrackingSignal.ShippingInfo

clear()

public OrderTrackingSignal.ShippingInfo.Builder clear()
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

clearActualDeliveryTime()

public OrderTrackingSignal.ShippingInfo.Builder clearActualDeliveryTime()

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
OrderTrackingSignal.ShippingInfo.Builder

clearCarrier()

public OrderTrackingSignal.ShippingInfo.Builder clearCarrier()

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
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

clearCarrierService()

public OrderTrackingSignal.ShippingInfo.Builder clearCarrierService()

Optional. The service type for fulfillment, such as GROUND, FIRST_CLASS, etc.

string carrier_service = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

clearEarliestDeliveryPromiseTime()

public OrderTrackingSignal.ShippingInfo.Builder clearEarliestDeliveryPromiseTime()

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
OrderTrackingSignal.ShippingInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public OrderTrackingSignal.ShippingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

clearLatestDeliveryPromiseTime()

public OrderTrackingSignal.ShippingInfo.Builder clearLatestDeliveryPromiseTime()

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
OrderTrackingSignal.ShippingInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public OrderTrackingSignal.ShippingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

clearOriginPostalCode()

public OrderTrackingSignal.ShippingInfo.Builder clearOriginPostalCode()

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
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

clearOriginRegionCode()

public OrderTrackingSignal.ShippingInfo.Builder clearOriginRegionCode()

Required. The CLDR territory code for the shipping origin.

string origin_region_code = 11 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

clearShipmentId()

public OrderTrackingSignal.ShippingInfo.Builder clearShipmentId()

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
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

clearShippedTime()

public OrderTrackingSignal.ShippingInfo.Builder clearShippedTime()

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
OrderTrackingSignal.ShippingInfo.Builder

clearShippingStatus()

public OrderTrackingSignal.ShippingInfo.Builder clearShippingStatus()

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
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

clearTrackingId()

public OrderTrackingSignal.ShippingInfo.Builder clearTrackingId()

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
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

clone()

public OrderTrackingSignal.ShippingInfo.Builder clone()
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

getActualDeliveryTime()

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.

getActualDeliveryTimeBuilder()

public DateTime.Builder getActualDeliveryTimeBuilder()

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.Builder

getActualDeliveryTimeOrBuilder()

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

getCarrier()

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.

getCarrierBytes()

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.

getCarrierService()

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.

getCarrierServiceBytes()

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.

getDefaultInstanceForType()

public OrderTrackingSignal.ShippingInfo getDefaultInstanceForType()
Returns
Type Description
OrderTrackingSignal.ShippingInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEarliestDeliveryPromiseTime()

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.

getEarliestDeliveryPromiseTimeBuilder()

public DateTime.Builder getEarliestDeliveryPromiseTimeBuilder()

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.Builder

getEarliestDeliveryPromiseTimeOrBuilder()

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

getLatestDeliveryPromiseTime()

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.

getLatestDeliveryPromiseTimeBuilder()

public DateTime.Builder getLatestDeliveryPromiseTimeBuilder()

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.Builder

getLatestDeliveryPromiseTimeOrBuilder()

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.

getOriginRegionCode()

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.

getOriginRegionCodeBytes()

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.

getShipmentId()

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.

getShipmentIdBytes()

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.

getShippedTime()

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.

getShippedTimeBuilder()

public DateTime.Builder getShippedTimeBuilder()

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.Builder

getShippedTimeOrBuilder()

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

getShippingStatus()

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];

Returns
Type Description
OrderTrackingSignal.ShippingInfo.ShippingState

The shippingStatus.

getShippingStatusValue()

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.

getTrackingId()

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.

getTrackingIdBytes()

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.

hasActualDeliveryTime()

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.

hasEarliestDeliveryPromiseTime()

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.

hasLatestDeliveryPromiseTime()

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.

hasShippedTime()

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActualDeliveryTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder mergeActualDeliveryTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

mergeEarliestDeliveryPromiseTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder mergeEarliestDeliveryPromiseTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OrderTrackingSignal.ShippingInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OrderTrackingSignal.ShippingInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

mergeFrom(OrderTrackingSignal.ShippingInfo other)

public OrderTrackingSignal.ShippingInfo.Builder mergeFrom(OrderTrackingSignal.ShippingInfo other)
Parameter
Name Description
other OrderTrackingSignal.ShippingInfo
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

mergeLatestDeliveryPromiseTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder mergeLatestDeliveryPromiseTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

mergeShippedTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder mergeShippedTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrderTrackingSignal.ShippingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

setActualDeliveryTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder setActualDeliveryTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setActualDeliveryTime(DateTime.Builder builderForValue)

public OrderTrackingSignal.ShippingInfo.Builder setActualDeliveryTime(DateTime.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setCarrier(String value)

public OrderTrackingSignal.ShippingInfo.Builder setCarrier(String value)

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];

Parameter
Name Description
value String

The carrier to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setCarrierBytes(ByteString value)

public OrderTrackingSignal.ShippingInfo.Builder setCarrierBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for carrier to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setCarrierService(String value)

public OrderTrackingSignal.ShippingInfo.Builder setCarrierService(String value)

Optional. The service type for fulfillment, such as GROUND, FIRST_CLASS, etc.

string carrier_service = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The carrierService to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setCarrierServiceBytes(ByteString value)

public OrderTrackingSignal.ShippingInfo.Builder setCarrierServiceBytes(ByteString value)

Optional. The service type for fulfillment, such as GROUND, FIRST_CLASS, etc.

string carrier_service = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for carrierService to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setEarliestDeliveryPromiseTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder setEarliestDeliveryPromiseTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setEarliestDeliveryPromiseTime(DateTime.Builder builderForValue)

public OrderTrackingSignal.ShippingInfo.Builder setEarliestDeliveryPromiseTime(DateTime.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OrderTrackingSignal.ShippingInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

setLatestDeliveryPromiseTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder setLatestDeliveryPromiseTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setLatestDeliveryPromiseTime(DateTime.Builder builderForValue)

public OrderTrackingSignal.ShippingInfo.Builder setLatestDeliveryPromiseTime(DateTime.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setOriginPostalCode(String value)

public OrderTrackingSignal.ShippingInfo.Builder setOriginPostalCode(String value)

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];

Parameter
Name Description
value String

The originPostalCode to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setOriginPostalCodeBytes(ByteString value)

public OrderTrackingSignal.ShippingInfo.Builder setOriginPostalCodeBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for originPostalCode to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setOriginRegionCode(String value)

public OrderTrackingSignal.ShippingInfo.Builder setOriginRegionCode(String value)

Required. The CLDR territory code for the shipping origin.

string origin_region_code = 11 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The originRegionCode to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setOriginRegionCodeBytes(ByteString value)

public OrderTrackingSignal.ShippingInfo.Builder setOriginRegionCodeBytes(ByteString value)

Required. The CLDR territory code for the shipping origin.

string origin_region_code = 11 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for originRegionCode to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OrderTrackingSignal.ShippingInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides

setShipmentId(String value)

public OrderTrackingSignal.ShippingInfo.Builder setShipmentId(String value)

Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.

string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The shipmentId to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setShipmentIdBytes(ByteString value)

public OrderTrackingSignal.ShippingInfo.Builder setShipmentIdBytes(ByteString value)

Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.

string shipment_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for shipmentId to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setShippedTime(DateTime value)

public OrderTrackingSignal.ShippingInfo.Builder setShippedTime(DateTime value)

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];

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setShippedTime(DateTime.Builder builderForValue)

public OrderTrackingSignal.ShippingInfo.Builder setShippedTime(DateTime.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

setShippingStatus(OrderTrackingSignal.ShippingInfo.ShippingState value)

public OrderTrackingSignal.ShippingInfo.Builder setShippingStatus(OrderTrackingSignal.ShippingInfo.ShippingState value)

Required. The status of the shipment.

.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo.ShippingState shipping_status = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value OrderTrackingSignal.ShippingInfo.ShippingState

The shippingStatus to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setShippingStatusValue(int value)

public OrderTrackingSignal.ShippingInfo.Builder setShippingStatusValue(int value)

Required. The status of the shipment.

.google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal.ShippingInfo.ShippingState shipping_status = 9 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for shippingStatus to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setTrackingId(String value)

public OrderTrackingSignal.ShippingInfo.Builder setTrackingId(String value)

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];

Parameter
Name Description
value String

The trackingId to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setTrackingIdBytes(ByteString value)

public OrderTrackingSignal.ShippingInfo.Builder setTrackingIdBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for trackingId to set.

Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OrderTrackingSignal.ShippingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OrderTrackingSignal.ShippingInfo.Builder
Overrides