Class DoubleArray.Builder (3.22.0)

public static final class DoubleArray.Builder extends GeneratedMessageV3.Builder<DoubleArray.Builder> implements DoubleArrayOrBuilder

A list of double values.

Protobuf type google.cloud.aiplatform.v1beta1.DoubleArray

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends Double> values)

public DoubleArray.Builder addAllValues(Iterable<? extends Double> values)

A list of double values.

repeated double values = 1;

Parameter
NameDescription
valuesIterable<? extends java.lang.Double>

The values to add.

Returns
TypeDescription
DoubleArray.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(double value)

public DoubleArray.Builder addValues(double value)

A list of double values.

repeated double values = 1;

Parameter
NameDescription
valuedouble

The values to add.

Returns
TypeDescription
DoubleArray.Builder

This builder for chaining.

build()

public DoubleArray build()
Returns
TypeDescription
DoubleArray

buildPartial()

public DoubleArray buildPartial()
Returns
TypeDescription
DoubleArray

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public DoubleArray.Builder clearValues()

A list of double values.

repeated double values = 1;

Returns
TypeDescription
DoubleArray.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DoubleArray getDefaultInstanceForType()
Returns
TypeDescription
DoubleArray

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public double getValues(int index)

A list of double values.

repeated double values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
double

The values at the given index.

getValuesCount()

public int getValuesCount()

A list of double values.

repeated double values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public List<Double> getValuesList()

A list of double values.

repeated double values = 1;

Returns
TypeDescription
List<Double>

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DoubleArray other)

public DoubleArray.Builder mergeFrom(DoubleArray other)
Parameter
NameDescription
otherDoubleArray
Returns
TypeDescription
DoubleArray.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, double value)

public DoubleArray.Builder setValues(int index, double value)

A list of double values.

repeated double values = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valuedouble

The values to set.

Returns
TypeDescription
DoubleArray.Builder

This builder for chaining.