public final class ShippingSettings extends GeneratedMessage 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.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ShippingSettings.Builder newBuilderForType()
protected ShippingSettings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public ShippingSettings.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides