Class HandlingCutoffTime (1.16.0)

public final class HandlingCutoffTime extends GeneratedMessage implements HandlingCutoffTimeOrBuilder

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

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

Static Fields

COUNTRY_FIELD_NUMBER

public static final int COUNTRY_FIELD_NUMBER
Field Value
Type Description
int

CUTOFF_TIMEZONE_FIELD_NUMBER

public static final int CUTOFF_TIMEZONE_FIELD_NUMBER
Field Value
Type Description
int

CUTOFF_TIME_FIELD_NUMBER

public static final int CUTOFF_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISABLE_DELIVERY_AFTER_CUTOFF_FIELD_NUMBER

public static final int DISABLE_DELIVERY_AFTER_CUTOFF_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HandlingCutoffTime getDefaultInstance()
Returns
Type Description
HandlingCutoffTime

getDescriptor()

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

newBuilder()

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

newBuilder(HandlingCutoffTime prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HandlingCutoffTime.Builder newBuilderForType()
Returns
Type Description
HandlingCutoffTime.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected HandlingCutoffTime.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HandlingCutoffTime.Builder
Overrides

toBuilder()

public HandlingCutoffTime.Builder toBuilder()
Returns
Type Description
HandlingCutoffTime.Builder

writeTo(CodedOutputStream output)

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