public static final class Service.StoreConfig.CutoffConfig.Builder extends GeneratedMessage.Builder<Service.StoreConfig.CutoffConfig.Builder> implements Service.StoreConfig.CutoffConfigOrBuilderConfigs related to local delivery ends for the day.
Protobuf type google.shopping.merchant.accounts.v1.Service.StoreConfig.CutoffConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Service.StoreConfig.CutoffConfig.BuilderImplements
Service.StoreConfig.CutoffConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearLocalCutoffTime()
public Service.StoreConfig.CutoffConfig.Builder clearLocalCutoffTime()Time that local delivery ends for the day.
optional .google.shopping.merchant.accounts.v1.Service.StoreConfig.CutoffConfig.LocalCutoffTime local_cutoff_time = 1;
| Returns | |
|---|---|
| Type | Description |
Service.StoreConfig.CutoffConfig.Builder |
|
clearNoDeliveryPostCutoff()
public Service.StoreConfig.CutoffConfig.Builder clearNoDeliveryPostCutoff() Businesses 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. |
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. |
getDefaultInstanceForType()
public Service.StoreConfig.CutoffConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Service.StoreConfig.CutoffConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLocalCutoffTime()
public Service.StoreConfig.CutoffConfig.LocalCutoffTime getLocalCutoffTime()Time that local delivery ends for the day.
optional .google.shopping.merchant.accounts.v1.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.v1.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.v1.Service.StoreConfig.CutoffConfig.LocalCutoffTime local_cutoff_time = 1;
| Returns | |
|---|---|
| Type | Description |
Service.StoreConfig.CutoffConfig.LocalCutoffTimeOrBuilder |
|
getNoDeliveryPostCutoff()
public boolean getNoDeliveryPostCutoff() Businesses 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.v1.Service.StoreConfig.CutoffConfig.LocalCutoffTime local_cutoff_time = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the localCutoffTime field is set. |
hasNoDeliveryPostCutoff()
public boolean hasNoDeliveryPostCutoff() Businesses 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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.v1.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 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.v1.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.v1.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) Businesses 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 |
booleanThe noDeliveryPostCutoff to set. |
| Returns | |
|---|---|
| Type | Description |
Service.StoreConfig.CutoffConfig.Builder |
This builder for chaining. |
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 |
longThe storeCloseOffsetHours to set. |
| Returns | |
|---|---|
| Type | Description |
Service.StoreConfig.CutoffConfig.Builder |
This builder for chaining. |