Class ShipmentRoute.VehicleLoad.Builder (1.52.0)

public static final class ShipmentRoute.VehicleLoad.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ShipmentRoute.VehicleLoad.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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