Class Tool.DataStoreTool.Builder (0.94.0)

public static final class Tool.DataStoreTool.Builder extends GeneratedMessage.Builder<Tool.DataStoreTool.Builder> implements Tool.DataStoreToolOrBuilder

A DataStoreTool is a way to provide specifications needed to search a list of data stores.

Protobuf type google.cloud.dialogflow.cx.v3.Tool.DataStoreTool

Static Methods

getDescriptor()

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

Methods

addAllDataStoreConnections(Iterable<? extends DataStoreConnection> values)

public Tool.DataStoreTool.Builder addAllDataStoreConnections(Iterable<? extends DataStoreConnection> values)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.DataStoreConnection>
Returns
Type Description
Tool.DataStoreTool.Builder

addDataStoreConnections(DataStoreConnection value)

public Tool.DataStoreTool.Builder addDataStoreConnections(DataStoreConnection value)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataStoreConnection
Returns
Type Description
Tool.DataStoreTool.Builder

addDataStoreConnections(DataStoreConnection.Builder builderForValue)

public Tool.DataStoreTool.Builder addDataStoreConnections(DataStoreConnection.Builder builderForValue)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataStoreConnection.Builder
Returns
Type Description
Tool.DataStoreTool.Builder

addDataStoreConnections(int index, DataStoreConnection value)

public Tool.DataStoreTool.Builder addDataStoreConnections(int index, DataStoreConnection value)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DataStoreConnection
Returns
Type Description
Tool.DataStoreTool.Builder

addDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

public Tool.DataStoreTool.Builder addDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DataStoreConnection.Builder
Returns
Type Description
Tool.DataStoreTool.Builder

addDataStoreConnectionsBuilder()

public DataStoreConnection.Builder addDataStoreConnectionsBuilder()

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataStoreConnection.Builder

addDataStoreConnectionsBuilder(int index)

public DataStoreConnection.Builder addDataStoreConnectionsBuilder(int index)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataStoreConnection.Builder

build()

public Tool.DataStoreTool build()
Returns
Type Description
Tool.DataStoreTool

buildPartial()

public Tool.DataStoreTool buildPartial()
Returns
Type Description
Tool.DataStoreTool

clear()

public Tool.DataStoreTool.Builder clear()
Returns
Type Description
Tool.DataStoreTool.Builder
Overrides

clearDataStoreConnections()

public Tool.DataStoreTool.Builder clearDataStoreConnections()

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.DataStoreTool.Builder

clearFallbackPrompt()

public Tool.DataStoreTool.Builder clearFallbackPrompt()

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.DataStoreTool.Builder

getDataStoreConnections(int index)

public DataStoreConnection getDataStoreConnections(int index)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataStoreConnection

getDataStoreConnectionsBuilder(int index)

public DataStoreConnection.Builder getDataStoreConnectionsBuilder(int index)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataStoreConnection.Builder

getDataStoreConnectionsBuilderList()

public List<DataStoreConnection.Builder> getDataStoreConnectionsBuilderList()

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getDataStoreConnectionsCount()

public int getDataStoreConnectionsCount()

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getDataStoreConnectionsList()

public List<DataStoreConnection> getDataStoreConnectionsList()

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<DataStoreConnection>

getDataStoreConnectionsOrBuilder(int index)

public DataStoreConnectionOrBuilder getDataStoreConnectionsOrBuilder(int index)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataStoreConnectionOrBuilder

getDataStoreConnectionsOrBuilderList()

public List<? extends DataStoreConnectionOrBuilder> getDataStoreConnectionsOrBuilderList()

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.DataStoreConnectionOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

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

getFallbackPrompt()

public Tool.DataStoreTool.FallbackPrompt getFallbackPrompt()

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.DataStoreTool.FallbackPrompt

The fallbackPrompt.

getFallbackPromptBuilder()

public Tool.DataStoreTool.FallbackPrompt.Builder getFallbackPromptBuilder()

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.DataStoreTool.FallbackPrompt.Builder

getFallbackPromptOrBuilder()

public Tool.DataStoreTool.FallbackPromptOrBuilder getFallbackPromptOrBuilder()

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.DataStoreTool.FallbackPromptOrBuilder

hasFallbackPrompt()

public boolean hasFallbackPrompt()

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the fallbackPrompt field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFallbackPrompt(Tool.DataStoreTool.FallbackPrompt value)

public Tool.DataStoreTool.Builder mergeFallbackPrompt(Tool.DataStoreTool.FallbackPrompt value)

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Tool.DataStoreTool.FallbackPrompt
Returns
Type Description
Tool.DataStoreTool.Builder

mergeFrom(Tool.DataStoreTool other)

public Tool.DataStoreTool.Builder mergeFrom(Tool.DataStoreTool other)
Parameter
Name Description
other Tool.DataStoreTool
Returns
Type Description
Tool.DataStoreTool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Tool.DataStoreTool.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Tool.DataStoreTool.Builder
Overrides

removeDataStoreConnections(int index)

public Tool.DataStoreTool.Builder removeDataStoreConnections(int index)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Tool.DataStoreTool.Builder

setDataStoreConnections(int index, DataStoreConnection value)

public Tool.DataStoreTool.Builder setDataStoreConnections(int index, DataStoreConnection value)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DataStoreConnection
Returns
Type Description
Tool.DataStoreTool.Builder

setDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

public Tool.DataStoreTool.Builder setDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DataStoreConnection.Builder
Returns
Type Description
Tool.DataStoreTool.Builder

setFallbackPrompt(Tool.DataStoreTool.FallbackPrompt value)

public Tool.DataStoreTool.Builder setFallbackPrompt(Tool.DataStoreTool.FallbackPrompt value)

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Tool.DataStoreTool.FallbackPrompt
Returns
Type Description
Tool.DataStoreTool.Builder

setFallbackPrompt(Tool.DataStoreTool.FallbackPrompt.Builder builderForValue)

public Tool.DataStoreTool.Builder setFallbackPrompt(Tool.DataStoreTool.FallbackPrompt.Builder builderForValue)

Required. Fallback prompt configurations to use.

.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Tool.DataStoreTool.FallbackPrompt.Builder
Returns
Type Description
Tool.DataStoreTool.Builder