Interface ServiceOrBuilder (0.2.0)

public interface ServiceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getActive()

public abstract 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 abstract 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 abstract 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.

getDeliveryCountries(int index)

public abstract 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 abstract 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 abstract 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 abstract List<String> 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
List<String>

A list containing the deliveryCountries.

getDeliveryTime()

public abstract 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.

getDeliveryTimeOrBuilder()

public abstract 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

getLoyaltyPrograms(int index)

public abstract 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

getLoyaltyProgramsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getMinimumOrderValueOrBuilder()

public abstract 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 abstract 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.

getMinimumOrderValueTableOrBuilder()

public abstract 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 abstract 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

getRateGroupsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getStoreConfigOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.