Class ShipmentRoute.VehicleLoad.Builder (1.1.14)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ShipmentRoute.VehicleLoad.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder
Overrides

build()

public ShipmentRoute.VehicleLoad build()
Returns
TypeDescription
ShipmentRoute.VehicleLoad

buildPartial()

public ShipmentRoute.VehicleLoad buildPartial()
Returns
TypeDescription
ShipmentRoute.VehicleLoad

clear()

public ShipmentRoute.VehicleLoad.Builder clear()
Returns
TypeDescription
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
TypeDescription
ShipmentRoute.VehicleLoad.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ShipmentRoute.VehicleLoad.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ShipmentRoute.VehicleLoad.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder
Overrides

clone()

public ShipmentRoute.VehicleLoad.Builder clone()
Returns
TypeDescription
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
TypeDescription
long

The amount.

getDefaultInstanceForType()

public ShipmentRoute.VehicleLoad getDefaultInstanceForType()
Returns
TypeDescription
ShipmentRoute.VehicleLoad

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ShipmentRoute.VehicleLoad other)

public ShipmentRoute.VehicleLoad.Builder mergeFrom(ShipmentRoute.VehicleLoad other)
Parameter
NameDescription
otherShipmentRoute.VehicleLoad
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ShipmentRoute.VehicleLoad.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ShipmentRoute.VehicleLoad.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ShipmentRoute.VehicleLoad.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The amount to set.

Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ShipmentRoute.VehicleLoad.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ShipmentRoute.VehicleLoad.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ShipmentRoute.VehicleLoad.Builder
Overrides