Class Service.StoreConfig (0.7.0)

public static final class Service.StoreConfig extends GeneratedMessageV3 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 Fields

CUTOFF_CONFIG_FIELD_NUMBER

public static final int CUTOFF_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_RADIUS_FIELD_NUMBER

public static final int SERVICE_RADIUS_FIELD_NUMBER
Field Value
Type Description
int

STORE_CODES_FIELD_NUMBER

public static final int STORE_CODES_FIELD_NUMBER
Field Value
Type Description
int

STORE_SERVICE_TYPE_FIELD_NUMBER

public static final int STORE_SERVICE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Service.StoreConfig getDefaultInstance()
Returns
Type Description
Service.StoreConfig

getDescriptor()

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

newBuilder()

public static Service.StoreConfig.Builder newBuilder()
Returns
Type Description
Service.StoreConfig.Builder

newBuilder(Service.StoreConfig prototype)

public static Service.StoreConfig.Builder newBuilder(Service.StoreConfig prototype)
Parameter
Name Description
prototype Service.StoreConfig
Returns
Type Description
Service.StoreConfig.Builder

parseDelimitedFrom(InputStream input)

public static Service.StoreConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Service.StoreConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Service.StoreConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Service.StoreConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Service.StoreConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Service.StoreConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Service.StoreConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.StoreConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Service.StoreConfig> parser()
Returns
Type Description
Parser<StoreConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getParserForType()

public Parser<Service.StoreConfig> getParserForType()
Returns
Type Description
Parser<StoreConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Service.StoreConfig.Builder newBuilderForType()
Returns
Type Description
Service.StoreConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Service.StoreConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Service.StoreConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Service.StoreConfig.Builder toBuilder()
Returns
Type Description
Service.StoreConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException