Interface QueryParametersOrBuilder (4.6.0)

public interface QueryParametersOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsWebhookHeaders(String key)

public abstract boolean containsWebhookHeaders(String key)

This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.

map<string, string> webhook_headers = 14;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getContexts(int index)

public abstract Context getContexts(int index)

The collection of contexts to be activated before this query is executed.

repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context

getContextsCount()

public abstract int getContextsCount()

The collection of contexts to be activated before this query is executed.

repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;

Returns
TypeDescription
int

getContextsList()

public abstract List<Context> getContextsList()

The collection of contexts to be activated before this query is executed.

repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;

Returns
TypeDescription
List<Context>

getContextsOrBuilder(int index)

public abstract ContextOrBuilder getContextsOrBuilder(int index)

The collection of contexts to be activated before this query is executed.

repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContextOrBuilder

getContextsOrBuilderList()

public abstract List<? extends ContextOrBuilder> getContextsOrBuilderList()

The collection of contexts to be activated before this query is executed.

repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.ContextOrBuilder>

getGeoLocation()

public abstract LatLng getGeoLocation()

The geo location of this conversational query.

.google.type.LatLng geo_location = 2;

Returns
TypeDescription
com.google.type.LatLng

The geoLocation.

getGeoLocationOrBuilder()

public abstract LatLngOrBuilder getGeoLocationOrBuilder()

The geo location of this conversational query.

.google.type.LatLng geo_location = 2;

Returns
TypeDescription
com.google.type.LatLngOrBuilder

getKnowledgeBaseNames(int index)

public abstract String getKnowledgeBaseNames(int index)

KnowledgeBases to get alternative results from. If not set, the KnowledgeBases enabled in the agent (through UI) will be used. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>.

repeated string knowledge_base_names = 12;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The knowledgeBaseNames at the given index.

getKnowledgeBaseNamesBytes(int index)

public abstract ByteString getKnowledgeBaseNamesBytes(int index)

KnowledgeBases to get alternative results from. If not set, the KnowledgeBases enabled in the agent (through UI) will be used. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>.

repeated string knowledge_base_names = 12;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the knowledgeBaseNames at the given index.

getKnowledgeBaseNamesCount()

public abstract int getKnowledgeBaseNamesCount()

KnowledgeBases to get alternative results from. If not set, the KnowledgeBases enabled in the agent (through UI) will be used. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>.

repeated string knowledge_base_names = 12;

Returns
TypeDescription
int

The count of knowledgeBaseNames.

getKnowledgeBaseNamesList()

public abstract List<String> getKnowledgeBaseNamesList()

KnowledgeBases to get alternative results from. If not set, the KnowledgeBases enabled in the agent (through UI) will be used. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>.

repeated string knowledge_base_names = 12;

Returns
TypeDescription
List<String>

A list containing the knowledgeBaseNames.

getPayload()

public abstract Struct getPayload()

This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the WebhookRequest.original_detect_intent_request.payload field sent to your webhook.

.google.protobuf.Struct payload = 6;

Returns
TypeDescription
Struct

The payload.

getPayloadOrBuilder()

public abstract StructOrBuilder getPayloadOrBuilder()

This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the WebhookRequest.original_detect_intent_request.payload field sent to your webhook.

.google.protobuf.Struct payload = 6;

Returns
TypeDescription
StructOrBuilder

getResetContexts()

public abstract boolean getResetContexts()

Specifies whether to delete all contexts in the current session before the new ones are activated.

bool reset_contexts = 4;

Returns
TypeDescription
boolean

The resetContexts.

getSentimentAnalysisRequestConfig()

public abstract SentimentAnalysisRequestConfig getSentimentAnalysisRequestConfig()

Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Essentials Edition agents.

.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;

Returns
TypeDescription
SentimentAnalysisRequestConfig

The sentimentAnalysisRequestConfig.

getSentimentAnalysisRequestConfigOrBuilder()

public abstract SentimentAnalysisRequestConfigOrBuilder getSentimentAnalysisRequestConfigOrBuilder()

Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Essentials Edition agents.

.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;

Returns
TypeDescription
SentimentAnalysisRequestConfigOrBuilder

getSessionEntityTypes(int index)

public abstract SessionEntityType getSessionEntityTypes(int index)

Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.

repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionEntityType

getSessionEntityTypesCount()

public abstract int getSessionEntityTypesCount()

Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.

repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;

Returns
TypeDescription
int

getSessionEntityTypesList()

public abstract List<SessionEntityType> getSessionEntityTypesList()

Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.

repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;

Returns
TypeDescription
List<SessionEntityType>

getSessionEntityTypesOrBuilder(int index)

public abstract SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder(int index)

Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.

repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionEntityTypeOrBuilder

getSessionEntityTypesOrBuilderList()

public abstract List<? extends SessionEntityTypeOrBuilder> getSessionEntityTypesOrBuilderList()

Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.

repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder>

getSubAgents(int index)

public abstract SubAgent getSubAgents(int index)

For mega agent query, directly specify which sub agents to query. If any specified sub agent is not linked to the mega agent, an error will be returned. If empty, Dialogflow will decide which sub agents to query. If specified for a non-mega-agent query, will be silently ignored.

repeated .google.cloud.dialogflow.v2beta1.SubAgent sub_agents = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
SubAgent

getSubAgentsCount()

public abstract int getSubAgentsCount()

For mega agent query, directly specify which sub agents to query. If any specified sub agent is not linked to the mega agent, an error will be returned. If empty, Dialogflow will decide which sub agents to query. If specified for a non-mega-agent query, will be silently ignored.

repeated .google.cloud.dialogflow.v2beta1.SubAgent sub_agents = 13;

Returns
TypeDescription
int

getSubAgentsList()

public abstract List<SubAgent> getSubAgentsList()

For mega agent query, directly specify which sub agents to query. If any specified sub agent is not linked to the mega agent, an error will be returned. If empty, Dialogflow will decide which sub agents to query. If specified for a non-mega-agent query, will be silently ignored.

repeated .google.cloud.dialogflow.v2beta1.SubAgent sub_agents = 13;

Returns
TypeDescription
List<SubAgent>

getSubAgentsOrBuilder(int index)

public abstract SubAgentOrBuilder getSubAgentsOrBuilder(int index)

For mega agent query, directly specify which sub agents to query. If any specified sub agent is not linked to the mega agent, an error will be returned. If empty, Dialogflow will decide which sub agents to query. If specified for a non-mega-agent query, will be silently ignored.

repeated .google.cloud.dialogflow.v2beta1.SubAgent sub_agents = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
SubAgentOrBuilder

getSubAgentsOrBuilderList()

public abstract List<? extends SubAgentOrBuilder> getSubAgentsOrBuilderList()

For mega agent query, directly specify which sub agents to query. If any specified sub agent is not linked to the mega agent, an error will be returned. If empty, Dialogflow will decide which sub agents to query. If specified for a non-mega-agent query, will be silently ignored.

repeated .google.cloud.dialogflow.v2beta1.SubAgent sub_agents = 13;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.SubAgentOrBuilder>

getTimeZone()

public abstract String getTimeZone()

The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.

string time_zone = 1;

Returns
TypeDescription
String

The timeZone.

getTimeZoneBytes()

public abstract ByteString getTimeZoneBytes()

The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.

string time_zone = 1;

Returns
TypeDescription
ByteString

The bytes for timeZone.

getWebhookHeaders()

public abstract Map<String,String> getWebhookHeaders()
Returns
TypeDescription
Map<String,String>

getWebhookHeadersCount()

public abstract int getWebhookHeadersCount()

This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.

map<string, string> webhook_headers = 14;

Returns
TypeDescription
int

getWebhookHeadersMap()

public abstract Map<String,String> getWebhookHeadersMap()

This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.

map<string, string> webhook_headers = 14;

Returns
TypeDescription
Map<String,String>

getWebhookHeadersOrDefault(String key, String defaultValue)

public abstract String getWebhookHeadersOrDefault(String key, String defaultValue)

This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.

map<string, string> webhook_headers = 14;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getWebhookHeadersOrThrow(String key)

public abstract String getWebhookHeadersOrThrow(String key)

This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.

map<string, string> webhook_headers = 14;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

hasGeoLocation()

public abstract boolean hasGeoLocation()

The geo location of this conversational query.

.google.type.LatLng geo_location = 2;

Returns
TypeDescription
boolean

Whether the geoLocation field is set.

hasPayload()

public abstract boolean hasPayload()

This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the WebhookRequest.original_detect_intent_request.payload field sent to your webhook.

.google.protobuf.Struct payload = 6;

Returns
TypeDescription
boolean

Whether the payload field is set.

hasSentimentAnalysisRequestConfig()

public abstract boolean hasSentimentAnalysisRequestConfig()

Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Essentials Edition agents.

.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;

Returns
TypeDescription
boolean

Whether the sentimentAnalysisRequestConfig field is set.