Interface RetrieveMemoriesResponse.RetrievedMemoryOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RetrieveMemoriesResponse.RetrievedMemory,RetrieveMemoriesResponse.RetrievedMemory.Builder
- Enclosing class:
- RetrieveMemoriesResponse
public static interface RetrieveMemoriesResponse.RetrievedMemoryOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondoubleThe distance between the query and the retrieved Memory.The retrieved Memory.The retrieved Memory.booleanThe retrieved Memory.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasMemory
boolean hasMemory()The retrieved Memory.
.google.cloud.aiplatform.v1beta1.Memory memory = 1;- Returns:
- Whether the memory field is set.
-
getMemory
Memory getMemory()The retrieved Memory.
.google.cloud.aiplatform.v1beta1.Memory memory = 1;- Returns:
- The memory.
-
getMemoryOrBuilder
MemoryOrBuilder getMemoryOrBuilder()The retrieved Memory.
.google.cloud.aiplatform.v1beta1.Memory memory = 1; -
getDistance
double getDistance()The distance between the query and the retrieved Memory. Smaller values indicate more similar memories. This is only set if similarity search was used for retrieval.
double distance = 2;- Returns:
- The distance.
-