Class Service.Builder (0.4.0)

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

Shipping service.

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

Implements

ServiceOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDeliveryCountries(Iterable<String> values)

public Service.Builder addAllDeliveryCountries(Iterable<String> values)

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The deliveryCountries to add.

Returns
Type Description
Service.Builder

This builder for chaining.

addAllLoyaltyPrograms(Iterable<? extends Service.LoyaltyProgram> values)

public Service.Builder addAllLoyaltyPrograms(Iterable<? extends Service.LoyaltyProgram> values)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram>
Returns
Type Description
Service.Builder

addAllRateGroups(Iterable<? extends RateGroup> values)

public Service.Builder addAllRateGroups(Iterable<? extends RateGroup> values)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.RateGroup>
Returns
Type Description
Service.Builder

addDeliveryCountries(String value)

public Service.Builder addDeliveryCountries(String value)

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The deliveryCountries to add.

Returns
Type Description
Service.Builder

This builder for chaining.

addDeliveryCountriesBytes(ByteString value)

public Service.Builder addDeliveryCountriesBytes(ByteString value)

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the deliveryCountries to add.

Returns
Type Description
Service.Builder

This builder for chaining.

addLoyaltyPrograms(Service.LoyaltyProgram value)

public Service.Builder addLoyaltyPrograms(Service.LoyaltyProgram value)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Service.LoyaltyProgram
Returns
Type Description
Service.Builder

addLoyaltyPrograms(Service.LoyaltyProgram.Builder builderForValue)

public Service.Builder addLoyaltyPrograms(Service.LoyaltyProgram.Builder builderForValue)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Service.LoyaltyProgram.Builder
Returns
Type Description
Service.Builder

addLoyaltyPrograms(int index, Service.LoyaltyProgram value)

public Service.Builder addLoyaltyPrograms(int index, Service.LoyaltyProgram value)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Service.LoyaltyProgram
Returns
Type Description
Service.Builder

addLoyaltyPrograms(int index, Service.LoyaltyProgram.Builder builderForValue)

public Service.Builder addLoyaltyPrograms(int index, Service.LoyaltyProgram.Builder builderForValue)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Service.LoyaltyProgram.Builder
Returns
Type Description
Service.Builder

addLoyaltyProgramsBuilder()

public Service.LoyaltyProgram.Builder addLoyaltyProgramsBuilder()

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.LoyaltyProgram.Builder

addLoyaltyProgramsBuilder(int index)

public Service.LoyaltyProgram.Builder addLoyaltyProgramsBuilder(int index)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Service.LoyaltyProgram.Builder

addRateGroups(RateGroup value)

public Service.Builder addRateGroups(RateGroup value)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RateGroup
Returns
Type Description
Service.Builder

addRateGroups(RateGroup.Builder builderForValue)

public Service.Builder addRateGroups(RateGroup.Builder builderForValue)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RateGroup.Builder
Returns
Type Description
Service.Builder

addRateGroups(int index, RateGroup value)

public Service.Builder addRateGroups(int index, RateGroup value)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value RateGroup
Returns
Type Description
Service.Builder

addRateGroups(int index, RateGroup.Builder builderForValue)

public Service.Builder addRateGroups(int index, RateGroup.Builder builderForValue)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue RateGroup.Builder
Returns
Type Description
Service.Builder

addRateGroupsBuilder()

public RateGroup.Builder addRateGroupsBuilder()

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RateGroup.Builder

addRateGroupsBuilder(int index)

public RateGroup.Builder addRateGroupsBuilder(int index)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RateGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Service build()
Returns
Type Description
Service

buildPartial()

public Service buildPartial()
Returns
Type Description
Service

clear()

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

clearActive()

public Service.Builder clearActive()

Required. A boolean exposing the active status of the shipping service.

optional bool active = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.Builder

This builder for chaining.

clearCurrencyCode()

public Service.Builder clearCurrencyCode()

The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.

optional string currency_code = 4;

Returns
Type Description
Service.Builder

This builder for chaining.

clearDeliveryCountries()

public Service.Builder clearDeliveryCountries()

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.Builder

This builder for chaining.

clearDeliveryTime()

public Service.Builder clearDeliveryTime()

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLoyaltyPrograms()

public Service.Builder clearLoyaltyPrograms()

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.Builder

clearMinimumOrderValue()

public Service.Builder clearMinimumOrderValue()

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Returns
Type Description
Service.Builder

clearMinimumOrderValueTable()

public Service.Builder clearMinimumOrderValueTable()

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Returns
Type Description
Service.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRateGroups()

public Service.Builder clearRateGroups()

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Service.Builder

clearServiceName()

public Service.Builder clearServiceName()

Required. Free-form name of the service. Must be unique within target account.

optional string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Service.Builder

This builder for chaining.

clearShipmentType()

public Service.Builder clearShipmentType()

Type of locations this service ships orders to.

optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;

Returns
Type Description
Service.Builder

This builder for chaining.

clearStoreConfig()

public Service.Builder clearStoreConfig()

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

Returns
Type Description
Service.Builder

clone()

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

getActive()

public boolean getActive()

Required. A boolean exposing the active status of the shipping service.

optional bool active = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The active.

getCurrencyCode()

public String getCurrencyCode()

The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.

optional string currency_code = 4;

Returns
Type Description
String

The currencyCode.

getCurrencyCodeBytes()

public ByteString getCurrencyCodeBytes()

The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.

optional string currency_code = 4;

Returns
Type Description
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public Service getDefaultInstanceForType()
Returns
Type Description
Service

getDeliveryCountries(int index)

public String getDeliveryCountries(int index)

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The deliveryCountries at the given index.

getDeliveryCountriesBytes(int index)

public ByteString getDeliveryCountriesBytes(int index)

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the deliveryCountries at the given index.

getDeliveryCountriesCount()

public int getDeliveryCountriesCount()

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of deliveryCountries.

getDeliveryCountriesList()

public ProtocolStringList getDeliveryCountriesList()

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the deliveryCountries.

getDeliveryTime()

public DeliveryTime getDeliveryTime()

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeliveryTime

The deliveryTime.

getDeliveryTimeBuilder()

public DeliveryTime.Builder getDeliveryTimeBuilder()

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeliveryTime.Builder

getDeliveryTimeOrBuilder()

public DeliveryTimeOrBuilder getDeliveryTimeOrBuilder()

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeliveryTimeOrBuilder

getDescriptorForType()

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

getLoyaltyPrograms(int index)

public Service.LoyaltyProgram getLoyaltyPrograms(int index)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Service.LoyaltyProgram

getLoyaltyProgramsBuilder(int index)

public Service.LoyaltyProgram.Builder getLoyaltyProgramsBuilder(int index)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Service.LoyaltyProgram.Builder

getLoyaltyProgramsBuilderList()

public List<Service.LoyaltyProgram.Builder> getLoyaltyProgramsBuilderList()

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getLoyaltyProgramsCount()

public int getLoyaltyProgramsCount()

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLoyaltyProgramsList()

public List<Service.LoyaltyProgram> getLoyaltyProgramsList()

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<LoyaltyProgram>

getLoyaltyProgramsOrBuilder(int index)

public Service.LoyaltyProgramOrBuilder getLoyaltyProgramsOrBuilder(int index)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Service.LoyaltyProgramOrBuilder

getLoyaltyProgramsOrBuilderList()

public List<? extends Service.LoyaltyProgramOrBuilder> getLoyaltyProgramsOrBuilderList()

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgramOrBuilder>

getMinimumOrderValue()

public Price getMinimumOrderValue()

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Returns
Type Description
com.google.shopping.type.Price

The minimumOrderValue.

getMinimumOrderValueBuilder()

public Price.Builder getMinimumOrderValueBuilder()

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Returns
Type Description
com.google.shopping.type.Price.Builder

getMinimumOrderValueOrBuilder()

public PriceOrBuilder getMinimumOrderValueOrBuilder()

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getMinimumOrderValueTable()

public MinimumOrderValueTable getMinimumOrderValueTable()

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Returns
Type Description
MinimumOrderValueTable

The minimumOrderValueTable.

getMinimumOrderValueTableBuilder()

public MinimumOrderValueTable.Builder getMinimumOrderValueTableBuilder()

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Returns
Type Description
MinimumOrderValueTable.Builder

getMinimumOrderValueTableOrBuilder()

public MinimumOrderValueTableOrBuilder getMinimumOrderValueTableOrBuilder()

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Returns
Type Description
MinimumOrderValueTableOrBuilder

getRateGroups(int index)

public RateGroup getRateGroups(int index)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RateGroup

getRateGroupsBuilder(int index)

public RateGroup.Builder getRateGroupsBuilder(int index)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RateGroup.Builder

getRateGroupsBuilderList()

public List<RateGroup.Builder> getRateGroupsBuilderList()

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getRateGroupsCount()

public int getRateGroupsCount()

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getRateGroupsList()

public List<RateGroup> getRateGroupsList()

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RateGroup>

getRateGroupsOrBuilder(int index)

public RateGroupOrBuilder getRateGroupsOrBuilder(int index)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RateGroupOrBuilder

getRateGroupsOrBuilderList()

public List<? extends RateGroupOrBuilder> getRateGroupsOrBuilderList()

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.RateGroupOrBuilder>

getServiceName()

public String getServiceName()

Required. Free-form name of the service. Must be unique within target account.

optional string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

Required. Free-form name of the service. Must be unique within target account.

optional string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for serviceName.

getShipmentType()

public Service.ShipmentType getShipmentType()

Type of locations this service ships orders to.

optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;

Returns
Type Description
Service.ShipmentType

The shipmentType.

getShipmentTypeValue()

public int getShipmentTypeValue()

Type of locations this service ships orders to.

optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;

Returns
Type Description
int

The enum numeric value on the wire for shipmentType.

getStoreConfig()

public Service.StoreConfig getStoreConfig()

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

Returns
Type Description
Service.StoreConfig

The storeConfig.

getStoreConfigBuilder()

public Service.StoreConfig.Builder getStoreConfigBuilder()

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

Returns
Type Description
Service.StoreConfig.Builder

getStoreConfigOrBuilder()

public Service.StoreConfigOrBuilder getStoreConfigOrBuilder()

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

Returns
Type Description
Service.StoreConfigOrBuilder

hasActive()

public boolean hasActive()

Required. A boolean exposing the active status of the shipping service.

optional bool active = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the active field is set.

hasCurrencyCode()

public boolean hasCurrencyCode()

The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.

optional string currency_code = 4;

Returns
Type Description
boolean

Whether the currencyCode field is set.

hasDeliveryTime()

public boolean hasDeliveryTime()

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the deliveryTime field is set.

hasMinimumOrderValue()

public boolean hasMinimumOrderValue()

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Returns
Type Description
boolean

Whether the minimumOrderValue field is set.

hasMinimumOrderValueTable()

public boolean hasMinimumOrderValueTable()

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Returns
Type Description
boolean

Whether the minimumOrderValueTable field is set.

hasServiceName()

public boolean hasServiceName()

Required. Free-form name of the service. Must be unique within target account.

optional string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the serviceName field is set.

hasShipmentType()

public boolean hasShipmentType()

Type of locations this service ships orders to.

optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;

Returns
Type Description
boolean

Whether the shipmentType field is set.

hasStoreConfig()

public boolean hasStoreConfig()

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

Returns
Type Description
boolean

Whether the storeConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeliveryTime(DeliveryTime value)

public Service.Builder mergeDeliveryTime(DeliveryTime value)

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeliveryTime
Returns
Type Description
Service.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Service other)

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

mergeMinimumOrderValue(Price value)

public Service.Builder mergeMinimumOrderValue(Price value)

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Service.Builder

mergeMinimumOrderValueTable(MinimumOrderValueTable value)

public Service.Builder mergeMinimumOrderValueTable(MinimumOrderValueTable value)

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Parameter
Name Description
value MinimumOrderValueTable
Returns
Type Description
Service.Builder

mergeStoreConfig(Service.StoreConfig value)

public Service.Builder mergeStoreConfig(Service.StoreConfig value)

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLoyaltyPrograms(int index)

public Service.Builder removeLoyaltyPrograms(int index)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Service.Builder

removeRateGroups(int index)

public Service.Builder removeRateGroups(int index)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Service.Builder

setActive(boolean value)

public Service.Builder setActive(boolean value)

Required. A boolean exposing the active status of the shipping service.

optional bool active = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The active to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setCurrencyCode(String value)

public Service.Builder setCurrencyCode(String value)

The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.

optional string currency_code = 4;

Parameter
Name Description
value String

The currencyCode to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setCurrencyCodeBytes(ByteString value)

public Service.Builder setCurrencyCodeBytes(ByteString value)

The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.

optional string currency_code = 4;

Parameter
Name Description
value ByteString

The bytes for currencyCode to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setDeliveryCountries(int index, String value)

public Service.Builder setDeliveryCountries(int index, String value)

Required. The CLDR territory code of the countries to which the service applies.

repeated string delivery_countries = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The deliveryCountries to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setDeliveryTime(DeliveryTime value)

public Service.Builder setDeliveryTime(DeliveryTime value)

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeliveryTime
Returns
Type Description
Service.Builder

setDeliveryTime(DeliveryTime.Builder builderForValue)

public Service.Builder setDeliveryTime(DeliveryTime.Builder builderForValue)

Required. Time spent in various aspects from order to the delivery of the product.

optional .google.shopping.merchant.accounts.v1beta.DeliveryTime delivery_time = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DeliveryTime.Builder
Returns
Type Description
Service.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLoyaltyPrograms(int index, Service.LoyaltyProgram value)

public Service.Builder setLoyaltyPrograms(int index, Service.LoyaltyProgram value)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Service.LoyaltyProgram
Returns
Type Description
Service.Builder

setLoyaltyPrograms(int index, Service.LoyaltyProgram.Builder builderForValue)

public Service.Builder setLoyaltyPrograms(int index, Service.LoyaltyProgram.Builder builderForValue)

Optional. Loyalty programs that this shipping service is limited to.

repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram loyalty_programs = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Service.LoyaltyProgram.Builder
Returns
Type Description
Service.Builder

setMinimumOrderValue(Price value)

public Service.Builder setMinimumOrderValue(Price value)

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
Service.Builder

setMinimumOrderValue(Price.Builder builderForValue)

public Service.Builder setMinimumOrderValue(Price.Builder builderForValue)

Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.

optional .google.shopping.type.Price minimum_order_value = 8;

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
Service.Builder

setMinimumOrderValueTable(MinimumOrderValueTable value)

public Service.Builder setMinimumOrderValueTable(MinimumOrderValueTable value)

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Parameter
Name Description
value MinimumOrderValueTable
Returns
Type Description
Service.Builder

setMinimumOrderValueTable(MinimumOrderValueTable.Builder builderForValue)

public Service.Builder setMinimumOrderValueTable(MinimumOrderValueTable.Builder builderForValue)

Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.

optional .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable minimum_order_value_table = 9;

Parameter
Name Description
builderForValue MinimumOrderValueTable.Builder
Returns
Type Description
Service.Builder

setRateGroups(int index, RateGroup value)

public Service.Builder setRateGroups(int index, RateGroup value)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value RateGroup
Returns
Type Description
Service.Builder

setRateGroups(int index, RateGroup.Builder builderForValue)

public Service.Builder setRateGroups(int index, RateGroup.Builder builderForValue)

Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

repeated .google.shopping.merchant.accounts.v1beta.RateGroup rate_groups = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue RateGroup.Builder
Returns
Type Description
Service.Builder

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

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

setServiceName(String value)

public Service.Builder setServiceName(String value)

Required. Free-form name of the service. Must be unique within target account.

optional string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public Service.Builder setServiceNameBytes(ByteString value)

Required. Free-form name of the service. Must be unique within target account.

optional string service_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setShipmentType(Service.ShipmentType value)

public Service.Builder setShipmentType(Service.ShipmentType value)

Type of locations this service ships orders to.

optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;

Parameter
Name Description
value Service.ShipmentType

The shipmentType to set.

Returns
Type Description
Service.Builder

This builder for chaining.

setShipmentTypeValue(int value)

public Service.Builder setShipmentTypeValue(int value)

Type of locations this service ships orders to.

optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;

Parameter
Name Description
value int

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

Returns
Type Description
Service.Builder

This builder for chaining.

setStoreConfig(Service.StoreConfig value)

public Service.Builder setStoreConfig(Service.StoreConfig value)

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

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

setStoreConfig(Service.StoreConfig.Builder builderForValue)

public Service.Builder setStoreConfig(Service.StoreConfig.Builder builderForValue)

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

optional .google.shopping.merchant.accounts.v1beta.Service.StoreConfig store_config = 10;

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

setUnknownFields(UnknownFieldSet unknownFields)

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