public static final class ShippingSettings.Builder extends GeneratedMessageV3.Builder<ShippingSettings.Builder> implements ShippingSettingsOrBuilder
The merchant account's shipping setting.
Protobuf type google.shopping.merchant.accounts.v1beta.ShippingSettings
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ShippingSettings.BuilderImplements
ShippingSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllServices(Iterable<? extends Service> values)
public ShippingSettings.Builder addAllServices(Iterable<? extends Service> values)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.shopping.merchant.accounts.v1beta.Service> |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addAllWarehouses(Iterable<? extends Warehouse> values)
public ShippingSettings.Builder addAllWarehouses(Iterable<? extends Warehouse> values)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.shopping.merchant.accounts.v1beta.Warehouse> |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShippingSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addServices(Service value)
public ShippingSettings.Builder addServices(Service value)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Service |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addServices(Service.Builder builderForValue)
public ShippingSettings.Builder addServices(Service.Builder builderForValue)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Service.Builder |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addServices(int index, Service value)
public ShippingSettings.Builder addServices(int index, Service value)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Service |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addServices(int index, Service.Builder builderForValue)
public ShippingSettings.Builder addServices(int index, Service.Builder builderForValue)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Service.Builder |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addServicesBuilder()
public Service.Builder addServicesBuilder()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Service.Builder |
addServicesBuilder(int index)
public Service.Builder addServicesBuilder(int index)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Service.Builder |
addWarehouses(Warehouse value)
public ShippingSettings.Builder addWarehouses(Warehouse value)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Warehouse |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addWarehouses(Warehouse.Builder builderForValue)
public ShippingSettings.Builder addWarehouses(Warehouse.Builder builderForValue)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Warehouse.Builder |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addWarehouses(int index, Warehouse value)
public ShippingSettings.Builder addWarehouses(int index, Warehouse value)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Warehouse |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addWarehouses(int index, Warehouse.Builder builderForValue)
public ShippingSettings.Builder addWarehouses(int index, Warehouse.Builder builderForValue)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Warehouse.Builder |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
addWarehousesBuilder()
public Warehouse.Builder addWarehousesBuilder()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Warehouse.Builder |
addWarehousesBuilder(int index)
public Warehouse.Builder addWarehousesBuilder(int index)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Warehouse.Builder |
build()
public ShippingSettings build()
Returns | |
---|---|
Type | Description |
ShippingSettings |
buildPartial()
public ShippingSettings buildPartial()
Returns | |
---|---|
Type | Description |
ShippingSettings |
clear()
public ShippingSettings.Builder clear()
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
clearEtag()
public ShippingSettings.Builder clearEtag()
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
Set etag field as empty string for initial shipping setting creation.
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
Modify to wanted shipping setting information.
Call insert method with the wanted shipping setting information with the etag obtained from step 2.
If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
string etag = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ShippingSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
clearName()
public ShippingSettings.Builder clearName()
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ShippingSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
clearServices()
public ShippingSettings.Builder clearServices()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
clearWarehouses()
public ShippingSettings.Builder clearWarehouses()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
clone()
public ShippingSettings.Builder clone()
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
getDefaultInstanceForType()
public ShippingSettings getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ShippingSettings |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEtag()
public String getEtag()
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
Set etag field as empty string for initial shipping setting creation.
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
Modify to wanted shipping setting information.
Call insert method with the wanted shipping setting information with the etag obtained from step 2.
If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
string etag = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
Set etag field as empty string for initial shipping setting creation.
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
Modify to wanted shipping setting information.
Call insert method with the wanted shipping setting information with the etag obtained from step 2.
If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
string etag = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for etag. |
getName()
public String getName()
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getServices(int index)
public Service getServices(int index)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Service |
getServicesBuilder(int index)
public Service.Builder getServicesBuilder(int index)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Service.Builder |
getServicesBuilderList()
public List<Service.Builder> getServicesBuilderList()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getServicesCount()
public int getServicesCount()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getServicesList()
public List<Service> getServicesList()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Service> |
getServicesOrBuilder(int index)
public ServiceOrBuilder getServicesOrBuilder(int index)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ServiceOrBuilder |
getServicesOrBuilderList()
public List<? extends ServiceOrBuilder> getServicesOrBuilderList()
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.shopping.merchant.accounts.v1beta.ServiceOrBuilder> |
getWarehouses(int index)
public Warehouse getWarehouses(int index)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Warehouse |
getWarehousesBuilder(int index)
public Warehouse.Builder getWarehousesBuilder(int index)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Warehouse.Builder |
getWarehousesBuilderList()
public List<Warehouse.Builder> getWarehousesBuilderList()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getWarehousesCount()
public int getWarehousesCount()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getWarehousesList()
public List<Warehouse> getWarehousesList()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Warehouse> |
getWarehousesOrBuilder(int index)
public WarehouseOrBuilder getWarehousesOrBuilder(int index)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
WarehouseOrBuilder |
getWarehousesOrBuilderList()
public List<? extends WarehouseOrBuilder> getWarehousesOrBuilderList()
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.shopping.merchant.accounts.v1beta.WarehouseOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ShippingSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ShippingSettings.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
mergeFrom(ShippingSettings other)
public ShippingSettings.Builder mergeFrom(ShippingSettings other)
Parameter | |
---|---|
Name | Description |
other |
ShippingSettings |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShippingSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
removeServices(int index)
public ShippingSettings.Builder removeServices(int index)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
removeWarehouses(int index)
public ShippingSettings.Builder removeWarehouses(int index)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
setEtag(String value)
public ShippingSettings.Builder setEtag(String value)
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
Set etag field as empty string for initial shipping setting creation.
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
Modify to wanted shipping setting information.
Call insert method with the wanted shipping setting information with the etag obtained from step 2.
If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
string etag = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The etag to set. |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public ShippingSettings.Builder setEtagBytes(ByteString value)
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
Set etag field as empty string for initial shipping setting creation.
After initial creation, call get method to obtain an etag and current shipping setting data before call insert.
Modify to wanted shipping setting information.
Call insert method with the wanted shipping setting information with the etag obtained from step 2.
If shipping setting data changed between step 2 and step 4. Insert request will fail because the etag changes every time the shipping setting data changes. User should repeate step 2-4 with the new etag.
string etag = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for etag to set. |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ShippingSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
setName(String value)
public ShippingSettings.Builder setName(String value)
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ShippingSettings.Builder setNameBytes(ByteString value)
Identifier. The resource name of the shipping setting.
Format: accounts/{account}/shippingSetting
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ShippingSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
setServices(int index, Service value)
public ShippingSettings.Builder setServices(int index, Service value)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Service |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
setServices(int index, Service.Builder builderForValue)
public ShippingSettings.Builder setServices(int index, Service.Builder builderForValue)
Optional. The target account's list of services.
repeated .google.shopping.merchant.accounts.v1beta.Service services = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Service.Builder |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ShippingSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
setWarehouses(int index, Warehouse value)
public ShippingSettings.Builder setWarehouses(int index, Warehouse value)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Warehouse |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |
setWarehouses(int index, Warehouse.Builder builderForValue)
public ShippingSettings.Builder setWarehouses(int index, Warehouse.Builder builderForValue)
Optional. A list of warehouses which can be referred to in services
.
repeated .google.shopping.merchant.accounts.v1beta.Warehouse warehouses = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Warehouse.Builder |
Returns | |
---|---|
Type | Description |
ShippingSettings.Builder |