Class ShipmentRoute.VehicleLoad (1.45.0)

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

AMOUNT_FIELD_NUMBER

public static final int AMOUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ShipmentRoute.VehicleLoad getDefaultInstance()
Returns
Type Description
ShipmentRoute.VehicleLoad

getDescriptor()

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

newBuilder()

public static ShipmentRoute.VehicleLoad.Builder newBuilder()
Returns
Type Description
ShipmentRoute.VehicleLoad.Builder

newBuilder(ShipmentRoute.VehicleLoad prototype)

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

parseDelimitedFrom(InputStream input)

public static ShipmentRoute.VehicleLoad parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ShipmentRoute.VehicleLoad
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ShipmentRoute.VehicleLoad parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ShipmentRoute.VehicleLoad
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ShipmentRoute.VehicleLoad parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ShipmentRoute.VehicleLoad
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ShipmentRoute.VehicleLoad parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ShipmentRoute.VehicleLoad
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ShipmentRoute.VehicleLoad parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ShipmentRoute.VehicleLoad
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ShipmentRoute.VehicleLoad> parser()
Returns
Type Description
Parser<VehicleLoad>

Methods

equals(Object obj)

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

getParserForType()

public Parser<ShipmentRoute.VehicleLoad> getParserForType()
Returns
Type Description
Parser<VehicleLoad>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 ShipmentRoute.VehicleLoad.Builder newBuilderForType()
Returns
Type Description
ShipmentRoute.VehicleLoad.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ShipmentRoute.VehicleLoad.Builder toBuilder()
Returns
Type Description
ShipmentRoute.VehicleLoad.Builder

writeTo(CodedOutputStream output)

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