Class Warehouse.Builder (0.9.0)

public static final class Warehouse.Builder extends GeneratedMessageV3.Builder<Warehouse.Builder> implements WarehouseOrBuilder

A fulfillment warehouse, which stores and handles inventory. Next tag: 7

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

Implements

WarehouseOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Warehouse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Warehouse.Builder
Overrides

build()

public Warehouse build()
Returns
Type Description
Warehouse

buildPartial()

public Warehouse buildPartial()
Returns
Type Description
Warehouse

clear()

public Warehouse.Builder clear()
Returns
Type Description
Warehouse.Builder
Overrides

clearBusinessDayConfig()

public Warehouse.Builder clearBusinessDayConfig()

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Returns
Type Description
Warehouse.Builder

clearCutoffTime()

public Warehouse.Builder clearCutoffTime()

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Warehouse.Builder

clearField(Descriptors.FieldDescriptor field)

public Warehouse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Warehouse.Builder
Overrides

clearHandlingDays()

public Warehouse.Builder clearHandlingDays()

Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item.

optional int64 handling_days = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Warehouse.Builder

This builder for chaining.

clearName()

public Warehouse.Builder clearName()

Required. The name of the warehouse. Must be unique within account.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Warehouse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Warehouse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Warehouse.Builder
Overrides

clearShippingAddress()

public Warehouse.Builder clearShippingAddress()

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Warehouse.Builder

clone()

public Warehouse.Builder clone()
Returns
Type Description
Warehouse.Builder
Overrides

getBusinessDayConfig()

public BusinessDayConfig getBusinessDayConfig()

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Returns
Type Description
BusinessDayConfig

The businessDayConfig.

getBusinessDayConfigBuilder()

public BusinessDayConfig.Builder getBusinessDayConfigBuilder()

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Returns
Type Description
BusinessDayConfig.Builder

getBusinessDayConfigOrBuilder()

public BusinessDayConfigOrBuilder getBusinessDayConfigOrBuilder()

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Returns
Type Description
BusinessDayConfigOrBuilder

getCutoffTime()

public WarehouseCutoffTime getCutoffTime()

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WarehouseCutoffTime

The cutoffTime.

getCutoffTimeBuilder()

public WarehouseCutoffTime.Builder getCutoffTimeBuilder()

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WarehouseCutoffTime.Builder

getCutoffTimeOrBuilder()

public WarehouseCutoffTimeOrBuilder getCutoffTimeOrBuilder()

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WarehouseCutoffTimeOrBuilder

getDefaultInstanceForType()

public Warehouse getDefaultInstanceForType()
Returns
Type Description
Warehouse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHandlingDays()

public long getHandlingDays()

Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item.

optional int64 handling_days = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The handlingDays.

getName()

public String getName()

Required. The name of the warehouse. Must be unique within account.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the warehouse. Must be unique within account.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getShippingAddress()

public Address getShippingAddress()

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Address

The shippingAddress.

getShippingAddressBuilder()

public Address.Builder getShippingAddressBuilder()

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Address.Builder

getShippingAddressOrBuilder()

public AddressOrBuilder getShippingAddressOrBuilder()

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddressOrBuilder

hasBusinessDayConfig()

public boolean hasBusinessDayConfig()

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Returns
Type Description
boolean

Whether the businessDayConfig field is set.

hasCutoffTime()

public boolean hasCutoffTime()

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cutoffTime field is set.

hasHandlingDays()

public boolean hasHandlingDays()

Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item.

optional int64 handling_days = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the handlingDays field is set.

hasName()

public boolean hasName()

Required. The name of the warehouse. Must be unique within account.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the name field is set.

hasShippingAddress()

public boolean hasShippingAddress()

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the shippingAddress field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBusinessDayConfig(BusinessDayConfig value)

public Warehouse.Builder mergeBusinessDayConfig(BusinessDayConfig value)

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Parameter
Name Description
value BusinessDayConfig
Returns
Type Description
Warehouse.Builder

mergeCutoffTime(WarehouseCutoffTime value)

public Warehouse.Builder mergeCutoffTime(WarehouseCutoffTime value)

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WarehouseCutoffTime
Returns
Type Description
Warehouse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Warehouse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Warehouse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Warehouse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Warehouse.Builder
Overrides

mergeFrom(Warehouse other)

public Warehouse.Builder mergeFrom(Warehouse other)
Parameter
Name Description
other Warehouse
Returns
Type Description
Warehouse.Builder

mergeShippingAddress(Address value)

public Warehouse.Builder mergeShippingAddress(Address value)

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Address
Returns
Type Description
Warehouse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Warehouse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Warehouse.Builder
Overrides

setBusinessDayConfig(BusinessDayConfig value)

public Warehouse.Builder setBusinessDayConfig(BusinessDayConfig value)

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Parameter
Name Description
value BusinessDayConfig
Returns
Type Description
Warehouse.Builder

setBusinessDayConfig(BusinessDayConfig.Builder builderForValue)

public Warehouse.Builder setBusinessDayConfig(BusinessDayConfig.Builder builderForValue)

Business days of the warehouse. If not set, will be Monday to Friday by default.

optional .google.shopping.merchant.accounts.v1beta.BusinessDayConfig business_day_config = 5;

Parameter
Name Description
builderForValue BusinessDayConfig.Builder
Returns
Type Description
Warehouse.Builder

setCutoffTime(WarehouseCutoffTime value)

public Warehouse.Builder setCutoffTime(WarehouseCutoffTime value)

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WarehouseCutoffTime
Returns
Type Description
Warehouse.Builder

setCutoffTime(WarehouseCutoffTime.Builder builderForValue)

public Warehouse.Builder setCutoffTime(WarehouseCutoffTime.Builder builderForValue)

Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.

optional .google.shopping.merchant.accounts.v1beta.WarehouseCutoffTime cutoff_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue WarehouseCutoffTime.Builder
Returns
Type Description
Warehouse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Warehouse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Warehouse.Builder
Overrides

setHandlingDays(long value)

public Warehouse.Builder setHandlingDays(long value)

Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item.

optional int64 handling_days = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The handlingDays to set.

Returns
Type Description
Warehouse.Builder

This builder for chaining.

setName(String value)

public Warehouse.Builder setName(String value)

Required. The name of the warehouse. Must be unique within account.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Warehouse.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Warehouse.Builder setNameBytes(ByteString value)

Required. The name of the warehouse. Must be unique within account.

optional string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Warehouse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Warehouse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Warehouse.Builder
Overrides

setShippingAddress(Address value)

public Warehouse.Builder setShippingAddress(Address value)

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Address
Returns
Type Description
Warehouse.Builder

setShippingAddress(Address.Builder builderForValue)

public Warehouse.Builder setShippingAddress(Address.Builder builderForValue)

Required. Shipping address of the warehouse.

optional .google.shopping.merchant.accounts.v1beta.Address shipping_address = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Address.Builder
Returns
Type Description
Warehouse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Warehouse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Warehouse.Builder
Overrides