Class QueryParameters (4.4.0)

public final class QueryParameters extends GeneratedMessageV3 implements QueryParametersOrBuilder

Represents the parameters of the conversational query.

Protobuf type google.cloud.dialogflow.v2.QueryParameters

Fields

CONTEXTS_FIELD_NUMBER

public static final int CONTEXTS_FIELD_NUMBER
Field Value
TypeDescription
int

GEO_LOCATION_FIELD_NUMBER

public static final int GEO_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

PAYLOAD_FIELD_NUMBER

public static final int PAYLOAD_FIELD_NUMBER
Field Value
TypeDescription
int

RESET_CONTEXTS_FIELD_NUMBER

public static final int RESET_CONTEXTS_FIELD_NUMBER
Field Value
TypeDescription
int

SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER

public static final int SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

SESSION_ENTITY_TYPES_FIELD_NUMBER

public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
TypeDescription
int

WEBHOOK_HEADERS_FIELD_NUMBER

public static final int WEBHOOK_HEADERS_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

containsWebhookHeaders(String key)

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 the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the 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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.v2.Context contexts = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context

getContextsCount()

public int getContextsCount()

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

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

Returns
TypeDescription
int

getContextsList()

public List<Context> getContextsList()

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

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

Returns
TypeDescription
List<Context>

getContextsOrBuilder(int index)

public ContextOrBuilder getContextsOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ContextOrBuilder

getContextsOrBuilderList()

public List<? extends ContextOrBuilder> getContextsOrBuilderList()

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

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

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

getDefaultInstance()

public static QueryParameters getDefaultInstance()
Returns
TypeDescription
QueryParameters

getDefaultInstanceForType()

public QueryParameters getDefaultInstanceForType()
Returns
TypeDescription
QueryParameters

getDescriptor()

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

getGeoLocation()

public 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 LatLngOrBuilder getGeoLocationOrBuilder()

The geo location of this conversational query.

.google.type.LatLng geo_location = 2;

Returns
TypeDescription
com.google.type.LatLngOrBuilder

getParserForType()

public Parser<QueryParameters> getParserForType()
Returns
TypeDescription
Parser<QueryParameters>
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
TypeDescription
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
TypeDescription
StructOrBuilder

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
TypeDescription
boolean

The resetContexts.

getSentimentAnalysisRequestConfig()

public SentimentAnalysisRequestConfig getSentimentAnalysisRequestConfig()

Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed.

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

Returns
TypeDescription
SentimentAnalysisRequestConfig

The sentimentAnalysisRequestConfig.

getSentimentAnalysisRequestConfigOrBuilder()

public SentimentAnalysisRequestConfigOrBuilder getSentimentAnalysisRequestConfigOrBuilder()

Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed.

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

Returns
TypeDescription
SentimentAnalysisRequestConfigOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.v2.SessionEntityType session_entity_types = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionEntityType

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.v2.SessionEntityType session_entity_types = 5;

Returns
TypeDescription
int

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.v2.SessionEntityType session_entity_types = 5;

Returns
TypeDescription
List<SessionEntityType>

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.v2.SessionEntityType session_entity_types = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
SessionEntityTypeOrBuilder

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.v2.SessionEntityType session_entity_types = 5;

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

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
TypeDescription
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
TypeDescription
ByteString

The bytes for timeZone.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWebhookHeaders()

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

getWebhookHeadersCount()

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 the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the 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 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 the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the 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 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 the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the 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 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 the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the 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 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 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 boolean hasSentimentAnalysisRequestConfig()

Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed.

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

Returns
TypeDescription
boolean

Whether the sentimentAnalysisRequestConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static QueryParameters.Builder newBuilder()
Returns
TypeDescription
QueryParameters.Builder

newBuilder(QueryParameters prototype)

public static QueryParameters.Builder newBuilder(QueryParameters prototype)
Parameter
NameDescription
prototypeQueryParameters
Returns
TypeDescription
QueryParameters.Builder

newBuilderForType()

public QueryParameters.Builder newBuilderForType()
Returns
TypeDescription
QueryParameters.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueryParameters.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QueryParameters.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static QueryParameters parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryParameters parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QueryParameters parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueryParameters parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueryParameters parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueryParameters parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueryParameters parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryParameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QueryParameters parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryParameters parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QueryParameters parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueryParameters parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QueryParameters> parser()
Returns
TypeDescription
Parser<QueryParameters>

toBuilder()

public QueryParameters.Builder toBuilder()
Returns
TypeDescription
QueryParameters.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException