Class CapacityQuantity.Builder (1.31.0)

publicstaticfinalclass CapacityQuantity.BuilderextendsGeneratedMessageV3.Builder<CapacityQuantity.Builder>implementsCapacityQuantityOrBuilder

Deprecated: Use Vehicle.LoadLimit.Interval instead.

Protobuf type google.cloud.optimization.v1.CapacityQuantity

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)

publicCapacityQuantity.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CapacityQuantity.Builder
Overrides

build()

publicCapacityQuantitybuild()
Returns
Type Description
CapacityQuantity

buildPartial()

publicCapacityQuantitybuildPartial()
Returns
Type Description
CapacityQuantity

clear()

publicCapacityQuantity.Builderclear()
Returns
Type Description
CapacityQuantity.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCapacityQuantity.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CapacityQuantity.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCapacityQuantity.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CapacityQuantity.Builder
Overrides

clearType()

publicCapacityQuantity.BuilderclearType()

string type = 1;

Returns
Type Description
CapacityQuantity.Builder

This builder for chaining.

clearValue()

publicCapacityQuantity.BuilderclearValue()

int64 value = 2;

Returns
Type Description
CapacityQuantity.Builder

This builder for chaining.

clone()

publicCapacityQuantity.Builderclone()
Returns
Type Description
CapacityQuantity.Builder
Overrides

getDefaultInstanceForType()

publicCapacityQuantitygetDefaultInstanceForType()
Returns
Type Description
CapacityQuantity

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getType()

publicStringgetType()

string type = 1;

Returns
Type Description
String

The type.

getTypeBytes()

publicByteStringgetTypeBytes()

string type = 1;

Returns
Type Description
ByteString

The bytes for type.

getValue()

publiclonggetValue()

int64 value = 2;

Returns
Type Description
long

The value.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CapacityQuantity other)

publicCapacityQuantity.BuildermergeFrom(CapacityQuantityother)
Parameter
Name Description
other CapacityQuantity
Returns
Type Description
CapacityQuantity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCapacityQuantity.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityQuantity.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCapacityQuantity.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CapacityQuantity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCapacityQuantity.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CapacityQuantity.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCapacityQuantity.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CapacityQuantity.Builder
Overrides

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

publicCapacityQuantity.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CapacityQuantity.Builder
Overrides

setType(String value)

publicCapacityQuantity.BuildersetType(Stringvalue)

string type = 1;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
CapacityQuantity.Builder

This builder for chaining.

setTypeBytes(ByteString value)

publicCapacityQuantity.BuildersetTypeBytes(ByteStringvalue)

string type = 1;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
CapacityQuantity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCapacityQuantity.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CapacityQuantity.Builder
Overrides

setValue(long value)

publicCapacityQuantity.BuildersetValue(longvalue)

int64 value = 2;

Parameter
Name Description
value long

The value to set.

Returns
Type Description
CapacityQuantity.Builder

This builder for chaining.

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.