Class Shipment.Load (1.1.14)

public static final class Shipment.Load extends GeneratedMessageV3 implements Shipment.LoadOrBuilder

When performing a visit, a predefined amount may be added to the vehicle load if it's a pickup, or subtracted if it's a delivery. This message defines such amount. See load_demands.

Protobuf type google.cloud.optimization.v1.Shipment.Load

Static Fields

AMOUNT_FIELD_NUMBER

public static final int AMOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Shipment.Load getDefaultInstance()
Returns
TypeDescription
Shipment.Load

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Shipment.Load.Builder newBuilder()
Returns
TypeDescription
Shipment.Load.Builder

newBuilder(Shipment.Load prototype)

public static Shipment.Load.Builder newBuilder(Shipment.Load prototype)
Parameter
NameDescription
prototypeShipment.Load
Returns
TypeDescription
Shipment.Load.Builder

parseDelimitedFrom(InputStream input)

public static Shipment.Load parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Shipment.Load parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Shipment.Load parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Shipment.Load parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Shipment.Load parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Shipment.Load parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Shipment.Load parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Shipment.Load parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Shipment.Load parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Shipment.Load parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Shipment.Load parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Shipment.Load parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Shipment.Load
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Shipment.Load> parser()
Returns
TypeDescription
Parser<Load>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAmount()

public long getAmount()

The amount by which the load of the vehicle performing the corresponding visit will vary. Since it is an integer, users are advised to choose an appropriate unit to avoid loss of precision. Must be \u2265 0.

int64 amount = 2;

Returns
TypeDescription
long

The amount.

getDefaultInstanceForType()

public Shipment.Load getDefaultInstanceForType()
Returns
TypeDescription
Shipment.Load

getParserForType()

public Parser<Shipment.Load> getParserForType()
Returns
TypeDescription
Parser<Load>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Shipment.Load.Builder newBuilderForType()
Returns
TypeDescription
Shipment.Load.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Shipment.Load.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Shipment.Load.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Shipment.Load.Builder toBuilder()
Returns
TypeDescription
Shipment.Load.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException