Class SearchRequest.DataStoreSpec.Builder (0.37.0)

public static final class SearchRequest.DataStoreSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.DataStoreSpec.Builder> implements SearchRequest.DataStoreSpecOrBuilder

A struct to define data stores to filter on in a search call.

Protobuf type google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.DataStoreSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

build()

public SearchRequest.DataStoreSpec build()
Returns
TypeDescription
SearchRequest.DataStoreSpec

buildPartial()

public SearchRequest.DataStoreSpec buildPartial()
Returns
TypeDescription
SearchRequest.DataStoreSpec

clear()

public SearchRequest.DataStoreSpec.Builder clear()
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

clearDataStore()

public SearchRequest.DataStoreSpec.Builder clearDataStore()

Required. Full resource name of DataStore, such as projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.DataStoreSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.DataStoreSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

clone()

public SearchRequest.DataStoreSpec.Builder clone()
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

getDataStore()

public String getDataStore()

Required. Full resource name of DataStore, such as projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The dataStore.

getDataStoreBytes()

public ByteString getDataStoreBytes()

Required. Full resource name of DataStore, such as projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for dataStore.

getDefaultInstanceForType()

public SearchRequest.DataStoreSpec getDefaultInstanceForType()
Returns
TypeDescription
SearchRequest.DataStoreSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchRequest.DataStoreSpec other)

public SearchRequest.DataStoreSpec.Builder mergeFrom(SearchRequest.DataStoreSpec other)
Parameter
NameDescription
otherSearchRequest.DataStoreSpec
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.DataStoreSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchRequest.DataStoreSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.DataStoreSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

setDataStore(String value)

public SearchRequest.DataStoreSpec.Builder setDataStore(String value)

Required. Full resource name of DataStore, such as projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The dataStore to set.

Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder

This builder for chaining.

setDataStoreBytes(ByteString value)

public SearchRequest.DataStoreSpec.Builder setDataStoreBytes(ByteString value)

Required. Full resource name of DataStore, such as projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}.

string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for dataStore to set.

Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.DataStoreSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

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

public SearchRequest.DataStoreSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.DataStoreSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchRequest.DataStoreSpec.Builder
Overrides