Class WarehouseBasedDeliveryTime.Builder (0.10.0)

public static final class WarehouseBasedDeliveryTime.Builder extends GeneratedMessageV3.Builder<WarehouseBasedDeliveryTime.Builder> implements WarehouseBasedDeliveryTimeOrBuilder

Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery_time should be set.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WarehouseBasedDeliveryTime build()
Returns
Type Description
WarehouseBasedDeliveryTime

buildPartial()

public WarehouseBasedDeliveryTime buildPartial()
Returns
Type Description
WarehouseBasedDeliveryTime

clear()

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

clearCarrier()

public WarehouseBasedDeliveryTime.Builder clearCarrier()

Required. Carrier, such as "UPS" or "Fedex".

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

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

clearCarrierService()

public WarehouseBasedDeliveryTime.Builder clearCarrierService()

Required. Carrier service, such as "ground" or "2 days". The name of the service must be in the eddSupportedServices list.

optional string carrier_service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWarehouse()

public WarehouseBasedDeliveryTime.Builder clearWarehouse()

Required. Warehouse name. This should match warehouse

optional string warehouse = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

clone()

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

getCarrier()

public String getCarrier()

Required. Carrier, such as "UPS" or "Fedex".

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

Returns
Type Description
String

The carrier.

getCarrierBytes()

public ByteString getCarrierBytes()

Required. Carrier, such as "UPS" or "Fedex".

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

Returns
Type Description
ByteString

The bytes for carrier.

getCarrierService()

public String getCarrierService()

Required. Carrier service, such as "ground" or "2 days". The name of the service must be in the eddSupportedServices list.

optional string carrier_service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The carrierService.

getCarrierServiceBytes()

public ByteString getCarrierServiceBytes()

Required. Carrier service, such as "ground" or "2 days". The name of the service must be in the eddSupportedServices list.

optional string carrier_service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for carrierService.

getDefaultInstanceForType()

public WarehouseBasedDeliveryTime getDefaultInstanceForType()
Returns
Type Description
WarehouseBasedDeliveryTime

getDescriptorForType()

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

getWarehouse()

public String getWarehouse()

Required. Warehouse name. This should match warehouse

optional string warehouse = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The warehouse.

getWarehouseBytes()

public ByteString getWarehouseBytes()

Required. Warehouse name. This should match warehouse

optional string warehouse = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for warehouse.

hasCarrier()

public boolean hasCarrier()

Required. Carrier, such as "UPS" or "Fedex".

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

Returns
Type Description
boolean

Whether the carrier field is set.

hasCarrierService()

public boolean hasCarrierService()

Required. Carrier service, such as "ground" or "2 days". The name of the service must be in the eddSupportedServices list.

optional string carrier_service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the carrierService field is set.

hasWarehouse()

public boolean hasWarehouse()

Required. Warehouse name. This should match warehouse

optional string warehouse = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the warehouse field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(WarehouseBasedDeliveryTime other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCarrier(String value)

public WarehouseBasedDeliveryTime.Builder setCarrier(String value)

Required. Carrier, such as "UPS" or "Fedex".

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

Parameter
Name Description
value String

The carrier to set.

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

setCarrierBytes(ByteString value)

public WarehouseBasedDeliveryTime.Builder setCarrierBytes(ByteString value)

Required. Carrier, such as "UPS" or "Fedex".

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

Parameter
Name Description
value ByteString

The bytes for carrier to set.

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

setCarrierService(String value)

public WarehouseBasedDeliveryTime.Builder setCarrierService(String value)

Required. Carrier service, such as "ground" or "2 days". The name of the service must be in the eddSupportedServices list.

optional string carrier_service = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The carrierService to set.

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

setCarrierServiceBytes(ByteString value)

public WarehouseBasedDeliveryTime.Builder setCarrierServiceBytes(ByteString value)

Required. Carrier service, such as "ground" or "2 days". The name of the service must be in the eddSupportedServices list.

optional string carrier_service = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for carrierService to set.

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarehouse(String value)

public WarehouseBasedDeliveryTime.Builder setWarehouse(String value)

Required. Warehouse name. This should match warehouse

optional string warehouse = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The warehouse to set.

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.

setWarehouseBytes(ByteString value)

public WarehouseBasedDeliveryTime.Builder setWarehouseBytes(ByteString value)

Required. Warehouse name. This should match warehouse

optional string warehouse = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for warehouse to set.

Returns
Type Description
WarehouseBasedDeliveryTime.Builder

This builder for chaining.