Class Tool.DataStoreTool.Builder (0.65.0)

public static final class Tool.DataStoreTool.Builder extends GeneratedMessageV3.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.v3beta1.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.v3beta1.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataStoreConnection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.v3beta1.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.v3beta1.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.DataStoreTool.Builder

clearField(Descriptors.FieldDescriptor field)

public Tool.DataStoreTool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Tool.DataStoreTool.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Tool.DataStoreTool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Tool.DataStoreTool.Builder
Overrides

clone()

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

getDataStoreConnections(int index)

public DataStoreConnection getDataStoreConnections(int index)

Required. List of data stores to search.

repeated .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.DataStoreConnection data_store_connections = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.Tool.DataStoreTool.FallbackPrompt fallback_prompt = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the fallbackPrompt field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.v3beta1.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tool.DataStoreTool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Tool.DataStoreTool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.DataStoreTool.Builder
Overrides