Package com.google.cloud.aiplatform.v1
Class FindNeighborsResponse.NearestNeighbors.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>
com.google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors.Builder
- All Implemented Interfaces:
FindNeighborsResponse.NearestNeighborsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FindNeighborsResponse.NearestNeighbors
public static final class FindNeighborsResponse.NearestNeighbors.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>
implements FindNeighborsResponse.NearestNeighborsOrBuilder
Nearest neighbors for one query.Protobuf type
google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors-
Method Summary
Modifier and TypeMethodDescriptionaddAllNeighbors(Iterable<? extends FindNeighborsResponse.Neighbor> values) All its neighbors.addNeighbors(int index, FindNeighborsResponse.Neighbor value) All its neighbors.addNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue) All its neighbors.All its neighbors.addNeighbors(FindNeighborsResponse.Neighbor.Builder builderForValue) All its neighbors.All its neighbors.addNeighborsBuilder(int index) All its neighbors.build()clear()clearId()The ID of the query datapoint.All its neighbors.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()The ID of the query datapoint.com.google.protobuf.ByteStringThe ID of the query datapoint.getNeighbors(int index) All its neighbors.getNeighborsBuilder(int index) All its neighbors.All its neighbors.intAll its neighbors.All its neighbors.getNeighborsOrBuilder(int index) All its neighbors.List<? extends FindNeighborsResponse.NeighborOrBuilder>All its neighbors.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeNeighbors(int index) All its neighbors.The ID of the query datapoint.setIdBytes(com.google.protobuf.ByteString value) The ID of the query datapoint.setNeighbors(int index, FindNeighborsResponse.Neighbor value) All its neighbors.setNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue) All its neighbors.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>
-
mergeFrom
public FindNeighborsResponse.NearestNeighbors.Builder mergeFrom(FindNeighborsResponse.NearestNeighbors other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>
-
mergeFrom
public FindNeighborsResponse.NearestNeighbors.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FindNeighborsResponse.NearestNeighbors.Builder>- Throws:
IOException
-
getId
The ID of the query datapoint.
string id = 1;- Specified by:
getIdin interfaceFindNeighborsResponse.NearestNeighborsOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The ID of the query datapoint.
string id = 1;- Specified by:
getIdBytesin interfaceFindNeighborsResponse.NearestNeighborsOrBuilder- Returns:
- The bytes for id.
-
setId
The ID of the query datapoint.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The ID of the query datapoint.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public FindNeighborsResponse.NearestNeighbors.Builder setIdBytes(com.google.protobuf.ByteString value) The ID of the query datapoint.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getNeighborsList
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;- Specified by:
getNeighborsListin interfaceFindNeighborsResponse.NearestNeighborsOrBuilder
-
getNeighborsCount
public int getNeighborsCount()All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;- Specified by:
getNeighborsCountin interfaceFindNeighborsResponse.NearestNeighborsOrBuilder
-
getNeighbors
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;- Specified by:
getNeighborsin interfaceFindNeighborsResponse.NearestNeighborsOrBuilder
-
setNeighbors
public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor value) All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
setNeighbors
public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue) All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
addNeighbors
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor value) All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
addNeighbors
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor value) All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
addNeighbors
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor.Builder builderForValue) All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
addNeighbors
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue) All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
addAllNeighbors
public FindNeighborsResponse.NearestNeighbors.Builder addAllNeighbors(Iterable<? extends FindNeighborsResponse.Neighbor> values) All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
clearNeighbors
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
removeNeighbors
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
getNeighborsBuilder
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
getNeighborsOrBuilder
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;- Specified by:
getNeighborsOrBuilderin interfaceFindNeighborsResponse.NearestNeighborsOrBuilder
-
getNeighborsOrBuilderList
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;- Specified by:
getNeighborsOrBuilderListin interfaceFindNeighborsResponse.NearestNeighborsOrBuilder
-
addNeighborsBuilder
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
addNeighborsBuilder
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2; -
getNeighborsBuilderList
All its neighbors.
repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor neighbors = 2;
-