public final class QueryParameters extends GeneratedMessageV3 implements QueryParametersOrBuilder
Represents the parameters of the conversational query.Protobuf type
google.cloud.dialogflow.v2.QueryParameters
Modifier and Type | Class and Description |
---|---|
static class |
QueryParameters.Builder
Represents the parameters of the conversational query.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CONTEXTS_FIELD_NUMBER |
static int |
GEO_LOCATION_FIELD_NUMBER |
static int |
PAYLOAD_FIELD_NUMBER |
static int |
RESET_CONTEXTS_FIELD_NUMBER |
static int |
SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER |
static int |
SESSION_ENTITY_TYPES_FIELD_NUMBER |
static int |
TIME_ZONE_FIELD_NUMBER |
static int |
WEBHOOK_HEADERS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsWebhookHeaders(String key)
This field can be used to pass HTTP headers for a webhook
call.
|
boolean |
equals(Object obj) |
Context |
getContexts(int index)
The collection of contexts to be activated before this query is
executed.
|
int |
getContextsCount()
The collection of contexts to be activated before this query is
executed.
|
List<Context> |
getContextsList()
The collection of contexts to be activated before this query is
executed.
|
ContextOrBuilder |
getContextsOrBuilder(int index)
The collection of contexts to be activated before this query is
executed.
|
List<? extends ContextOrBuilder> |
getContextsOrBuilderList()
The collection of contexts to be activated before this query is
executed.
|
static QueryParameters |
getDefaultInstance() |
QueryParameters |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
com.google.type.LatLng |
getGeoLocation()
The geo location of this conversational query.
|
com.google.type.LatLngOrBuilder |
getGeoLocationOrBuilder()
The geo location of this conversational query.
|
Parser<QueryParameters> |
getParserForType() |
Struct |
getPayload()
This field can be used to pass custom data to your webhook.
|
StructOrBuilder |
getPayloadOrBuilder()
This field can be used to pass custom data to your webhook.
|
boolean |
getResetContexts()
Specifies whether to delete all contexts in the current session
before the new ones are activated.
|
SentimentAnalysisRequestConfig |
getSentimentAnalysisRequestConfig()
Configures the type of sentiment analysis to perform.
|
SentimentAnalysisRequestConfigOrBuilder |
getSentimentAnalysisRequestConfigOrBuilder()
Configures the type of sentiment analysis to perform.
|
int |
getSerializedSize() |
SessionEntityType |
getSessionEntityTypes(int index)
Additional session entity types to replace or extend developer
entity types with.
|
int |
getSessionEntityTypesCount()
Additional session entity types to replace or extend developer
entity types with.
|
List<SessionEntityType> |
getSessionEntityTypesList()
Additional session entity types to replace or extend developer
entity types with.
|
SessionEntityTypeOrBuilder |
getSessionEntityTypesOrBuilder(int index)
Additional session entity types to replace or extend developer
entity types with.
|
List<? extends SessionEntityTypeOrBuilder> |
getSessionEntityTypesOrBuilderList()
Additional session entity types to replace or extend developer
entity types with.
|
String |
getTimeZone()
The time zone of this conversational query from the
[time zone database](https://www.iana.org/time-zones), e.g.,
America/New_York, Europe/Paris.
|
ByteString |
getTimeZoneBytes()
The time zone of this conversational query from the
[time zone database](https://www.iana.org/time-zones), e.g.,
America/New_York, Europe/Paris.
|
UnknownFieldSet |
getUnknownFields() |
Map<String,String> |
getWebhookHeaders()
Deprecated.
|
int |
getWebhookHeadersCount()
This field can be used to pass HTTP headers for a webhook
call.
|
Map<String,String> |
getWebhookHeadersMap()
This field can be used to pass HTTP headers for a webhook
call.
|
String |
getWebhookHeadersOrDefault(String key,
String defaultValue)
This field can be used to pass HTTP headers for a webhook
call.
|
String |
getWebhookHeadersOrThrow(String key)
This field can be used to pass HTTP headers for a webhook
call.
|
boolean |
hasGeoLocation()
The geo location of this conversational query.
|
int |
hashCode() |
boolean |
hasPayload()
This field can be used to pass custom data to your webhook.
|
boolean |
hasSentimentAnalysisRequestConfig()
Configures the type of sentiment analysis to perform.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static QueryParameters.Builder |
newBuilder() |
static QueryParameters.Builder |
newBuilder(QueryParameters prototype) |
QueryParameters.Builder |
newBuilderForType() |
protected QueryParameters.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static QueryParameters |
parseDelimitedFrom(InputStream input) |
static QueryParameters |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(byte[] data) |
static QueryParameters |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(ByteBuffer data) |
static QueryParameters |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(ByteString data) |
static QueryParameters |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(CodedInputStream input) |
static QueryParameters |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(InputStream input) |
static QueryParameters |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<QueryParameters> |
parser() |
QueryParameters.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TIME_ZONE_FIELD_NUMBER
public static final int GEO_LOCATION_FIELD_NUMBER
public static final int CONTEXTS_FIELD_NUMBER
public static final int RESET_CONTEXTS_FIELD_NUMBER
public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
public static final int SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER
public static final int WEBHOOK_HEADERS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getTimeZone()
The time zone of this conversational query from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.
string time_zone = 1;
getTimeZone
in interface QueryParametersOrBuilder
public ByteString getTimeZoneBytes()
The time zone of this conversational query from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.
string time_zone = 1;
getTimeZoneBytes
in interface QueryParametersOrBuilder
public boolean hasGeoLocation()
The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
hasGeoLocation
in interface QueryParametersOrBuilder
public com.google.type.LatLng getGeoLocation()
The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
getGeoLocation
in interface QueryParametersOrBuilder
public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder()
The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
getGeoLocationOrBuilder
in interface QueryParametersOrBuilder
public List<Context> getContextsList()
The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
getContextsList
in interface QueryParametersOrBuilder
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;
getContextsOrBuilderList
in interface QueryParametersOrBuilder
public int getContextsCount()
The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
getContextsCount
in interface QueryParametersOrBuilder
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;
getContexts
in interface QueryParametersOrBuilder
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;
getContextsOrBuilder
in interface QueryParametersOrBuilder
public boolean getResetContexts()
Specifies whether to delete all contexts in the current session before the new ones are activated.
bool reset_contexts = 4;
getResetContexts
in interface QueryParametersOrBuilder
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;
getSessionEntityTypesList
in interface QueryParametersOrBuilder
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;
getSessionEntityTypesOrBuilderList
in interface QueryParametersOrBuilder
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;
getSessionEntityTypesCount
in interface QueryParametersOrBuilder
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;
getSessionEntityTypes
in interface QueryParametersOrBuilder
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;
getSessionEntityTypesOrBuilder
in interface QueryParametersOrBuilder
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;
hasPayload
in interface QueryParametersOrBuilder
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;
getPayload
in interface QueryParametersOrBuilder
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;
getPayloadOrBuilder
in interface QueryParametersOrBuilder
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;
hasSentimentAnalysisRequestConfig
in interface QueryParametersOrBuilder
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;
getSentimentAnalysisRequestConfig
in interface QueryParametersOrBuilder
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;
getSentimentAnalysisRequestConfigOrBuilder
in interface QueryParametersOrBuilder
public int getWebhookHeadersCount()
QueryParametersOrBuilder
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;
getWebhookHeadersCount
in interface QueryParametersOrBuilder
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;
containsWebhookHeaders
in interface QueryParametersOrBuilder
@Deprecated public Map<String,String> getWebhookHeaders()
getWebhookHeadersMap()
instead.getWebhookHeaders
in interface QueryParametersOrBuilder
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;
getWebhookHeadersMap
in interface QueryParametersOrBuilder
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;
getWebhookHeadersOrDefault
in interface QueryParametersOrBuilder
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;
getWebhookHeadersOrThrow
in interface QueryParametersOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static QueryParameters parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static QueryParameters parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static QueryParameters parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static QueryParameters parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static QueryParameters parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static QueryParameters parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static QueryParameters parseFrom(InputStream input) throws IOException
IOException
public static QueryParameters parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static QueryParameters parseDelimitedFrom(InputStream input) throws IOException
IOException
public static QueryParameters parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static QueryParameters parseFrom(CodedInputStream input) throws IOException
IOException
public static QueryParameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public QueryParameters.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static QueryParameters.Builder newBuilder()
public static QueryParameters.Builder newBuilder(QueryParameters prototype)
public QueryParameters.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected QueryParameters.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static QueryParameters getDefaultInstance()
public static Parser<QueryParameters> parser()
public Parser<QueryParameters> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public QueryParameters getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.