Class HandlingCutoffTime.Builder (1.16.0)

public static final class HandlingCutoffTime.Builder extends GeneratedMessage.Builder<HandlingCutoffTime.Builder> implements HandlingCutoffTimeOrBuilder

Configuration for offer or offer-country level shipping handling cutoff time.

Protobuf type google.shopping.merchant.products.v1.HandlingCutoffTime

Static Methods

getDescriptor()

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

Methods

build()

public HandlingCutoffTime build()
Returns
Type Description
HandlingCutoffTime

buildPartial()

public HandlingCutoffTime buildPartial()
Returns
Type Description
HandlingCutoffTime

clear()

public HandlingCutoffTime.Builder clear()
Returns
Type Description
HandlingCutoffTime.Builder
Overrides

clearCountry()

public HandlingCutoffTime.Builder clearCountry()

The CLDR territory code of the country to which the handling cutoff time applies.

optional string country = 1;

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

clearCutoffTime()

public HandlingCutoffTime.Builder clearCutoffTime()

The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. 1530) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST.

optional string cutoff_time = 2;

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

clearCutoffTimezone()

public HandlingCutoffTime.Builder clearCutoffTimezone()

Timezone identifier For example 'Europe/Zurich'. If not set, the shipping destination timezone will be used.

optional string cutoff_timezone = 3;

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

clearDisableDeliveryAfterCutoff()

public HandlingCutoffTime.Builder clearDisableDeliveryAfterCutoff()

This field only applies to same-day delivery. If true, prevents next-day delivery from being shown for this offer after the cutoff time. This field only applies to same-day delivery offers, for merchants who want to explicitly disable it.

optional bool disable_delivery_after_cutoff = 4;

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

getCountry()

public String getCountry()

The CLDR territory code of the country to which the handling cutoff time applies.

optional string country = 1;

Returns
Type Description
String

The country.

getCountryBytes()

public ByteString getCountryBytes()

The CLDR territory code of the country to which the handling cutoff time applies.

optional string country = 1;

Returns
Type Description
ByteString

The bytes for country.

getCutoffTime()

public String getCutoffTime()

The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. 1530) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST.

optional string cutoff_time = 2;

Returns
Type Description
String

The cutoffTime.

getCutoffTimeBytes()

public ByteString getCutoffTimeBytes()

The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. 1530) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST.

optional string cutoff_time = 2;

Returns
Type Description
ByteString

The bytes for cutoffTime.

getCutoffTimezone()

public String getCutoffTimezone()

Timezone identifier For example 'Europe/Zurich'. If not set, the shipping destination timezone will be used.

optional string cutoff_timezone = 3;

Returns
Type Description
String

The cutoffTimezone.

getCutoffTimezoneBytes()

public ByteString getCutoffTimezoneBytes()

Timezone identifier For example 'Europe/Zurich'. If not set, the shipping destination timezone will be used.

optional string cutoff_timezone = 3;

Returns
Type Description
ByteString

The bytes for cutoffTimezone.

getDefaultInstanceForType()

public HandlingCutoffTime getDefaultInstanceForType()
Returns
Type Description
HandlingCutoffTime

getDescriptorForType()

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

getDisableDeliveryAfterCutoff()

public boolean getDisableDeliveryAfterCutoff()

This field only applies to same-day delivery. If true, prevents next-day delivery from being shown for this offer after the cutoff time. This field only applies to same-day delivery offers, for merchants who want to explicitly disable it.

optional bool disable_delivery_after_cutoff = 4;

Returns
Type Description
boolean

The disableDeliveryAfterCutoff.

hasCountry()

public boolean hasCountry()

The CLDR territory code of the country to which the handling cutoff time applies.

optional string country = 1;

Returns
Type Description
boolean

Whether the country field is set.

hasCutoffTime()

public boolean hasCutoffTime()

The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. 1530) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST.

optional string cutoff_time = 2;

Returns
Type Description
boolean

Whether the cutoffTime field is set.

hasCutoffTimezone()

public boolean hasCutoffTimezone()

Timezone identifier For example 'Europe/Zurich'. If not set, the shipping destination timezone will be used.

optional string cutoff_timezone = 3;

Returns
Type Description
boolean

Whether the cutoffTimezone field is set.

hasDisableDeliveryAfterCutoff()

public boolean hasDisableDeliveryAfterCutoff()

This field only applies to same-day delivery. If true, prevents next-day delivery from being shown for this offer after the cutoff time. This field only applies to same-day delivery offers, for merchants who want to explicitly disable it.

optional bool disable_delivery_after_cutoff = 4;

Returns
Type Description
boolean

Whether the disableDeliveryAfterCutoff field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(HandlingCutoffTime other)

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

setCountry(String value)

public HandlingCutoffTime.Builder setCountry(String value)

The CLDR territory code of the country to which the handling cutoff time applies.

optional string country = 1;

Parameter
Name Description
value String

The country to set.

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

setCountryBytes(ByteString value)

public HandlingCutoffTime.Builder setCountryBytes(ByteString value)

The CLDR territory code of the country to which the handling cutoff time applies.

optional string country = 1;

Parameter
Name Description
value ByteString

The bytes for country to set.

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

setCutoffTime(String value)

public HandlingCutoffTime.Builder setCutoffTime(String value)

The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. 1530) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST.

optional string cutoff_time = 2;

Parameter
Name Description
value String

The cutoffTime to set.

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

setCutoffTimeBytes(ByteString value)

public HandlingCutoffTime.Builder setCutoffTimeBytes(ByteString value)

The handling cutoff time until which an order has to be placed to be processed in the same day. This is a string in format of HHMM (e.g. 1530) for 3:30 PM. If not configured, the cutoff time will be defaulted to 8AM PST.

optional string cutoff_time = 2;

Parameter
Name Description
value ByteString

The bytes for cutoffTime to set.

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

setCutoffTimezone(String value)

public HandlingCutoffTime.Builder setCutoffTimezone(String value)

Timezone identifier For example 'Europe/Zurich'. If not set, the shipping destination timezone will be used.

optional string cutoff_timezone = 3;

Parameter
Name Description
value String

The cutoffTimezone to set.

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

setCutoffTimezoneBytes(ByteString value)

public HandlingCutoffTime.Builder setCutoffTimezoneBytes(ByteString value)

Timezone identifier For example 'Europe/Zurich'. If not set, the shipping destination timezone will be used.

optional string cutoff_timezone = 3;

Parameter
Name Description
value ByteString

The bytes for cutoffTimezone to set.

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.

setDisableDeliveryAfterCutoff(boolean value)

public HandlingCutoffTime.Builder setDisableDeliveryAfterCutoff(boolean value)

This field only applies to same-day delivery. If true, prevents next-day delivery from being shown for this offer after the cutoff time. This field only applies to same-day delivery offers, for merchants who want to explicitly disable it.

optional bool disable_delivery_after_cutoff = 4;

Parameter
Name Description
value boolean

The disableDeliveryAfterCutoff to set.

Returns
Type Description
HandlingCutoffTime.Builder

This builder for chaining.