Class SearchHint.IndexHint.Builder (0.1.0)

public static final class SearchHint.IndexHint.Builder extends GeneratedMessageV3.Builder<SearchHint.IndexHint.Builder> implements SearchHint.IndexHintOrBuilder

Message to specify the index to use for the search.

Protobuf type google.cloud.vectorsearch.v1beta.SearchHint.IndexHint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchHint.IndexHint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

build()

public SearchHint.IndexHint build()
Returns
Type Description
SearchHint.IndexHint

buildPartial()

public SearchHint.IndexHint buildPartial()
Returns
Type Description
SearchHint.IndexHint

clear()

public SearchHint.IndexHint.Builder clear()
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchHint.IndexHint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

clearName()

public SearchHint.IndexHint.Builder clearName()

Required. The resource name of the index to use for the search. The index must be in the same project, location, and collection. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

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

Returns
Type Description
SearchHint.IndexHint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchHint.IndexHint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

clone()

public SearchHint.IndexHint.Builder clone()
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

getDefaultInstanceForType()

public SearchHint.IndexHint getDefaultInstanceForType()
Returns
Type Description
SearchHint.IndexHint

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the index to use for the search. The index must be in the same project, location, and collection. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the index to use for the search. The index must be in the same project, location, and collection. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchHint.IndexHint other)

public SearchHint.IndexHint.Builder mergeFrom(SearchHint.IndexHint other)
Parameter
Name Description
other SearchHint.IndexHint
Returns
Type Description
SearchHint.IndexHint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SearchHint.IndexHint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchHint.IndexHint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SearchHint.IndexHint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

setName(String value)

public SearchHint.IndexHint.Builder setName(String value)

Required. The resource name of the index to use for the search. The index must be in the same project, location, and collection. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SearchHint.IndexHint.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SearchHint.IndexHint.Builder setNameBytes(ByteString value)

Required. The resource name of the index to use for the search. The index must be in the same project, location, and collection. Format: projects/{project}/locations/{location}/collections/{collection}/indexes/{index}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SearchHint.IndexHint.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchHint.IndexHint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchHint.IndexHint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchHint.IndexHint.Builder
Overrides