Class Service (0.9.0)

public final class Service extends GeneratedMessageV3 implements ServiceOrBuilder

Shipping service.

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

Implements

ServiceOrBuilder

Static Fields

ACTIVE_FIELD_NUMBER

public static final int ACTIVE_FIELD_NUMBER
Field Value
Type Description
int

CURRENCY_CODE_FIELD_NUMBER

public static final int CURRENCY_CODE_FIELD_NUMBER
Field Value
Type Description
int

DELIVERY_COUNTRIES_FIELD_NUMBER

public static final int DELIVERY_COUNTRIES_FIELD_NUMBER
Field Value
Type Description
int

DELIVERY_TIME_FIELD_NUMBER

public static final int DELIVERY_TIME_FIELD_NUMBER
Field Value
Type Description
int

LOYALTY_PROGRAMS_FIELD_NUMBER

public static final int LOYALTY_PROGRAMS_FIELD_NUMBER
Field Value
Type Description
int

MINIMUM_ORDER_VALUE_FIELD_NUMBER

public static final int MINIMUM_ORDER_VALUE_FIELD_NUMBER
Field Value
Type Description
int

MINIMUM_ORDER_VALUE_TABLE_FIELD_NUMBER

public static final int MINIMUM_ORDER_VALUE_TABLE_FIELD_NUMBER
Field Value
Type Description
int

RATE_GROUPS_FIELD_NUMBER

public static final int RATE_GROUPS_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_NAME_FIELD_NUMBER

public static final int SERVICE_NAME_FIELD_NUMBER
Field Value
Type Description
int

SHIPMENT_TYPE_FIELD_NUMBER

public static final int SHIPMENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

STORE_CONFIG_FIELD_NUMBER

public static final int STORE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Service getDefaultInstance()
Returns
Type Description
Service

getDescriptor()

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

newBuilder()

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

newBuilder(Service prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

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

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.

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.

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

getParserForType()

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

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.Builder newBuilderForType()
Returns
Type Description
Service.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Service.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Service.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.Builder toBuilder()
Returns
Type Description
Service.Builder

writeTo(CodedOutputStream output)

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