Class CapacityQuantity.Builder (1.1.2)

public static final class CapacityQuantity.Builder extends GeneratedMessageV3.Builder<CapacityQuantity.Builder> implements CapacityQuantityOrBuilder

Deprecated: Use [Shipment.Load][], [Vehicle.LoadLimit][] and [ShipmentRoute.VehicleLoad][] instead.

Protobuf type google.cloud.optimization.v1.CapacityQuantity

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CapacityQuantity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

build()

public CapacityQuantity build()
Returns
TypeDescription
CapacityQuantity

buildPartial()

public CapacityQuantity buildPartial()
Returns
TypeDescription
CapacityQuantity

clear()

public CapacityQuantity.Builder clear()
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CapacityQuantity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CapacityQuantity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

clearType()

public CapacityQuantity.Builder clearType()

string type = 1;

Returns
TypeDescription
CapacityQuantity.Builder

This builder for chaining.

clearValue()

public CapacityQuantity.Builder clearValue()

int64 value = 2;

Returns
TypeDescription
CapacityQuantity.Builder

This builder for chaining.

clone()

public CapacityQuantity.Builder clone()
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

getDefaultInstanceForType()

public CapacityQuantity getDefaultInstanceForType()
Returns
TypeDescription
CapacityQuantity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getType()

public String getType()

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

getValue()

public long getValue()

int64 value = 2;

Returns
TypeDescription
long

The value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CapacityQuantity other)

public CapacityQuantity.Builder mergeFrom(CapacityQuantity other)
Parameter
NameDescription
otherCapacityQuantity
Returns
TypeDescription
CapacityQuantity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CapacityQuantity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CapacityQuantity.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CapacityQuantity.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CapacityQuantity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CapacityQuantity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

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

public CapacityQuantity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

setType(String value)

public CapacityQuantity.Builder setType(String value)

string type = 1;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
CapacityQuantity.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public CapacityQuantity.Builder setTypeBytes(ByteString value)

string type = 1;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
CapacityQuantity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CapacityQuantity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CapacityQuantity.Builder
Overrides

setValue(long value)

public CapacityQuantity.Builder setValue(long value)

int64 value = 2;

Parameter
NameDescription
valuelong

The value to set.

Returns
TypeDescription
CapacityQuantity.Builder

This builder for chaining.