Class BusinessDayConfig.Builder (0.9.0)

public static final class BusinessDayConfig.Builder extends GeneratedMessageV3.Builder<BusinessDayConfig.Builder> implements BusinessDayConfigOrBuilder

Business days of the warehouse.

Protobuf type google.shopping.merchant.accounts.v1beta.BusinessDayConfig

Static Methods

getDescriptor()

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

Methods

addAllBusinessDays(Iterable<? extends BusinessDayConfig.Weekday> values)

public BusinessDayConfig.Builder addAllBusinessDays(Iterable<? extends BusinessDayConfig.Weekday> values)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday>

The businessDays to add.

Returns
Type Description
BusinessDayConfig.Builder

This builder for chaining.

addAllBusinessDaysValue(Iterable<Integer> values)

public BusinessDayConfig.Builder addAllBusinessDaysValue(Iterable<Integer> values)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for businessDays to add.

Returns
Type Description
BusinessDayConfig.Builder

This builder for chaining.

addBusinessDays(BusinessDayConfig.Weekday value)

public BusinessDayConfig.Builder addBusinessDays(BusinessDayConfig.Weekday value)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BusinessDayConfig.Weekday

The businessDays to add.

Returns
Type Description
BusinessDayConfig.Builder

This builder for chaining.

addBusinessDaysValue(int value)

public BusinessDayConfig.Builder addBusinessDaysValue(int value)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for businessDays to add.

Returns
Type Description
BusinessDayConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BusinessDayConfig build()
Returns
Type Description
BusinessDayConfig

buildPartial()

public BusinessDayConfig buildPartial()
Returns
Type Description
BusinessDayConfig

clear()

public BusinessDayConfig.Builder clear()
Returns
Type Description
BusinessDayConfig.Builder
Overrides

clearBusinessDays()

public BusinessDayConfig.Builder clearBusinessDays()

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BusinessDayConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BusinessDayConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BusinessDayConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BusinessDayConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BusinessDayConfig.Builder
Overrides

clone()

public BusinessDayConfig.Builder clone()
Returns
Type Description
BusinessDayConfig.Builder
Overrides

getBusinessDays(int index)

public BusinessDayConfig.Weekday getBusinessDays(int index)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
BusinessDayConfig.Weekday

The businessDays at the given index.

getBusinessDaysCount()

public int getBusinessDaysCount()

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of businessDays.

getBusinessDaysList()

public List<BusinessDayConfig.Weekday> getBusinessDaysList()

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Weekday>

A list containing the businessDays.

getBusinessDaysValue(int index)

public int getBusinessDaysValue(int index)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of businessDays at the given index.

getBusinessDaysValueList()

public List<Integer> getBusinessDaysValueList()

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for businessDays.

getDefaultInstanceForType()

public BusinessDayConfig getDefaultInstanceForType()
Returns
Type Description
BusinessDayConfig

getDescriptorForType()

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

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 BusinessDayConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BusinessDayConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(BusinessDayConfig other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BusinessDayConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BusinessDayConfig.Builder
Overrides

setBusinessDays(int index, BusinessDayConfig.Weekday value)

public BusinessDayConfig.Builder setBusinessDays(int index, BusinessDayConfig.Weekday value)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value BusinessDayConfig.Weekday

The businessDays to set.

Returns
Type Description
BusinessDayConfig.Builder

This builder for chaining.

setBusinessDaysValue(int index, int value)

public BusinessDayConfig.Builder setBusinessDaysValue(int index, int value)

Required. Regular business days. May not be empty.

repeated .google.shopping.merchant.accounts.v1beta.BusinessDayConfig.Weekday business_days = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for businessDays to set.

Returns
Type Description
BusinessDayConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final BusinessDayConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BusinessDayConfig.Builder
Overrides