Class FeatureMap.FloatList.Builder (0.20.0)

public static final class FeatureMap.FloatList.Builder extends GeneratedMessageV3.Builder<FeatureMap.FloatList.Builder> implements FeatureMap.FloatListOrBuilder

A list of float features.

Protobuf type google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList

Static Methods

getDescriptor()

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

Methods

addAllValue(Iterable<? extends Float> values)

public FeatureMap.FloatList.Builder addAllValue(Iterable<? extends Float> values)

Float feature value.

repeated float value = 1;

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

The value to add.

Returns
TypeDescription
FeatureMap.FloatList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValue(float value)

public FeatureMap.FloatList.Builder addValue(float value)

Float feature value.

repeated float value = 1;

Parameter
NameDescription
valuefloat

The value to add.

Returns
TypeDescription
FeatureMap.FloatList.Builder

This builder for chaining.

build()

public FeatureMap.FloatList build()
Returns
TypeDescription
FeatureMap.FloatList

buildPartial()

public FeatureMap.FloatList buildPartial()
Returns
TypeDescription
FeatureMap.FloatList

clear()

public FeatureMap.FloatList.Builder clear()
Returns
TypeDescription
FeatureMap.FloatList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public FeatureMap.FloatList.Builder clearValue()

Float feature value.

repeated float value = 1;

Returns
TypeDescription
FeatureMap.FloatList.Builder

This builder for chaining.

clone()

public FeatureMap.FloatList.Builder clone()
Returns
TypeDescription
FeatureMap.FloatList.Builder
Overrides

getDefaultInstanceForType()

public FeatureMap.FloatList getDefaultInstanceForType()
Returns
TypeDescription
FeatureMap.FloatList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValue(int index)

public float getValue(int index)

Float feature value.

repeated float value = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
float

The value at the given index.

getValueCount()

public int getValueCount()

Float feature value.

repeated float value = 1;

Returns
TypeDescription
int

The count of value.

getValueList()

public List<Float> getValueList()

Float feature value.

repeated float value = 1;

Returns
TypeDescription
List<Float>

A list containing the value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FeatureMap.FloatList other)

public FeatureMap.FloatList.Builder mergeFrom(FeatureMap.FloatList other)
Parameter
NameDescription
otherFeatureMap.FloatList
Returns
TypeDescription
FeatureMap.FloatList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(int index, float value)

public FeatureMap.FloatList.Builder setValue(int index, float value)

Float feature value.

repeated float value = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valuefloat

The value to set.

Returns
TypeDescription
FeatureMap.FloatList.Builder

This builder for chaining.