Class SearchResponseMetadata (0.1.0)

public final class SearchResponseMetadata extends GeneratedMessageV3 implements SearchResponseMetadataOrBuilder

Metadata about the search execution.

Protobuf type google.cloud.vectorsearch.v1beta.SearchResponseMetadata

Static Fields

USED_INDEX_FIELD_NUMBER

public static final int USED_INDEX_FIELD_NUMBER
Field Value
Type Description
int

USED_KNN_FIELD_NUMBER

public static final int USED_KNN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SearchResponseMetadata getDefaultInstance()
Returns
Type Description
SearchResponseMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SearchResponseMetadata.Builder newBuilder()
Returns
Type Description
SearchResponseMetadata.Builder

newBuilder(SearchResponseMetadata prototype)

public static SearchResponseMetadata.Builder newBuilder(SearchResponseMetadata prototype)
Parameter
Name Description
prototype SearchResponseMetadata
Returns
Type Description
SearchResponseMetadata.Builder

parseDelimitedFrom(InputStream input)

public static SearchResponseMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchResponseMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SearchResponseMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SearchResponseMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SearchResponseMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SearchResponseMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SearchResponseMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchResponseMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SearchResponseMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchResponseMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SearchResponseMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SearchResponseMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponseMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SearchResponseMetadata> parser()
Returns
Type Description
Parser<SearchResponseMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SearchResponseMetadata getDefaultInstanceForType()
Returns
Type Description
SearchResponseMetadata

getIndexTypeCase()

public SearchResponseMetadata.IndexTypeCase getIndexTypeCase()
Returns
Type Description
SearchResponseMetadata.IndexTypeCase

getParserForType()

public Parser<SearchResponseMetadata> getParserForType()
Returns
Type Description
Parser<SearchResponseMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUsedIndex()

public SearchResponseMetadata.IndexInfo getUsedIndex()

Indicates that the search used a particular index.

.google.cloud.vectorsearch.v1beta.SearchResponseMetadata.IndexInfo used_index = 1;

Returns
Type Description
SearchResponseMetadata.IndexInfo

The usedIndex.

getUsedIndexOrBuilder()

public SearchResponseMetadata.IndexInfoOrBuilder getUsedIndexOrBuilder()

Indicates that the search used a particular index.

.google.cloud.vectorsearch.v1beta.SearchResponseMetadata.IndexInfo used_index = 1;

Returns
Type Description
SearchResponseMetadata.IndexInfoOrBuilder

getUsedKnn()

public boolean getUsedKnn()

Output only. If true, the search used the system's default K-Nearest Neighbor (KNN) index engine.

bool used_knn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The usedKnn.

hasUsedIndex()

public boolean hasUsedIndex()

Indicates that the search used a particular index.

.google.cloud.vectorsearch.v1beta.SearchResponseMetadata.IndexInfo used_index = 1;

Returns
Type Description
boolean

Whether the usedIndex field is set.

hasUsedKnn()

public boolean hasUsedKnn()

Output only. If true, the search used the system's default K-Nearest Neighbor (KNN) index engine.

bool used_knn = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the usedKnn field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SearchResponseMetadata.Builder newBuilderForType()
Returns
Type Description
SearchResponseMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SearchResponseMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SearchResponseMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SearchResponseMetadata.Builder toBuilder()
Returns
Type Description
SearchResponseMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException