public static final class NearestNeighborQuery.Embedding.Builder extends com.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Embedding.Builder> implements NearestNeighborQuery.EmbeddingOrBuilder
The embedding vector.Protobuf type
google.cloud.aiplatform.v1.NearestNeighborQuery.EmbeddingaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Embedding.Builder>public NearestNeighborQuery.Embedding.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Embedding.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Embedding.Builder>public NearestNeighborQuery.Embedding getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic NearestNeighborQuery.Embedding build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic NearestNeighborQuery.Embedding buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic NearestNeighborQuery.Embedding.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NearestNeighborQuery.Embedding.Builder>public NearestNeighborQuery.Embedding.Builder mergeFrom(NearestNeighborQuery.Embedding other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<NearestNeighborQuery.Embedding.Builder>public NearestNeighborQuery.Embedding.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NearestNeighborQuery.Embedding.Builder>IOExceptionpublic List<Float> getValueList()
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];getValueList in interface NearestNeighborQuery.EmbeddingOrBuilderpublic int getValueCount()
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];getValueCount in interface NearestNeighborQuery.EmbeddingOrBuilderpublic float getValue(int index)
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];getValue in interface NearestNeighborQuery.EmbeddingOrBuilderindex - The index of the element to return.public NearestNeighborQuery.Embedding.Builder setValue(int index, float value)
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The value to set.public NearestNeighborQuery.Embedding.Builder addValue(float value)
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];value - The value to add.public NearestNeighborQuery.Embedding.Builder addAllValue(Iterable<? extends Float> values)
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];values - The value to add.public NearestNeighborQuery.Embedding.Builder clearValue()
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];Copyright © 2026 Google LLC. All rights reserved.