Class Vehicle.LoadLimit.Interval (1.25.0)

publicstaticfinalclass Vehicle.LoadLimit.IntervalextendsGeneratedMessageV3implementsVehicle.LoadLimit.IntervalOrBuilder

Interval of acceptable load amounts.

Protobuf type google.cloud.optimization.v1.Vehicle.LoadLimit.Interval

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)

Static Fields

MAX_FIELD_NUMBER

publicstaticfinalintMAX_FIELD_NUMBER
Field Value
Type Description
int

MIN_FIELD_NUMBER

publicstaticfinalintMIN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticVehicle.LoadLimit.IntervalgetDefaultInstance()
Returns
Type Description
Vehicle.LoadLimit.Interval

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticVehicle.LoadLimit.Interval.BuildernewBuilder()
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

newBuilder(Vehicle.LoadLimit.Interval prototype)

publicstaticVehicle.LoadLimit.Interval.BuildernewBuilder(Vehicle.LoadLimit.Intervalprototype)
Parameter
Name Description
prototype Vehicle.LoadLimit.Interval
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

parseDelimitedFrom(InputStream input)

publicstaticVehicle.LoadLimit.IntervalparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVehicle.LoadLimit.IntervalparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticVehicle.LoadLimit.IntervalparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticVehicle.LoadLimit.IntervalparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticVehicle.LoadLimit.IntervalparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticVehicle.LoadLimit.IntervalparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticVehicle.LoadLimit.IntervalparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVehicle.LoadLimit.IntervalparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticVehicle.LoadLimit.IntervalparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVehicle.LoadLimit.IntervalparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticVehicle.LoadLimit.IntervalparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticVehicle.LoadLimit.IntervalparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vehicle.LoadLimit.Interval
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Vehicle.LoadLimit.Interval>parser()
Returns
Type Description
Parser<Interval>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicVehicle.LoadLimit.IntervalgetDefaultInstanceForType()
Returns
Type Description
Vehicle.LoadLimit.Interval

getMax()

publiclonggetMax()

A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum load is unrestricted by this message. If they're both specified, min must be ≤ max.

optional int64 max = 2;

Returns
Type Description
long

The max.

getMin()

publiclonggetMin()

A minimum acceptable load. Must be ≥ 0. If they're both specified, min must be ≤ max.

int64 min = 1;

Returns
Type Description
long

The min.

getParserForType()

publicParser<Vehicle.LoadLimit.Interval>getParserForType()
Returns
Type Description
Parser<Interval>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasMax()

publicbooleanhasMax()

A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum load is unrestricted by this message. If they're both specified, min must be ≤ max.

optional int64 max = 2;

Returns
Type Description
boolean

Whether the max field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicVehicle.LoadLimit.Interval.BuildernewBuilderForType()
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedVehicle.LoadLimit.Interval.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicVehicle.LoadLimit.Interval.BuildertoBuilder()
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.