Class ProductAttributes.ShippingBusinessDaysConfig.Builder (1.16.0)

public static final class ProductAttributes.ShippingBusinessDaysConfig.Builder extends GeneratedMessage.Builder<ProductAttributes.ShippingBusinessDaysConfig.Builder> implements ProductAttributes.ShippingBusinessDaysConfigOrBuilder

The business days during which orders are on their path to fulfillment. If not provided, Monday to Friday business days will be assumed.

Protobuf type google.shopping.merchant.products.v1.ProductAttributes.ShippingBusinessDaysConfig

Static Methods

getDescriptor()

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

Methods

build()

public ProductAttributes.ShippingBusinessDaysConfig build()
Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig

buildPartial()

public ProductAttributes.ShippingBusinessDaysConfig buildPartial()
Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig

clear()

public ProductAttributes.ShippingBusinessDaysConfig.Builder clear()
Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder
Overrides

clearBusinessDays()

public ProductAttributes.ShippingBusinessDaysConfig.Builder clearBusinessDays()

Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. MTWRF), or day ranges (e.g. Mon-Fri). For more information about accepted formats, see Shipping handling business days.

optional string business_days = 2;

Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder

This builder for chaining.

clearCountry()

public ProductAttributes.ShippingBusinessDaysConfig.Builder clearCountry()

The CLDR territory code of the country to which an item will ship.

optional string country = 1;

Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder

This builder for chaining.

getBusinessDays()

public String getBusinessDays()

Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. MTWRF), or day ranges (e.g. Mon-Fri). For more information about accepted formats, see Shipping handling business days.

optional string business_days = 2;

Returns
Type Description
String

The businessDays.

getBusinessDaysBytes()

public ByteString getBusinessDaysBytes()

Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. MTWRF), or day ranges (e.g. Mon-Fri). For more information about accepted formats, see Shipping handling business days.

optional string business_days = 2;

Returns
Type Description
ByteString

The bytes for businessDays.

getCountry()

public String getCountry()

The CLDR territory code of the country to which an item will ship.

optional string country = 1;

Returns
Type Description
String

The country.

getCountryBytes()

public ByteString getCountryBytes()

The CLDR territory code of the country to which an item will ship.

optional string country = 1;

Returns
Type Description
ByteString

The bytes for country.

getDefaultInstanceForType()

public ProductAttributes.ShippingBusinessDaysConfig getDefaultInstanceForType()
Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig

getDescriptorForType()

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

hasBusinessDays()

public boolean hasBusinessDays()

Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. MTWRF), or day ranges (e.g. Mon-Fri). For more information about accepted formats, see Shipping handling business days.

optional string business_days = 2;

Returns
Type Description
boolean

Whether the businessDays field is set.

hasCountry()

public boolean hasCountry()

The CLDR territory code of the country to which an item will ship.

optional string country = 1;

Returns
Type Description
boolean

Whether the country field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductAttributes.ShippingBusinessDaysConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductAttributes.ShippingBusinessDaysConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder
Overrides

mergeFrom(ProductAttributes.ShippingBusinessDaysConfig other)

public ProductAttributes.ShippingBusinessDaysConfig.Builder mergeFrom(ProductAttributes.ShippingBusinessDaysConfig other)
Parameter
Name Description
other ProductAttributes.ShippingBusinessDaysConfig
Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder

setBusinessDays(String value)

public ProductAttributes.ShippingBusinessDaysConfig.Builder setBusinessDays(String value)

Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. MTWRF), or day ranges (e.g. Mon-Fri). For more information about accepted formats, see Shipping handling business days.

optional string business_days = 2;

Parameter
Name Description
value String

The businessDays to set.

Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder

This builder for chaining.

setBusinessDaysBytes(ByteString value)

public ProductAttributes.ShippingBusinessDaysConfig.Builder setBusinessDaysBytes(ByteString value)

Effective days of the week considered for the delivery time calculation. May not be empty. The more business days included the faster the delivery. Can be set through individual days (e.g. MTWRF), or day ranges (e.g. Mon-Fri). For more information about accepted formats, see Shipping handling business days.

optional string business_days = 2;

Parameter
Name Description
value ByteString

The bytes for businessDays to set.

Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder

This builder for chaining.

setCountry(String value)

public ProductAttributes.ShippingBusinessDaysConfig.Builder setCountry(String value)

The CLDR territory code of the country to which an item will ship.

optional string country = 1;

Parameter
Name Description
value String

The country to set.

Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder

This builder for chaining.

setCountryBytes(ByteString value)

public ProductAttributes.ShippingBusinessDaysConfig.Builder setCountryBytes(ByteString value)

The CLDR territory code of the country to which an item will ship.

optional string country = 1;

Parameter
Name Description
value ByteString

The bytes for country to set.

Returns
Type Description
ProductAttributes.ShippingBusinessDaysConfig.Builder

This builder for chaining.