Class ShippingSettings (1.0.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public final class ShippingSettings extends GeneratedMessageV3 implements ShippingSettingsOrBuilder
The Merchant Center account's shipping
settings . The
ShippingSettings
resource lets you retrieve and update the shipping
settings of your advanced account and all its associated sub-accounts.
Protobuf type google.shopping.merchant.accounts.v1.ShippingSettings
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 ETAG_FIELD_NUMBER
Field Value
Type
Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int SERVICES_FIELD_NUMBER
Field Value
Type
Description
int
public static final int WAREHOUSES_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static ShippingSettings getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static ShippingSettings . Builder newBuilder ()
public static ShippingSettings . Builder newBuilder ( ShippingSettings prototype )
public static ShippingSettings parseDelimitedFrom ( InputStream input )
public static ShippingSettings parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ShippingSettings parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static ShippingSettings parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static ShippingSettings parseFrom ( ByteString data )
public static ShippingSettings parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ShippingSettings parseFrom ( CodedInputStream input )
public static ShippingSettings parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ShippingSettings parseFrom ( InputStream input )
public static ShippingSettings parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ShippingSettings parseFrom ( ByteBuffer data )
public static ShippingSettings parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<ShippingSettings> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public ShippingSettings getDefaultInstanceForType ()
Required. This field helps avoid async issues. It ensures that the shipping
setting
data doesn't change between the get
call and the insert
call. The user
should follow these steps:
Set the etag field as an empty string for the initial shipping setting
creation.
After the initial creation, call the get
method to obtain an etag and
the current shipping setting data before calling insert
.
Modify the shipping setting information.
Call the insert
method with the shipping setting information
and the etag obtained in step 2.
If the shipping setting data changes between step 2 and step 4, the
insert request will fail because the etag changes every time the shipping
setting data changes. In this case, the user should repeat steps 2-4 with
the new etag.
string etag = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The etag.
public ByteString getEtagBytes ()
Required. This field helps avoid async issues. It ensures that the shipping
setting
data doesn't change between the get
call and the insert
call. The user
should follow these steps:
Set the etag field as an empty string for the initial shipping setting
creation.
After the initial creation, call the get
method to obtain an etag and
the current shipping setting data before calling insert
.
Modify the shipping setting information.
Call the insert
method with the shipping setting information
and the etag obtained in step 2.
If the shipping setting data changes between step 2 and step 4, the
insert request will fail because the etag changes every time the shipping
setting data changes. In this case, the user should repeat steps 2-4 with
the new etag.
string etag = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for etag.
Identifier. The resource name of the shipping settings.
Format: accounts/{account}/shippingSettings
. For example,
accounts/123456/shippingSettings
.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
String
The name.
public ByteString getNameBytes ()
Identifier. The resource name of the shipping settings.
Format: accounts/{account}/shippingSettings
. For example,
accounts/123456/shippingSettings
.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
ByteString
The bytes for name.
public Parser<ShippingSettings> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public Service getServices ( int index )
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public int getServicesCount ()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
public List<Service> getServicesList ()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
public ServiceOrBuilder getServicesOrBuilder ( int index )
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public List <? extends ServiceOrBuilder > getServicesOrBuilderList ()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
List <? extends com.google.shopping.merchant.accounts.v1.ServiceOrBuilder >
public Warehouse getWarehouses ( int index )
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public int getWarehousesCount ()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
public List<Warehouse> getWarehousesList ()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
public WarehouseOrBuilder getWarehousesOrBuilder ( int index )
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public List <? extends WarehouseOrBuilder > getWarehousesOrBuilderList ()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
List <? extends com.google.shopping.merchant.accounts.v1.WarehouseOrBuilder >
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public ShippingSettings . Builder newBuilderForType ()
protected ShippingSettings . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public ShippingSettings . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[],null,[]]