Class Service.StoreConfig.CutoffConfig.Builder (0.7.0)

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

Configs related to local delivery ends for the day.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.StoreConfig.CutoffConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Service.StoreConfig.CutoffConfig.Builder clear()
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Service.StoreConfig.CutoffConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

clearLocalCutoffTime()

public Service.StoreConfig.CutoffConfig.Builder clearLocalCutoffTime()

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

clearNoDeliveryPostCutoff()

public Service.StoreConfig.CutoffConfig.Builder clearNoDeliveryPostCutoff()

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
Service.StoreConfig.CutoffConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.StoreConfig.CutoffConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

clearStoreCloseOffsetHours()

public Service.StoreConfig.CutoffConfig.Builder clearStoreCloseOffsetHours()

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
Service.StoreConfig.CutoffConfig.Builder

This builder for chaining.

clone()

public Service.StoreConfig.CutoffConfig.Builder clone()
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

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

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.

getLocalCutoffTimeBuilder()

public Service.StoreConfig.CutoffConfig.LocalCutoffTime.Builder getLocalCutoffTimeBuilder()

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Service.StoreConfig.CutoffConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

mergeFrom(Service.StoreConfig.CutoffConfig other)

public Service.StoreConfig.CutoffConfig.Builder mergeFrom(Service.StoreConfig.CutoffConfig other)
Parameter
Name Description
other Service.StoreConfig.CutoffConfig
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

mergeLocalCutoffTime(Service.StoreConfig.CutoffConfig.LocalCutoffTime value)

public Service.StoreConfig.CutoffConfig.Builder mergeLocalCutoffTime(Service.StoreConfig.CutoffConfig.LocalCutoffTime value)

Time that local delivery ends for the day.

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

Parameter
Name Description
value Service.StoreConfig.CutoffConfig.LocalCutoffTime
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.StoreConfig.CutoffConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Service.StoreConfig.CutoffConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides

setLocalCutoffTime(Service.StoreConfig.CutoffConfig.LocalCutoffTime value)

public Service.StoreConfig.CutoffConfig.Builder setLocalCutoffTime(Service.StoreConfig.CutoffConfig.LocalCutoffTime value)

Time that local delivery ends for the day.

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

Parameter
Name Description
value Service.StoreConfig.CutoffConfig.LocalCutoffTime
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

setLocalCutoffTime(Service.StoreConfig.CutoffConfig.LocalCutoffTime.Builder builderForValue)

public Service.StoreConfig.CutoffConfig.Builder setLocalCutoffTime(Service.StoreConfig.CutoffConfig.LocalCutoffTime.Builder builderForValue)

Time that local delivery ends for the day.

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

Parameter
Name Description
builderForValue Service.StoreConfig.CutoffConfig.LocalCutoffTime.Builder
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

setNoDeliveryPostCutoff(boolean value)

public Service.StoreConfig.CutoffConfig.Builder setNoDeliveryPostCutoff(boolean value)

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;

Parameter
Name Description
value boolean

The noDeliveryPostCutoff to set.

Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

This builder for chaining.

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

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

setStoreCloseOffsetHours(long value)

public Service.StoreConfig.CutoffConfig.Builder setStoreCloseOffsetHours(long value)

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;

Parameter
Name Description
value long

The storeCloseOffsetHours to set.

Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.StoreConfig.CutoffConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder
Overrides