Class Service.StoreConfig.Builder (0.5.0)

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

A list of stores your products are delivered from. This is only valid for the local delivery shipment type.

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

Static Methods

getDescriptor()

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

Methods

addAllStoreCodes(Iterable<String> values)

public Service.StoreConfig.Builder addAllStoreCodes(Iterable<String> values)

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The storeCodes to add.

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStoreCodes(String value)

public Service.StoreConfig.Builder addStoreCodes(String value)

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The storeCodes to add.

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

addStoreCodesBytes(ByteString value)

public Service.StoreConfig.Builder addStoreCodesBytes(ByteString value)

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the storeCodes to add.

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearCutoffConfig()

public Service.StoreConfig.Builder clearCutoffConfig()

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

Returns
Type Description
Service.StoreConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceRadius()

public Service.StoreConfig.Builder clearServiceRadius()

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Returns
Type Description
Service.StoreConfig.Builder

clearStoreCodes()

public Service.StoreConfig.Builder clearStoreCodes()

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

clearStoreServiceType()

public Service.StoreConfig.Builder clearStoreServiceType()

Indicates whether all stores, or selected stores, listed by this merchant provide local delivery.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType store_service_type = 1;

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

clone()

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

getCutoffConfig()

public Service.StoreConfig.CutoffConfig getCutoffConfig()

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

Returns
Type Description
Service.StoreConfig.CutoffConfig

The cutoffConfig.

getCutoffConfigBuilder()

public Service.StoreConfig.CutoffConfig.Builder getCutoffConfigBuilder()

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

Returns
Type Description
Service.StoreConfig.CutoffConfig.Builder

getCutoffConfigOrBuilder()

public Service.StoreConfig.CutoffConfigOrBuilder getCutoffConfigOrBuilder()

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

Returns
Type Description
Service.StoreConfig.CutoffConfigOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

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

getServiceRadius()

public Distance getServiceRadius()

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Returns
Type Description
Distance

The serviceRadius.

getServiceRadiusBuilder()

public Distance.Builder getServiceRadiusBuilder()

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Returns
Type Description
Distance.Builder

getServiceRadiusOrBuilder()

public DistanceOrBuilder getServiceRadiusOrBuilder()

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Returns
Type Description
DistanceOrBuilder

getStoreCodes(int index)

public String getStoreCodes(int index)

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The storeCodes at the given index.

getStoreCodesBytes(int index)

public ByteString getStoreCodesBytes(int index)

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the storeCodes at the given index.

getStoreCodesCount()

public int getStoreCodesCount()

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of storeCodes.

getStoreCodesList()

public ProtocolStringList getStoreCodesList()

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the storeCodes.

getStoreServiceType()

public Service.StoreConfig.StoreServiceType getStoreServiceType()

Indicates whether all stores, or selected stores, listed by this merchant provide local delivery.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType store_service_type = 1;

Returns
Type Description
Service.StoreConfig.StoreServiceType

The storeServiceType.

getStoreServiceTypeValue()

public int getStoreServiceTypeValue()

Indicates whether all stores, or selected stores, listed by this merchant provide local delivery.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType store_service_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for storeServiceType.

hasCutoffConfig()

public boolean hasCutoffConfig()

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

Returns
Type Description
boolean

Whether the cutoffConfig field is set.

hasServiceRadius()

public boolean hasServiceRadius()

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Returns
Type Description
boolean

Whether the serviceRadius field is set.

hasStoreServiceType()

public boolean hasStoreServiceType()

Indicates whether all stores, or selected stores, listed by this merchant provide local delivery.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType store_service_type = 1;

Returns
Type Description
boolean

Whether the storeServiceType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCutoffConfig(Service.StoreConfig.CutoffConfig value)

public Service.StoreConfig.Builder mergeCutoffConfig(Service.StoreConfig.CutoffConfig value)

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Service.StoreConfig other)

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

mergeServiceRadius(Distance value)

public Service.StoreConfig.Builder mergeServiceRadius(Distance value)

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Parameter
Name Description
value Distance
Returns
Type Description
Service.StoreConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCutoffConfig(Service.StoreConfig.CutoffConfig value)

public Service.StoreConfig.Builder setCutoffConfig(Service.StoreConfig.CutoffConfig value)

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

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

setCutoffConfig(Service.StoreConfig.CutoffConfig.Builder builderForValue)

public Service.StoreConfig.Builder setCutoffConfig(Service.StoreConfig.CutoffConfig.Builder builderForValue)

Configs related to local delivery ends for the day.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig cutoff_config = 3;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceRadius(Distance value)

public Service.StoreConfig.Builder setServiceRadius(Distance value)

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Parameter
Name Description
value Distance
Returns
Type Description
Service.StoreConfig.Builder

setServiceRadius(Distance.Builder builderForValue)

public Service.StoreConfig.Builder setServiceRadius(Distance.Builder builderForValue)

Maximum delivery radius. This is only required for the local delivery shipment type.

optional .google.shopping.merchant.accounts.v1beta.Distance service_radius = 4;

Parameter
Name Description
builderForValue Distance.Builder
Returns
Type Description
Service.StoreConfig.Builder

setStoreCodes(int index, String value)

public Service.StoreConfig.Builder setStoreCodes(int index, String value)

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true.

repeated string store_codes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The storeCodes to set.

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

setStoreServiceType(Service.StoreConfig.StoreServiceType value)

public Service.StoreConfig.Builder setStoreServiceType(Service.StoreConfig.StoreServiceType value)

Indicates whether all stores, or selected stores, listed by this merchant provide local delivery.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType store_service_type = 1;

Parameter
Name Description
value Service.StoreConfig.StoreServiceType

The storeServiceType to set.

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

setStoreServiceTypeValue(int value)

public Service.StoreConfig.Builder setStoreServiceTypeValue(int value)

Indicates whether all stores, or selected stores, listed by this merchant provide local delivery.

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig.StoreServiceType store_service_type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Service.StoreConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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