Class SearchResponseMetadata.IndexInfo.Builder (0.6.0)

public static final class SearchResponseMetadata.IndexInfo.Builder extends GeneratedMessage.Builder<SearchResponseMetadata.IndexInfo.Builder> implements SearchResponseMetadata.IndexInfoOrBuilder

Message that indicates the index used for the search.

Protobuf type google.cloud.vectorsearch.v1beta.SearchResponseMetadata.IndexInfo

Static Methods

getDescriptor()

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

Methods

build()

public SearchResponseMetadata.IndexInfo build()
Returns
Type Description
SearchResponseMetadata.IndexInfo

buildPartial()

public SearchResponseMetadata.IndexInfo buildPartial()
Returns
Type Description
SearchResponseMetadata.IndexInfo

clear()

public SearchResponseMetadata.IndexInfo.Builder clear()
Returns
Type Description
SearchResponseMetadata.IndexInfo.Builder
Overrides

clearName()

public SearchResponseMetadata.IndexInfo.Builder clearName()

Output only. The resource name of the index used for the search. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SearchResponseMetadata.IndexInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public SearchResponseMetadata.IndexInfo getDefaultInstanceForType()
Returns
Type Description
SearchResponseMetadata.IndexInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Output only. The resource name of the index used for the search. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the index used for the search. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchResponseMetadata.IndexInfo other)

public SearchResponseMetadata.IndexInfo.Builder mergeFrom(SearchResponseMetadata.IndexInfo other)
Parameter
Name Description
other SearchResponseMetadata.IndexInfo
Returns
Type Description
SearchResponseMetadata.IndexInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchResponseMetadata.IndexInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponseMetadata.IndexInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchResponseMetadata.IndexInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchResponseMetadata.IndexInfo.Builder
Overrides

setName(String value)

public SearchResponseMetadata.IndexInfo.Builder setName(String value)

Output only. The resource name of the index used for the search. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SearchResponseMetadata.IndexInfo.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SearchResponseMetadata.IndexInfo.Builder setNameBytes(ByteString value)

Output only. The resource name of the index used for the search. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SearchResponseMetadata.IndexInfo.Builder

This builder for chaining.