Class KnowledgeConnectorSettings.Builder (0.48.0)

public static final class KnowledgeConnectorSettings.Builder extends GeneratedMessageV3.Builder<KnowledgeConnectorSettings.Builder> implements KnowledgeConnectorSettingsOrBuilder

The Knowledge Connector settings for this page or flow. This includes information such as the attached Knowledge Bases, and the way to execute fulfillment.

Protobuf type google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings

Static Methods

getDescriptor()

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

Methods

addAllDataStoreConnections(Iterable<? extends DataStoreConnection> values)

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

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection>
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

addDataStoreConnections(DataStoreConnection value)

public KnowledgeConnectorSettings.Builder addDataStoreConnections(DataStoreConnection value)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataStoreConnection
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

addDataStoreConnections(DataStoreConnection.Builder builderForValue)

public KnowledgeConnectorSettings.Builder addDataStoreConnections(DataStoreConnection.Builder builderForValue)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDataStoreConnection.Builder
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

addDataStoreConnections(int index, DataStoreConnection value)

public KnowledgeConnectorSettings.Builder addDataStoreConnections(int index, DataStoreConnection value)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueDataStoreConnection
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

addDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

public KnowledgeConnectorSettings.Builder addDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueDataStoreConnection.Builder
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

addDataStoreConnectionsBuilder()

public DataStoreConnection.Builder addDataStoreConnectionsBuilder()

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataStoreConnection.Builder

addDataStoreConnectionsBuilder(int index)

public DataStoreConnection.Builder addDataStoreConnectionsBuilder(int index)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataStoreConnection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KnowledgeConnectorSettings build()
Returns
TypeDescription
KnowledgeConnectorSettings

buildPartial()

public KnowledgeConnectorSettings buildPartial()
Returns
TypeDescription
KnowledgeConnectorSettings

clear()

public KnowledgeConnectorSettings.Builder clear()
Returns
TypeDescription
KnowledgeConnectorSettings.Builder
Overrides

clearDataStoreConnections()

public KnowledgeConnectorSettings.Builder clearDataStoreConnections()

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

clearEnabled()

public KnowledgeConnectorSettings.Builder clearEnabled()

Whether Knowledge Connector is enabled or not.

bool enabled = 1;

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTarget()

public KnowledgeConnectorSettings.Builder clearTarget()
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

clearTargetFlow()

public KnowledgeConnectorSettings.Builder clearTargetFlow()

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string target_flow = 5 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

clearTargetPage()

public KnowledgeConnectorSettings.Builder clearTargetPage()

The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string target_page = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

clearTriggerFulfillment()

public KnowledgeConnectorSettings.Builder clearTriggerFulfillment()

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

clone()

public KnowledgeConnectorSettings.Builder clone()
Returns
TypeDescription
KnowledgeConnectorSettings.Builder
Overrides

getDataStoreConnections(int index)

public DataStoreConnection getDataStoreConnections(int index)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataStoreConnection

getDataStoreConnectionsBuilder(int index)

public DataStoreConnection.Builder getDataStoreConnectionsBuilder(int index)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataStoreConnection.Builder

getDataStoreConnectionsBuilderList()

public List<DataStoreConnection.Builder> getDataStoreConnectionsBuilderList()

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getDataStoreConnectionsCount()

public int getDataStoreConnectionsCount()

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getDataStoreConnectionsList()

public List<DataStoreConnection> getDataStoreConnectionsList()

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<DataStoreConnection>

getDataStoreConnectionsOrBuilder(int index)

public DataStoreConnectionOrBuilder getDataStoreConnectionsOrBuilder(int index)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataStoreConnectionOrBuilder

getDataStoreConnectionsOrBuilderList()

public List<? extends DataStoreConnectionOrBuilder> getDataStoreConnectionsOrBuilderList()

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionOrBuilder>

getDefaultInstanceForType()

public KnowledgeConnectorSettings getDefaultInstanceForType()
Returns
TypeDescription
KnowledgeConnectorSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether Knowledge Connector is enabled or not.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getTargetCase()

public KnowledgeConnectorSettings.TargetCase getTargetCase()
Returns
TypeDescription
KnowledgeConnectorSettings.TargetCase

getTargetFlow()

public String getTargetFlow()

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string target_flow = 5 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The targetFlow.

getTargetFlowBytes()

public ByteString getTargetFlowBytes()

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string target_flow = 5 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for targetFlow.

getTargetPage()

public String getTargetPage()

The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string target_page = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The targetPage.

getTargetPageBytes()

public ByteString getTargetPageBytes()

The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string target_page = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for targetPage.

getTriggerFulfillment()

public Fulfillment getTriggerFulfillment()

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Returns
TypeDescription
Fulfillment

The triggerFulfillment.

getTriggerFulfillmentBuilder()

public Fulfillment.Builder getTriggerFulfillmentBuilder()

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Returns
TypeDescription
Fulfillment.Builder

getTriggerFulfillmentOrBuilder()

public FulfillmentOrBuilder getTriggerFulfillmentOrBuilder()

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Returns
TypeDescription
FulfillmentOrBuilder

hasTargetFlow()

public boolean hasTargetFlow()

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string target_flow = 5 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
boolean

Whether the targetFlow field is set.

hasTargetPage()

public boolean hasTargetPage()

The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string target_page = 4 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
boolean

Whether the targetPage field is set.

hasTriggerFulfillment()

public boolean hasTriggerFulfillment()

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Returns
TypeDescription
boolean

Whether the triggerFulfillment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KnowledgeConnectorSettings other)

public KnowledgeConnectorSettings.Builder mergeFrom(KnowledgeConnectorSettings other)
Parameter
NameDescription
otherKnowledgeConnectorSettings
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTriggerFulfillment(Fulfillment value)

public KnowledgeConnectorSettings.Builder mergeTriggerFulfillment(Fulfillment value)

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Parameter
NameDescription
valueFulfillment
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDataStoreConnections(int index)

public KnowledgeConnectorSettings.Builder removeDataStoreConnections(int index)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

setDataStoreConnections(int index, DataStoreConnection value)

public KnowledgeConnectorSettings.Builder setDataStoreConnections(int index, DataStoreConnection value)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueDataStoreConnection
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

setDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

public KnowledgeConnectorSettings.Builder setDataStoreConnections(int index, DataStoreConnection.Builder builderForValue)

Optional. List of related data store connections.

repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueDataStoreConnection.Builder
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

setEnabled(boolean value)

public KnowledgeConnectorSettings.Builder setEnabled(boolean value)

Whether Knowledge Connector is enabled or not.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTargetFlow(String value)

public KnowledgeConnectorSettings.Builder setTargetFlow(String value)

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string target_flow = 5 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The targetFlow to set.

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

setTargetFlowBytes(ByteString value)

public KnowledgeConnectorSettings.Builder setTargetFlowBytes(ByteString value)

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string target_flow = 5 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for targetFlow to set.

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

setTargetPage(String value)

public KnowledgeConnectorSettings.Builder setTargetPage(String value)

The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string target_page = 4 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The targetPage to set.

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

setTargetPageBytes(ByteString value)

public KnowledgeConnectorSettings.Builder setTargetPageBytes(ByteString value)

The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

string target_page = 4 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for targetPage to set.

Returns
TypeDescription
KnowledgeConnectorSettings.Builder

This builder for chaining.

setTriggerFulfillment(Fulfillment value)

public KnowledgeConnectorSettings.Builder setTriggerFulfillment(Fulfillment value)

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Parameter
NameDescription
valueFulfillment
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

setTriggerFulfillment(Fulfillment.Builder builderForValue)

public KnowledgeConnectorSettings.Builder setTriggerFulfillment(Fulfillment.Builder builderForValue)

The fulfillment to be triggered.

When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter $request.knowledge.answers (contains up to the 5 highest confidence answers) and $request.knowledge.questions (contains the corresponding questions) to construct the fulfillment.

.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;

Parameter
NameDescription
builderForValueFulfillment.Builder
Returns
TypeDescription
KnowledgeConnectorSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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