Class DoubleList.Builder (0.43.0)

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

Double list.

Protobuf type google.cloud.discoveryengine.v1alpha.DoubleList

Implements

DoubleListOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllValues(Iterable<? extends Double> values)

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

Double values.

repeated double values = 1;

Parameter
Name Description
values Iterable<? extends java.lang.Double>

The values to add.

Returns
Type Description
DoubleList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DoubleList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DoubleList.Builder
Overrides

addValues(double value)

public DoubleList.Builder addValues(double value)

Double values.

repeated double values = 1;

Parameter
Name Description
value double

The values to add.

Returns
Type Description
DoubleList.Builder

This builder for chaining.

build()

public DoubleList build()
Returns
Type Description
DoubleList

buildPartial()

public DoubleList buildPartial()
Returns
Type Description
DoubleList

clear()

public DoubleList.Builder clear()
Returns
Type Description
DoubleList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DoubleList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DoubleList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DoubleList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DoubleList.Builder
Overrides

clearValues()

public DoubleList.Builder clearValues()

Double values.

repeated double values = 1;

Returns
Type Description
DoubleList.Builder

This builder for chaining.

clone()

public DoubleList.Builder clone()
Returns
Type Description
DoubleList.Builder
Overrides

getDefaultInstanceForType()

public DoubleList getDefaultInstanceForType()
Returns
Type Description
DoubleList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getValues(int index)

public double getValues(int index)

Double values.

repeated double values = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
double

The values at the given index.

getValuesCount()

public int getValuesCount()

Double values.

repeated double values = 1;

Returns
Type Description
int

The count of values.

getValuesList()

public List<Double> getValuesList()

Double values.

repeated double values = 1;

Returns
Type Description
List<Double>

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DoubleList other)

public DoubleList.Builder mergeFrom(DoubleList other)
Parameter
Name Description
other DoubleList
Returns
Type Description
DoubleList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DoubleList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DoubleList.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DoubleList.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DoubleList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DoubleList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DoubleList.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DoubleList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DoubleList.Builder
Overrides

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

public DoubleList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DoubleList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DoubleList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DoubleList.Builder
Overrides

setValues(int index, double value)

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

Double values.

repeated double values = 1;

Parameters
Name Description
index int

The index to set the value at.

value double

The values to set.

Returns
Type Description
DoubleList.Builder

This builder for chaining.