Class CapacityQuantityInterval.Builder (1.1.14)

publicstaticfinalclass CapacityQuantityInterval.BuilderextendsGeneratedMessageV3.Builder<CapacityQuantityInterval.Builder>implementsCapacityQuantityIntervalOrBuilder

Deprecated: Use [Vehicle.LoadLimit.Interval][] instead.

Protobuf type google.cloud.optimization.v1.CapacityQuantityInterval

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCapacityQuantityInterval.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicCapacityQuantityIntervalbuild()
Returns
Type Description

buildPartial()

publicCapacityQuantityIntervalbuildPartial()
Returns
Type Description

clear()

publicCapacityQuantityInterval.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCapacityQuantityInterval.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearMaxValue()

publicCapacityQuantityInterval.BuilderclearMaxValue()

optional int64 max_value = 3;

Returns
Type Description
CapacityQuantityInterval.Builder

This builder for chaining.

clearMinValue()

publicCapacityQuantityInterval.BuilderclearMinValue()

optional int64 min_value = 2;

Returns
Type Description
CapacityQuantityInterval.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicCapacityQuantityInterval.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearType()

publicCapacityQuantityInterval.BuilderclearType()

string type = 1;

Returns
Type Description
CapacityQuantityInterval.Builder

This builder for chaining.

clone()

publicCapacityQuantityInterval.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicCapacityQuantityIntervalgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getMaxValue()

publiclonggetMaxValue()

optional int64 max_value = 3;

Returns
Type Description
long

The maxValue.

getMinValue()

publiclonggetMinValue()

optional int64 min_value = 2;

Returns
Type Description
long

The minValue.

getType()

publicStringgetType()

string type = 1;

Returns
Type Description
String

The type.

getTypeBytes()

publicByteStringgetTypeBytes()

string type = 1;

Returns
Type Description
ByteString

The bytes for type.

hasMaxValue()

publicbooleanhasMaxValue()

optional int64 max_value = 3;

Returns
Type Description
boolean

Whether the maxValue field is set.

hasMinValue()

publicbooleanhasMinValue()

optional int64 min_value = 2;

Returns
Type Description
boolean

Whether the minValue field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(CapacityQuantityInterval other)

publicCapacityQuantityInterval.BuildermergeFrom(CapacityQuantityIntervalother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCapacityQuantityInterval.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicCapacityQuantityInterval.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCapacityQuantityInterval.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCapacityQuantityInterval.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setMaxValue(long value)

publicCapacityQuantityInterval.BuildersetMaxValue(longvalue)

optional int64 max_value = 3;

Parameter
Name Description
value long

The maxValue to set.

Returns
Type Description
CapacityQuantityInterval.Builder

This builder for chaining.

setMinValue(long value)

publicCapacityQuantityInterval.BuildersetMinValue(longvalue)

optional int64 min_value = 2;

Parameter
Name Description
value long

The minValue to set.

Returns
Type Description
CapacityQuantityInterval.Builder

This builder for chaining.

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

publicCapacityQuantityInterval.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setType(String value)

publicCapacityQuantityInterval.BuildersetType(Stringvalue)

string type = 1;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
CapacityQuantityInterval.Builder

This builder for chaining.

setTypeBytes(ByteString value)

publicCapacityQuantityInterval.BuildersetTypeBytes(ByteStringvalue)

string type = 1;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
CapacityQuantityInterval.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCapacityQuantityInterval.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.