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()
Methods
public FindNeighborsResponse.Neighbor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public FindNeighborsResponse.Neighbor build()
public FindNeighborsResponse.Neighbor buildPartial()
public FindNeighborsResponse.Neighbor.Builder clear()
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;
public FindNeighborsResponse.Neighbor.Builder clearDistance()
The distance between the neighbor and the query vector.
double distance = 2;
public FindNeighborsResponse.Neighbor.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public FindNeighborsResponse.Neighbor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public FindNeighborsResponse.Neighbor.Builder clone()
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;
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;
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;
public FindNeighborsResponse.Neighbor getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
public final boolean isInitialized()
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;
public FindNeighborsResponse.Neighbor.Builder mergeFrom(FindNeighborsResponse.Neighbor other)
public FindNeighborsResponse.Neighbor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public FindNeighborsResponse.Neighbor.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final FindNeighborsResponse.Neighbor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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.
|
public FindNeighborsResponse.Neighbor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public FindNeighborsResponse.Neighbor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final FindNeighborsResponse.Neighbor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides