Class WarehouseBasedDeliveryTime (0.3.0)

public final class WarehouseBasedDeliveryTime extends GeneratedMessageV3 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 Fields

CARRIER_FIELD_NUMBER

public static final int CARRIER_FIELD_NUMBER
Field Value
Type Description
int

CARRIER_SERVICE_FIELD_NUMBER

public static final int CARRIER_SERVICE_FIELD_NUMBER
Field Value
Type Description
int

WAREHOUSE_FIELD_NUMBER

public static final int WAREHOUSE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WarehouseBasedDeliveryTime getDefaultInstance()
Returns
Type Description
WarehouseBasedDeliveryTime

getDescriptor()

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

newBuilder()

public static WarehouseBasedDeliveryTime.Builder newBuilder()
Returns
Type Description
WarehouseBasedDeliveryTime.Builder

newBuilder(WarehouseBasedDeliveryTime prototype)

public static WarehouseBasedDeliveryTime.Builder newBuilder(WarehouseBasedDeliveryTime prototype)
Parameter
Name Description
prototype WarehouseBasedDeliveryTime
Returns
Type Description
WarehouseBasedDeliveryTime.Builder

parseDelimitedFrom(InputStream input)

public static WarehouseBasedDeliveryTime parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WarehouseBasedDeliveryTime parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WarehouseBasedDeliveryTime parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WarehouseBasedDeliveryTime parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WarehouseBasedDeliveryTime parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WarehouseBasedDeliveryTime parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WarehouseBasedDeliveryTime parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WarehouseBasedDeliveryTime parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WarehouseBasedDeliveryTime parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WarehouseBasedDeliveryTime parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WarehouseBasedDeliveryTime parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WarehouseBasedDeliveryTime parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WarehouseBasedDeliveryTime
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WarehouseBasedDeliveryTime> parser()
Returns
Type Description
Parser<WarehouseBasedDeliveryTime>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<WarehouseBasedDeliveryTime> getParserForType()
Returns
Type Description
Parser<WarehouseBasedDeliveryTime>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WarehouseBasedDeliveryTime.Builder newBuilderForType()
Returns
Type Description
WarehouseBasedDeliveryTime.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WarehouseBasedDeliveryTime.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WarehouseBasedDeliveryTime.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WarehouseBasedDeliveryTime.Builder toBuilder()
Returns
Type Description
WarehouseBasedDeliveryTime.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException