public static final class FindNeighborsResponse.Neighbor.Builder extends GeneratedMessageV3.Builder<FindNeighborsResponse.Neighbor.Builder> implements FindNeighborsResponse.NeighborOrBuilder
A neighbor of the query vector.
Protobuf type google.cloud.aiplatform.v1beta1.FindNeighborsResponse.Neighbor
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.Neighbor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public FindNeighborsResponse.Neighbor build()
Returns
public FindNeighborsResponse.Neighbor buildPartial()
Returns
public FindNeighborsResponse.Neighbor.Builder clear()
Returns
Overrides
public FindNeighborsResponse.Neighbor.Builder clearDatapoint()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
public FindNeighborsResponse.Neighbor.Builder clearDistance()
The distance between the neighbor and the query vector.
double distance = 2;
Returns
public FindNeighborsResponse.Neighbor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public FindNeighborsResponse.Neighbor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public FindNeighborsResponse.Neighbor.Builder clone()
Returns
Overrides
public IndexDatapoint getDatapoint()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
public IndexDatapoint.Builder getDatapointBuilder()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
public IndexDatapointOrBuilder getDatapointOrBuilder()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
public FindNeighborsResponse.Neighbor getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public double getDistance()
The distance between the neighbor and the query vector.
double distance = 2;
Returns
Type | Description |
double | The distance.
|
public boolean hasDatapoint()
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Returns
Type | Description |
boolean | Whether the datapoint field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public FindNeighborsResponse.Neighbor.Builder mergeDatapoint(IndexDatapoint value)
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Parameter
Returns
public FindNeighborsResponse.Neighbor.Builder mergeFrom(FindNeighborsResponse.Neighbor other)
Parameter
Returns
public FindNeighborsResponse.Neighbor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public FindNeighborsResponse.Neighbor.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final FindNeighborsResponse.Neighbor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public FindNeighborsResponse.Neighbor.Builder setDatapoint(IndexDatapoint value)
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Parameter
Returns
public FindNeighborsResponse.Neighbor.Builder setDatapoint(IndexDatapoint.Builder builderForValue)
The datapoint of the neighbor.
Note that full datapoints are returned only when "return_full_datapoint"
is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
fields are populated.
.google.cloud.aiplatform.v1beta1.IndexDatapoint datapoint = 1;
Parameter
Returns
public FindNeighborsResponse.Neighbor.Builder setDistance(double value)
The distance between the neighbor and the query vector.
double distance = 2;
Parameter
Name | Description |
value | double
The distance to set.
|
Returns
public FindNeighborsResponse.Neighbor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public FindNeighborsResponse.Neighbor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final FindNeighborsResponse.Neighbor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides