Class DataStoreTool.EngineSource (0.1.0)

public static final class DataStoreTool.EngineSource extends GeneratedMessage implements DataStoreTool.EngineSourceOrBuilder

Configuration for searching within an Engine, potentially targeting specific DataStores.

Protobuf type google.cloud.ces.v1.DataStoreTool.EngineSource

Static Fields

DATA_STORE_SOURCES_FIELD_NUMBER

public static final int DATA_STORE_SOURCES_FIELD_NUMBER
Field Value
Type Description
int

ENGINE_FIELD_NUMBER

public static final int ENGINE_FIELD_NUMBER
Field Value
Type Description
int

FILTER_FIELD_NUMBER

public static final int FILTER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataStoreTool.EngineSource getDefaultInstance()
Returns
Type Description
DataStoreTool.EngineSource

getDescriptor()

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

newBuilder()

public static DataStoreTool.EngineSource.Builder newBuilder()
Returns
Type Description
DataStoreTool.EngineSource.Builder

newBuilder(DataStoreTool.EngineSource prototype)

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

parseDelimitedFrom(InputStream input)

public static DataStoreTool.EngineSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataStoreTool.EngineSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DataStoreTool.EngineSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataStoreTool.EngineSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static DataStoreTool.EngineSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataStoreTool.EngineSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static DataStoreTool.EngineSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataStoreTool.EngineSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static DataStoreTool.EngineSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataStoreTool.EngineSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<DataStoreTool.EngineSource> parser()
Returns
Type Description
Parser<EngineSource>

Methods

equals(Object obj)

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

getDataStoreSources(int index)

public DataStoreTool.DataStoreSource getDataStoreSources(int index)

Optional. Use to target specific DataStores within the Engine. If empty, the search applies to all DataStores associated with the Engine.

repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DataStoreTool.DataStoreSource

getDataStoreSourcesCount()

public int getDataStoreSourcesCount()

Optional. Use to target specific DataStores within the Engine. If empty, the search applies to all DataStores associated with the Engine.

repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDataStoreSourcesList()

public List<DataStoreTool.DataStoreSource> getDataStoreSourcesList()

Optional. Use to target specific DataStores within the Engine. If empty, the search applies to all DataStores associated with the Engine.

repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<DataStoreSource>

getDataStoreSourcesOrBuilder(int index)

public DataStoreTool.DataStoreSourceOrBuilder getDataStoreSourcesOrBuilder(int index)

Optional. Use to target specific DataStores within the Engine. If empty, the search applies to all DataStores associated with the Engine.

repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DataStoreTool.DataStoreSourceOrBuilder

getDataStoreSourcesOrBuilderList()

public List<? extends DataStoreTool.DataStoreSourceOrBuilder> getDataStoreSourcesOrBuilderList()

Optional. Use to target specific DataStores within the Engine. If empty, the search applies to all DataStores associated with the Engine.

repeated .google.cloud.ces.v1.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.ces.v1.DataStoreTool.DataStoreSourceOrBuilder>

getDefaultInstanceForType()

public DataStoreTool.EngineSource getDefaultInstanceForType()
Returns
Type Description
DataStoreTool.EngineSource

getEngine()

public String getEngine()

Required. Full resource name of the Engine. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

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

Returns
Type Description
String

The engine.

getEngineBytes()

public ByteString getEngineBytes()

Required. Full resource name of the Engine. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

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

Returns
Type Description
ByteString

The bytes for engine.

getFilter()

public String getFilter()

Optional. A filter applied to the search across the Engine. Not relevant and not used if 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Optional. A filter applied to the search across the Engine. Not relevant and not used if 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for filter.

getParserForType()

public Parser<DataStoreTool.EngineSource> getParserForType()
Returns
Type Description
Parser<EngineSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DataStoreTool.EngineSource.Builder newBuilderForType()
Returns
Type Description
DataStoreTool.EngineSource.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DataStoreTool.EngineSource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataStoreTool.EngineSource.Builder
Overrides

toBuilder()

public DataStoreTool.EngineSource.Builder toBuilder()
Returns
Type Description
DataStoreTool.EngineSource.Builder

writeTo(CodedOutputStream output)

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