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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public Service.StoreConfig.CutoffConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Service.StoreConfig.CutoffConfig build()
public Service.StoreConfig.CutoffConfig buildPartial()
public Service.StoreConfig.CutoffConfig.Builder clear()
Overrides
public Service.StoreConfig.CutoffConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
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;
public Service.StoreConfig.CutoffConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
public Service.StoreConfig.CutoffConfig.Builder clone()
Overrides
public Service.StoreConfig.CutoffConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
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;
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;
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.
|
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Service.StoreConfig.CutoffConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Service.StoreConfig.CutoffConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public Service.StoreConfig.CutoffConfig.Builder mergeFrom(Service.StoreConfig.CutoffConfig other)
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;
public final Service.StoreConfig.CutoffConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Service.StoreConfig.CutoffConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
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;
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.
|
public Service.StoreConfig.CutoffConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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.
|
public final Service.StoreConfig.CutoffConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides