Class Service.StoreConfig.CutoffConfig (0.3.0)

public static final class Service.StoreConfig.CutoffConfig extends GeneratedMessageV3 implements Service.StoreConfig.CutoffConfigOrBuilder

Configs related to local delivery ends for the day.

Protobuf type google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Service.StoreConfig.CutoffConfig

Static Fields

LOCAL_CUTOFF_TIME_FIELD_NUMBER

public static final int LOCAL_CUTOFF_TIME_FIELD_NUMBER
Field Value
Type Description
int

NO_DELIVERY_POST_CUTOFF_FIELD_NUMBER

public static final int NO_DELIVERY_POST_CUTOFF_FIELD_NUMBER
Field Value
Type Description
int

STORE_CLOSE_OFFSET_HOURS_FIELD_NUMBER

public static final int STORE_CLOSE_OFFSET_HOURS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Service.StoreConfig.CutoffConfig getDefaultInstance()
Returns
Type Description
Service.StoreConfig.CutoffConfig

getDescriptor()

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

newBuilder()

public static Service.StoreConfig.CutoffConfig.Builder newBuilder()
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

newBuilder(Service.StoreConfig.CutoffConfig prototype)

public static Service.StoreConfig.CutoffConfig.Builder newBuilder(Service.StoreConfig.CutoffConfig prototype)
Parameter
Name Description
prototype Service.StoreConfig.CutoffConfig
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

parseDelimitedFrom(InputStream input)

public static Service.StoreConfig.CutoffConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig.CutoffConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Service.StoreConfig.CutoffConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig.CutoffConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Service.StoreConfig.CutoffConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig.CutoffConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Service.StoreConfig.CutoffConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig.CutoffConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Service.StoreConfig.CutoffConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig.CutoffConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Service.StoreConfig.CutoffConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig.CutoffConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig.CutoffConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Service.StoreConfig.CutoffConfig> parser()
Returns
Type Description
Parser<CutoffConfig>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Service.StoreConfig.CutoffConfig getDefaultInstanceForType()
Returns
Type Description
Service.StoreConfig.CutoffConfig

getLocalCutoffTime()

public Service.StoreConfig.CutoffConfig.LocalCutoffTime getLocalCutoffTime()

Time that local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime local_cutoff_time = 1;

Returns
Type Description
Service.StoreConfig.CutoffConfig.LocalCutoffTime

The localCutoffTime.

getLocalCutoffTimeOrBuilder()

public Service.StoreConfig.CutoffConfig.LocalCutoffTimeOrBuilder getLocalCutoffTimeOrBuilder()

Time that local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime local_cutoff_time = 1;

Returns
Type Description
Service.StoreConfig.CutoffConfig.LocalCutoffTimeOrBuilder

getNoDeliveryPostCutoff()

public boolean getNoDeliveryPostCutoff()

Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to true results in the calculated shipping service rate returning NO_DELIVERY_POST_CUTOFF. In the same example, setting this field to false results in the calculated shipping time being one day. This is only for local delivery.

optional bool no_delivery_post_cutoff = 3;

Returns
Type Description
boolean

The noDeliveryPostCutoff.

getParserForType()

public Parser<Service.StoreConfig.CutoffConfig> getParserForType()
Returns
Type Description
Parser<CutoffConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStoreCloseOffsetHours()

public long getStoreCloseOffsetHours()

Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with local_cutoff_time.

optional int64 store_close_offset_hours = 2;

Returns
Type Description
long

The storeCloseOffsetHours.

hasLocalCutoffTime()

public boolean hasLocalCutoffTime()

Time that local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig.LocalCutoffTime local_cutoff_time = 1;

Returns
Type Description
boolean

Whether the localCutoffTime field is set.

hasNoDeliveryPostCutoff()

public boolean hasNoDeliveryPostCutoff()

Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to true results in the calculated shipping service rate returning NO_DELIVERY_POST_CUTOFF. In the same example, setting this field to false results in the calculated shipping time being one day. This is only for local delivery.

optional bool no_delivery_post_cutoff = 3;

Returns
Type Description
boolean

Whether the noDeliveryPostCutoff field is set.

hasStoreCloseOffsetHours()

public boolean hasStoreCloseOffsetHours()

Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with local_cutoff_time.

optional int64 store_close_offset_hours = 2;

Returns
Type Description
boolean

Whether the storeCloseOffsetHours field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Service.StoreConfig.CutoffConfig.Builder newBuilderForType()
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Service.StoreConfig.CutoffConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Service.StoreConfig.CutoffConfig.Builder toBuilder()
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

writeTo(CodedOutputStream output)

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