Class FeatureMap.FloatList.Builder (0.41.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllValue(Iterable<? extends Float> values)
public FeatureMap.FloatList.Builder addAllValue(Iterable<? extends Float> values)
Float feature value.
repeated float value = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends java.lang.Float>
The value to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FeatureMap.FloatList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addValue(float value)
public FeatureMap.FloatList.Builder addValue(float value)
Float feature value.
repeated float value = 1;
Parameter |
---|
Name | Description |
value | float
The value to add.
|
build()
public FeatureMap.FloatList build()
buildPartial()
public FeatureMap.FloatList buildPartial()
clear()
public FeatureMap.FloatList.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public FeatureMap.FloatList.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public FeatureMap.FloatList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearValue()
public FeatureMap.FloatList.Builder clearValue()
Float feature value.
repeated float value = 1;
clone()
public FeatureMap.FloatList.Builder clone()
Overrides
getDefaultInstanceForType()
public FeatureMap.FloatList getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getValue(int index)
public float getValue(int index)
Float feature value.
repeated float value = 1;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
float | The value at the given index.
|
getValueCount()
public int getValueCount()
Float feature value.
repeated float value = 1;
Returns |
---|
Type | Description |
int | The count of value.
|
getValueList()
public List<Float> getValueList()
Float feature value.
repeated float value = 1;
Returns |
---|
Type | Description |
List<Float> | A list containing the value.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(FeatureMap.FloatList other)
public FeatureMap.FloatList.Builder mergeFrom(FeatureMap.FloatList other)
public FeatureMap.FloatList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FeatureMap.FloatList.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FeatureMap.FloatList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public FeatureMap.FloatList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FeatureMap.FloatList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FeatureMap.FloatList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setValue(int index, float value)
public FeatureMap.FloatList.Builder setValue(int index, float value)
Float feature value.
repeated float value = 1;
Parameters |
---|
Name | Description |
index | int
The index to set the value at.
|
value | float
The value to set.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]