Class ShipmentRoute.VehicleLoad.Builder (1.83.0)

public static final class ShipmentRoute.VehicleLoad.Builder extends GeneratedMessage.Builder<ShipmentRoute.VehicleLoad.Builder> implements ShipmentRoute.VehicleLoadOrBuilder

Reports the actual load of the vehicle at some point along the route, for a given type (see Transition.vehicle_loads).

Protobuf type google.cloud.optimization.v1.ShipmentRoute.VehicleLoad

Static Methods

getDescriptor()

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

Methods

build()

public ShipmentRoute.VehicleLoad build()
Returns
Type Description
ShipmentRoute.VehicleLoad

buildPartial()

public ShipmentRoute.VehicleLoad buildPartial()
Returns
Type Description
ShipmentRoute.VehicleLoad

clear()

public ShipmentRoute.VehicleLoad.Builder clear()
Returns
Type Description
ShipmentRoute.VehicleLoad.Builder
Overrides

clearAmount()

public ShipmentRoute.VehicleLoad.Builder clearAmount()

The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See Transition.vehicle_loads.

int64 amount = 1;

Returns
Type Description
ShipmentRoute.VehicleLoad.Builder

This builder for chaining.

getAmount()

public long getAmount()

The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See Transition.vehicle_loads.

int64 amount = 1;

Returns
Type Description
long

The amount.

getDefaultInstanceForType()

public ShipmentRoute.VehicleLoad getDefaultInstanceForType()
Returns
Type Description
ShipmentRoute.VehicleLoad

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ShipmentRoute.VehicleLoad other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAmount(long value)

public ShipmentRoute.VehicleLoad.Builder setAmount(long value)

The amount of load on the vehicle, for the given type. The unit of load is usually indicated by the type. See Transition.vehicle_loads.

int64 amount = 1;

Parameter
Name Description
value long

The amount to set.

Returns
Type Description
ShipmentRoute.VehicleLoad.Builder

This builder for chaining.