Class DoubleList.Builder (0.31.0)

public static final class DoubleList.Builder extends GeneratedMessageV3.Builder<DoubleList.Builder> implements DoubleListOrBuilder

Double list.

Protobuf type google.cloud.discoveryengine.v1beta.DoubleList

Implements

DoubleListOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends Double> values)

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

Double values.

repeated double values = 1;

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

The values to add.

Returns
TypeDescription
DoubleList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(double value)

public DoubleList.Builder addValues(double value)

Double values.

repeated double values = 1;

Parameter
NameDescription
valuedouble

The values to add.

Returns
TypeDescription
DoubleList.Builder

This builder for chaining.

build()

public DoubleList build()
Returns
TypeDescription
DoubleList

buildPartial()

public DoubleList buildPartial()
Returns
TypeDescription
DoubleList

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public DoubleList.Builder clearValues()

Double values.

repeated double values = 1;

Returns
TypeDescription
DoubleList.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DoubleList getDefaultInstanceForType()
Returns
TypeDescription
DoubleList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public double getValues(int index)

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()

Double values.

repeated double values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public List<Double> getValuesList()

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(DoubleList other)

public DoubleList.Builder mergeFrom(DoubleList other)
Parameter
NameDescription
otherDoubleList
Returns
TypeDescription
DoubleList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, double value)

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

Double values.

repeated double values = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valuedouble

The values to set.

Returns
TypeDescription
DoubleList.Builder

This builder for chaining.