public static final class NearestNeighbors.Neighbor.Builder extends GeneratedMessageV3.Builder<NearestNeighbors.Neighbor.Builder> implements NearestNeighbors.NeighborOrBuilder
A neighbor of the query vector.
Protobuf type google.cloud.aiplatform.v1beta1.NearestNeighbors.Neighbor
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 NearestNeighbors.Neighbor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public NearestNeighbors.Neighbor build()
public NearestNeighbors.Neighbor buildPartial()
public NearestNeighbors.Neighbor.Builder clear()
Overrides
public NearestNeighbors.Neighbor.Builder clearDistance()
The distance between the neighbor and the query vector.
double distance = 2;
public NearestNeighbors.Neighbor.Builder clearEntityId()
The id of the similar entity.
string entity_id = 1;
public NearestNeighbors.Neighbor.Builder clearEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
public NearestNeighbors.Neighbor.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public NearestNeighbors.Neighbor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public NearestNeighbors.Neighbor.Builder clone()
Overrides
public NearestNeighbors.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 String getEntityId()
The id of the similar entity.
string entity_id = 1;
Returns |
Type |
Description |
String |
The entityId.
|
public ByteString getEntityIdBytes()
The id of the similar entity.
string entity_id = 1;
Returns |
Type |
Description |
ByteString |
The bytes for entityId.
|
public FetchFeatureValuesResponse getEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
public FetchFeatureValuesResponse.Builder getEntityKeyValuesBuilder()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
public FetchFeatureValuesResponseOrBuilder getEntityKeyValuesOrBuilder()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
public boolean hasEntityKeyValues()
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
Returns |
Type |
Description |
boolean |
Whether the entityKeyValues field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public NearestNeighbors.Neighbor.Builder mergeEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
public NearestNeighbors.Neighbor.Builder mergeFrom(NearestNeighbors.Neighbor other)
public NearestNeighbors.Neighbor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public NearestNeighbors.Neighbor.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final NearestNeighbors.Neighbor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public NearestNeighbors.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 NearestNeighbors.Neighbor.Builder setEntityId(String value)
The id of the similar entity.
string entity_id = 1;
Parameter |
Name |
Description |
value |
String
The entityId to set.
|
public NearestNeighbors.Neighbor.Builder setEntityIdBytes(ByteString value)
The id of the similar entity.
string entity_id = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for entityId to set.
|
public NearestNeighbors.Neighbor.Builder setEntityKeyValues(FetchFeatureValuesResponse value)
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
public NearestNeighbors.Neighbor.Builder setEntityKeyValues(FetchFeatureValuesResponse.Builder builderForValue)
The attributes of the neighbor, e.g. filters, crowding and metadata
Note that full entities are returned only when "return_full_entity"
is set to true. Otherwise, only the "entity_id" and "distance" fields
are populated.
.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse entity_key_values = 3;
public NearestNeighbors.Neighbor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public NearestNeighbors.Neighbor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final NearestNeighbors.Neighbor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides