Class SearchKnowledgeRequest.Builder (4.61.0)

public static final class SearchKnowledgeRequest.Builder extends GeneratedMessageV3.Builder<SearchKnowledgeRequest.Builder> implements SearchKnowledgeRequestOrBuilder

The request message for Conversations.SearchKnowledge.

Protobuf type google.cloud.dialogflow.v2.SearchKnowledgeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchKnowledgeRequest build()
Returns
Type Description
SearchKnowledgeRequest

buildPartial()

public SearchKnowledgeRequest buildPartial()
Returns
Type Description
SearchKnowledgeRequest

clear()

public SearchKnowledgeRequest.Builder clear()
Returns
Type Description
SearchKnowledgeRequest.Builder
Overrides

clearConversation()

public SearchKnowledgeRequest.Builder clearConversation()

Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

clearConversationProfile()

public SearchKnowledgeRequest.Builder clearConversationProfile()

Required. The conversation profile used to configure the search. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.

string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

clearEndUserMetadata()

public SearchKnowledgeRequest.Builder clearEndUserMetadata()

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.Builder

clearExactSearch()

public SearchKnowledgeRequest.Builder clearExactSearch()

Optional. Whether to search the query exactly without query rewrite.

bool exact_search = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLatestMessage()

public SearchKnowledgeRequest.Builder clearLatestMessage()

Optional. The name of the latest conversation message when the request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public SearchKnowledgeRequest.Builder clearParent()

Required. The parent resource contains the conversation profile Format: 'projects/<Project ID>' or projects/<Project ID>/locations/<Location ID>.

string parent = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

clearQuery()

public SearchKnowledgeRequest.Builder clearQuery()

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchKnowledgeRequest.Builder

clearQuerySource()

public SearchKnowledgeRequest.Builder clearQuerySource()

Optional. The source of the query in the request.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

clearSearchConfig()

public SearchKnowledgeRequest.Builder clearSearchConfig()

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.Builder

clearSessionId()

public SearchKnowledgeRequest.Builder clearSessionId()

Required. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

clone()

public SearchKnowledgeRequest.Builder clone()
Returns
Type Description
SearchKnowledgeRequest.Builder
Overrides

getConversation()

public String getConversation()

Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The conversation.

getConversationBytes()

public ByteString getConversationBytes()

Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for conversation.

getConversationProfile()

public String getConversationProfile()

Required. The conversation profile used to configure the search. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.

string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The conversationProfile.

getConversationProfileBytes()

public ByteString getConversationProfileBytes()

Required. The conversation profile used to configure the search. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.

string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for conversationProfile.

getDefaultInstanceForType()

public SearchKnowledgeRequest getDefaultInstanceForType()
Returns
Type Description
SearchKnowledgeRequest

getDescriptorForType()

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

getEndUserMetadata()

public Struct getEndUserMetadata()

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The endUserMetadata.

getEndUserMetadataBuilder()

public Struct.Builder getEndUserMetadataBuilder()

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getEndUserMetadataOrBuilder()

public StructOrBuilder getEndUserMetadataOrBuilder()

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getExactSearch()

public boolean getExactSearch()

Optional. Whether to search the query exactly without query rewrite.

bool exact_search = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The exactSearch.

getLatestMessage()

public String getLatestMessage()

Optional. The name of the latest conversation message when the request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The latestMessage.

getLatestMessageBytes()

public ByteString getLatestMessageBytes()

Optional. The name of the latest conversation message when the request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for latestMessage.

getParent()

public String getParent()

Required. The parent resource contains the conversation profile Format: 'projects/<Project ID>' or projects/<Project ID>/locations/<Location ID>.

string parent = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource contains the conversation profile Format: 'projects/<Project ID>' or projects/<Project ID>/locations/<Location ID>.

string parent = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

getQuery()

public TextInput getQuery()

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TextInput

The query.

getQueryBuilder()

public TextInput.Builder getQueryBuilder()

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TextInput.Builder

getQueryOrBuilder()

public TextInputOrBuilder getQueryOrBuilder()

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TextInputOrBuilder

getQuerySource()

public SearchKnowledgeRequest.QuerySource getQuerySource()

Optional. The source of the query in the request.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.QuerySource

The querySource.

getQuerySourceValue()

public int getQuerySourceValue()

Optional. The source of the query in the request.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for querySource.

getSearchConfig()

public SearchKnowledgeRequest.SearchConfig getSearchConfig()

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.SearchConfig

The searchConfig.

getSearchConfigBuilder()

public SearchKnowledgeRequest.SearchConfig.Builder getSearchConfigBuilder()

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.SearchConfig.Builder

getSearchConfigOrBuilder()

public SearchKnowledgeRequest.SearchConfigOrBuilder getSearchConfigOrBuilder()

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchKnowledgeRequest.SearchConfigOrBuilder

getSessionId()

public String getSessionId()

Required. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sessionId.

getSessionIdBytes()

public ByteString getSessionIdBytes()

Required. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sessionId.

hasEndUserMetadata()

public boolean hasEndUserMetadata()

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the endUserMetadata field is set.

hasQuery()

public boolean hasQuery()

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the query field is set.

hasSearchConfig()

public boolean hasSearchConfig()

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the searchConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndUserMetadata(Struct value)

public SearchKnowledgeRequest.Builder mergeEndUserMetadata(Struct value)

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
SearchKnowledgeRequest.Builder

mergeFrom(SearchKnowledgeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQuery(TextInput value)

public SearchKnowledgeRequest.Builder mergeQuery(TextInput value)

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TextInput
Returns
Type Description
SearchKnowledgeRequest.Builder

mergeSearchConfig(SearchKnowledgeRequest.SearchConfig value)

public SearchKnowledgeRequest.Builder mergeSearchConfig(SearchKnowledgeRequest.SearchConfig value)

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SearchKnowledgeRequest.SearchConfig
Returns
Type Description
SearchKnowledgeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchKnowledgeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchKnowledgeRequest.Builder
Overrides

setConversation(String value)

public SearchKnowledgeRequest.Builder setConversation(String value)

Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The conversation to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setConversationBytes(ByteString value)

public SearchKnowledgeRequest.Builder setConversationBytes(ByteString value)

Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for conversation to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setConversationProfile(String value)

public SearchKnowledgeRequest.Builder setConversationProfile(String value)

Required. The conversation profile used to configure the search. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.

string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The conversationProfile to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setConversationProfileBytes(ByteString value)

public SearchKnowledgeRequest.Builder setConversationProfileBytes(ByteString value)

Required. The conversation profile used to configure the search. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.

string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for conversationProfile to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setEndUserMetadata(Struct value)

public SearchKnowledgeRequest.Builder setEndUserMetadata(Struct value)

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
SearchKnowledgeRequest.Builder

setEndUserMetadata(Struct.Builder builderForValue)

public SearchKnowledgeRequest.Builder setEndUserMetadata(Struct.Builder builderForValue)

Optional. Information about the end-user to improve the relevance and accuracy of generative answers.

This will be interpreted and used by a language model, so, for good results, the data should be self-descriptive, and in a simple structure.

Example:

<code><code>json { "subscription plan": "Business Premium Plus", "devices owned": [ {"model": "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } </code></code>

.google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SearchKnowledgeRequest.Builder

setExactSearch(boolean value)

public SearchKnowledgeRequest.Builder setExactSearch(boolean value)

Optional. Whether to search the query exactly without query rewrite.

bool exact_search = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The exactSearch to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLatestMessage(String value)

public SearchKnowledgeRequest.Builder setLatestMessage(String value)

Optional. The name of the latest conversation message when the request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The latestMessage to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setLatestMessageBytes(ByteString value)

public SearchKnowledgeRequest.Builder setLatestMessageBytes(ByteString value)

Optional. The name of the latest conversation message when the request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for latestMessage to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setParent(String value)

public SearchKnowledgeRequest.Builder setParent(String value)

Required. The parent resource contains the conversation profile Format: 'projects/<Project ID>' or projects/<Project ID>/locations/<Location ID>.

string parent = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SearchKnowledgeRequest.Builder setParentBytes(ByteString value)

Required. The parent resource contains the conversation profile Format: 'projects/<Project ID>' or projects/<Project ID>/locations/<Location ID>.

string parent = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setQuery(TextInput value)

public SearchKnowledgeRequest.Builder setQuery(TextInput value)

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TextInput
Returns
Type Description
SearchKnowledgeRequest.Builder

setQuery(TextInput.Builder builderForValue)

public SearchKnowledgeRequest.Builder setQuery(TextInput.Builder builderForValue)

Required. The natural language text query for knowledge search.

.google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TextInput.Builder
Returns
Type Description
SearchKnowledgeRequest.Builder

setQuerySource(SearchKnowledgeRequest.QuerySource value)

public SearchKnowledgeRequest.Builder setQuerySource(SearchKnowledgeRequest.QuerySource value)

Optional. The source of the query in the request.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SearchKnowledgeRequest.QuerySource

The querySource to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setQuerySourceValue(int value)

public SearchKnowledgeRequest.Builder setQuerySourceValue(int value)

Optional. The source of the query in the request.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for querySource to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

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

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

setSearchConfig(SearchKnowledgeRequest.SearchConfig value)

public SearchKnowledgeRequest.Builder setSearchConfig(SearchKnowledgeRequest.SearchConfig value)

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SearchKnowledgeRequest.SearchConfig
Returns
Type Description
SearchKnowledgeRequest.Builder

setSearchConfig(SearchKnowledgeRequest.SearchConfig.Builder builderForValue)

public SearchKnowledgeRequest.Builder setSearchConfig(SearchKnowledgeRequest.SearchConfig.Builder builderForValue)

Optional. Configuration specific to search queries with data stores.

.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SearchKnowledgeRequest.SearchConfig.Builder
Returns
Type Description
SearchKnowledgeRequest.Builder

setSessionId(String value)

public SearchKnowledgeRequest.Builder setSessionId(String value)

Required. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sessionId to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setSessionIdBytes(ByteString value)

public SearchKnowledgeRequest.Builder setSessionIdBytes(ByteString value)

Required. The ID of the search session. The session_id can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.

string session_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sessionId to set.

Returns
Type Description
SearchKnowledgeRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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