public static final class FindNeighborsResponse.NearestNeighbors.Builder extends GeneratedMessageV3.Builder<FindNeighborsResponse.NearestNeighbors.Builder> implements FindNeighborsResponse.NearestNeighborsOrBuilder
Nearest neighbors for one query.
Protobuf type google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NearestNeighbors
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public FindNeighborsResponse.NearestNeighbors.Builder addAllNeighbors(Iterable<? extends FindNeighborsResponse.Neighbor> values)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor>
|
Returns
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor value)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(FindNeighborsResponse.Neighbor.Builder builderForValue)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor value)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameters
Returns
public FindNeighborsResponse.NearestNeighbors.Builder addNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameters
Returns
public FindNeighborsResponse.Neighbor.Builder addNeighborsBuilder()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
public FindNeighborsResponse.Neighbor.Builder addNeighborsBuilder(int index)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public FindNeighborsResponse.NearestNeighbors.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors build()
Returns
public FindNeighborsResponse.NearestNeighbors buildPartial()
Returns
public FindNeighborsResponse.NearestNeighbors.Builder clear()
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder clearId()
The ID of the query datapoint.
string id = 1;
Returns
public FindNeighborsResponse.NearestNeighbors.Builder clearNeighbors()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
public FindNeighborsResponse.NearestNeighbors.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder clone()
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
The ID of the query datapoint.
string id = 1;
Returns
public ByteString getIdBytes()
The ID of the query datapoint.
string id = 1;
Returns
public FindNeighborsResponse.Neighbor getNeighbors(int index)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public FindNeighborsResponse.Neighbor.Builder getNeighborsBuilder(int index)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public List<FindNeighborsResponse.Neighbor.Builder> getNeighborsBuilderList()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
public int getNeighborsCount()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
public List<FindNeighborsResponse.Neighbor> getNeighborsList()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
public FindNeighborsResponse.NeighborOrBuilder getNeighborsOrBuilder(int index)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public List<? extends FindNeighborsResponse.NeighborOrBuilder> getNeighborsOrBuilderList()
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Returns
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.FindNeighborsResponse.NeighborOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder mergeFrom(FindNeighborsResponse.NearestNeighbors other)
Parameter
Returns
public FindNeighborsResponse.NearestNeighbors.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public FindNeighborsResponse.NearestNeighbors.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final FindNeighborsResponse.NearestNeighbors.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder removeNeighbors(int index)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameter
Returns
public FindNeighborsResponse.NearestNeighbors.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public FindNeighborsResponse.NearestNeighbors.Builder setId(String value)
The ID of the query datapoint.
string id = 1;
Parameter
Name | Description |
value | String
The id to set.
|
Returns
public FindNeighborsResponse.NearestNeighbors.Builder setIdBytes(ByteString value)
The ID of the query datapoint.
string id = 1;
Parameter
Name | Description |
value | ByteString
The bytes for id to set.
|
Returns
public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor value)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameters
Returns
public FindNeighborsResponse.NearestNeighbors.Builder setNeighbors(int index, FindNeighborsResponse.Neighbor.Builder builderForValue)
All its neighbors.
repeated .google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor neighbors = 2;
Parameters
Returns
public FindNeighborsResponse.NearestNeighbors.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final FindNeighborsResponse.NearestNeighbors.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides