Class Vehicle.LoadLimit.Interval.Builder (1.62.0)

publicstaticfinalclass Vehicle.LoadLimit.Interval.BuilderextendsGeneratedMessageV3.Builder<Vehicle.LoadLimit.Interval.Builder>implementsVehicle.LoadLimit.IntervalOrBuilder

Interval of acceptable load amounts.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicVehicle.LoadLimit.Interval.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

build()

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

buildPartial()

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

clear()

publicVehicle.LoadLimit.Interval.Builderclear()
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicVehicle.LoadLimit.Interval.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

clearMax()

publicVehicle.LoadLimit.Interval.BuilderclearMax()

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
Vehicle.LoadLimit.Interval.Builder

This builder for chaining.

clearMin()

publicVehicle.LoadLimit.Interval.BuilderclearMin()

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

int64 min = 1;

Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicVehicle.LoadLimit.Interval.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

clone()

publicVehicle.LoadLimit.Interval.Builderclone()
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Vehicle.LoadLimit.Interval other)

publicVehicle.LoadLimit.Interval.BuildermergeFrom(Vehicle.LoadLimit.Intervalother)
Parameter
Name Description
other Vehicle.LoadLimit.Interval
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicVehicle.LoadLimit.Interval.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicVehicle.LoadLimit.Interval.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalVehicle.LoadLimit.Interval.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicVehicle.LoadLimit.Interval.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

setMax(long value)

publicVehicle.LoadLimit.Interval.BuildersetMax(longvalue)

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;

Parameter
Name Description
value long

The max to set.

Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

This builder for chaining.

setMin(long value)

publicVehicle.LoadLimit.Interval.BuildersetMin(longvalue)

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

int64 min = 1;

Parameter
Name Description
value long

The min to set.

Returns
Type Description
Vehicle.LoadLimit.Interval.Builder

This builder for chaining.

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

publicVehicle.LoadLimit.Interval.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalVehicle.LoadLimit.Interval.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Vehicle.LoadLimit.Interval.Builder
Overrides

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.