public final class QueryParameters extends GeneratedMessageV3 implements QueryParametersOrBuilder
Represents the parameters of the conversational query.
Protobuf type google.cloud.dialogflow.v2beta1.QueryParameters
Fields
CONTEXTS_FIELD_NUMBER
public static final int CONTEXTS_FIELD_NUMBER
Field Value
GEO_LOCATION_FIELD_NUMBER
public static final int GEO_LOCATION_FIELD_NUMBER
Field Value
KNOWLEDGE_BASE_NAMES_FIELD_NUMBER
public static final int KNOWLEDGE_BASE_NAMES_FIELD_NUMBER
Field Value
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
Field Value
RESET_CONTEXTS_FIELD_NUMBER
public static final int RESET_CONTEXTS_FIELD_NUMBER
Field Value
SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER
public static final int SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER
Field Value
SESSION_ENTITY_TYPES_FIELD_NUMBER
public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER
Field Value
SUB_AGENTS_FIELD_NUMBER
public static final int SUB_AGENTS_FIELD_NUMBER
Field Value
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
Field Value
public static final int WEBHOOK_HEADERS_FIELD_NUMBER
Field Value
Methods
public 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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getContexts(int index)
public 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
Returns
getContextsCount()
public int getContextsCount()
The collection of contexts to be activated before this query is
executed.
repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;
Returns
getContextsList()
public List<Context> getContextsList()
The collection of contexts to be activated before this query is
executed.
repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;
Returns
getContextsOrBuilder(int index)
public 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
Returns
getContextsOrBuilderList()
public 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
Type | Description |
List<? extends com.google.cloud.dialogflow.v2beta1.ContextOrBuilder> | |
getDefaultInstance()
public static QueryParameters getDefaultInstance()
Returns
getDefaultInstanceForType()
public QueryParameters getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getGeoLocation()
public LatLng getGeoLocation()
The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
Returns
Type | Description |
com.google.type.LatLng | The geoLocation.
|
getGeoLocationOrBuilder()
public LatLngOrBuilder getGeoLocationOrBuilder()
The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
Returns
Type | Description |
com.google.type.LatLngOrBuilder | |
getKnowledgeBaseNames(int index)
public 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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The knowledgeBaseNames at the given index.
|
getKnowledgeBaseNamesBytes(int index)
public 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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the knowledgeBaseNames at the given index.
|
getKnowledgeBaseNamesCount()
public 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
Type | Description |
int | The count of knowledgeBaseNames.
|
getKnowledgeBaseNamesList()
public ProtocolStringList 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
getParserForType()
public Parser<QueryParameters> getParserForType()
Returns
Overrides
getPayload()
public 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
Type | Description |
Struct | The payload.
|
getPayloadOrBuilder()
public 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
getResetContexts()
public boolean getResetContexts()
Specifies whether to delete all contexts in the current session
before the new ones are activated.
bool reset_contexts = 4;
Returns
Type | Description |
boolean | The resetContexts.
|
getSentimentAnalysisRequestConfig()
public 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
getSentimentAnalysisRequestConfigOrBuilder()
public 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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSessionEntityTypes(int index)
public 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
Returns
getSessionEntityTypesCount()
public 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
getSessionEntityTypesList()
public 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
getSessionEntityTypesOrBuilder(int index)
public 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
Returns
getSessionEntityTypesOrBuilderList()
public 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
Type | Description |
List<? extends com.google.cloud.dialogflow.v2beta1.SessionEntityTypeOrBuilder> | |
getSubAgents(int index)
public 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
Returns
getSubAgentsCount()
public 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
getSubAgentsList()
public 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
getSubAgentsOrBuilder(int index)
public 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
Returns
getSubAgentsOrBuilderList()
public 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
Type | Description |
List<? extends com.google.cloud.dialogflow.v2beta1.SubAgentOrBuilder> | |
getTimeZone()
public 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
Type | Description |
String | The timeZone.
|
getTimeZoneBytes()
public 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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Map<String,String> getWebhookHeaders()
Returns
public 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
public 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
public 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
Returns
public 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
Returns
hasGeoLocation()
public boolean hasGeoLocation()
The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
Returns
Type | Description |
boolean | Whether the geoLocation field is set.
|
hasPayload()
public 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
Type | Description |
boolean | Whether the payload field is set.
|
hasSentimentAnalysisRequestConfig()
public 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
Type | Description |
boolean | Whether the sentimentAnalysisRequestConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static QueryParameters.Builder newBuilder()
Returns
newBuilder(QueryParameters prototype)
public static QueryParameters.Builder newBuilder(QueryParameters prototype)
Parameter
Returns
newBuilderForType()
public QueryParameters.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected QueryParameters.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static QueryParameters parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static QueryParameters parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static QueryParameters parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QueryParameters parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static QueryParameters parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueryParameters parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static QueryParameters parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static QueryParameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static QueryParameters parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static QueryParameters parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static QueryParameters parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QueryParameters parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<QueryParameters> parser()
Returns
toBuilder()
public QueryParameters.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions