public final class Service extends GeneratedMessageV3 implements ServiceOrBuilder
Shipping service.
Protobuf type google.shopping.merchant.accounts.v1beta.Service
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ACTIVE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CURRENCY_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DELIVERY_COUNTRIES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DELIVERY_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LOYALTY_PROGRAMS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MINIMUM_ORDER_VALUE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MINIMUM_ORDER_VALUE_TABLE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int RATE_GROUPS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SERVICE_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SHIPMENT_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int STORE_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Service getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Service.Builder newBuilder()
public static Service.Builder newBuilder(Service prototype)
Parameter |
Name |
Description |
prototype |
Service
|
public static Service parseDelimitedFrom(InputStream input)
public static Service parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static Service parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteString data)
public static Service parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(CodedInputStream input)
public static Service parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(InputStream input)
public static Service parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Service parseFrom(ByteBuffer data)
public static Service parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Service> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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.
|
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.
|
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.
|
public Service getDefaultInstanceForType()
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.
|
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.
|
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.
|
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];
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];
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];
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
|
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 |
|
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];
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
|
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> |
|
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.
|
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 |
|
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;
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;
public Parser<Service> getParserForType()
Overrides
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
|
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 |
|
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];
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
|
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> |
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
public Service.ShipmentType getShipmentType()
Type of locations this service ships orders to.
optional .google.shopping.merchant.accounts.v1beta.Service.ShipmentType shipment_type = 7;
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.
|
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;
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;
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Service.Builder newBuilderForType()
protected Service.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Service.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides