public final class QueryParameters extends com.google.protobuf.GeneratedMessageV3 implements QueryParametersOrBuilder
Represents the parameters of the conversational query.Protobuf type
google.cloud.dialogflow.v2beta1.QueryParameters| Modifier and Type | Class and Description |
|---|---|
static class |
QueryParameters.Builder
Represents the parameters of the conversational query.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CONTEXTS_FIELD_NUMBER |
static int |
GEO_LOCATION_FIELD_NUMBER |
static int |
KNOWLEDGE_BASE_NAMES_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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Context |
getContexts(int index)
Optional.
|
int |
getContextsCount()
Optional.
|
List<Context> |
getContextsList()
Optional.
|
ContextOrBuilder |
getContextsOrBuilder(int index)
Optional.
|
List<? extends ContextOrBuilder> |
getContextsOrBuilderList()
Optional.
|
static QueryParameters |
getDefaultInstance() |
QueryParameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.type.LatLng |
getGeoLocation()
Optional.
|
com.google.type.LatLngOrBuilder |
getGeoLocationOrBuilder()
Optional.
|
String |
getKnowledgeBaseNames(int index)
Optional.
|
com.google.protobuf.ByteString |
getKnowledgeBaseNamesBytes(int index)
Optional.
|
int |
getKnowledgeBaseNamesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getKnowledgeBaseNamesList()
Optional.
|
com.google.protobuf.Parser<QueryParameters> |
getParserForType() |
com.google.protobuf.Struct |
getPayload()
Optional.
|
com.google.protobuf.StructOrBuilder |
getPayloadOrBuilder()
Optional.
|
boolean |
getResetContexts()
Optional.
|
SentimentAnalysisRequestConfig |
getSentimentAnalysisRequestConfig()
Optional.
|
SentimentAnalysisRequestConfigOrBuilder |
getSentimentAnalysisRequestConfigOrBuilder()
Optional.
|
int |
getSerializedSize() |
SessionEntityType |
getSessionEntityTypes(int index)
Optional.
|
int |
getSessionEntityTypesCount()
Optional.
|
List<SessionEntityType> |
getSessionEntityTypesList()
Optional.
|
SessionEntityTypeOrBuilder |
getSessionEntityTypesOrBuilder(int index)
Optional.
|
List<? extends SessionEntityTypeOrBuilder> |
getSessionEntityTypesOrBuilderList()
Optional.
|
String |
getTimeZone()
Optional.
|
com.google.protobuf.ByteString |
getTimeZoneBytes()
Optional.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasGeoLocation()
Optional.
|
int |
hashCode() |
boolean |
hasPayload()
Optional.
|
boolean |
hasSentimentAnalysisRequestConfig()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static QueryParameters.Builder |
newBuilder() |
static QueryParameters.Builder |
newBuilder(QueryParameters prototype) |
QueryParameters.Builder |
newBuilderForType() |
protected QueryParameters.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static QueryParameters |
parseDelimitedFrom(InputStream input) |
static QueryParameters |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(byte[] data) |
static QueryParameters |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(ByteBuffer data) |
static QueryParameters |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(com.google.protobuf.ByteString data) |
static QueryParameters |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QueryParameters |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryParameters |
parseFrom(InputStream input) |
static QueryParameters |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QueryParameters> |
parser() |
QueryParameters.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 KNOWLEDGE_BASE_NAMES_FIELD_NUMBER
public static final int SENTIMENT_ANALYSIS_REQUEST_CONFIG_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getTimeZone()
Optional. 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 QueryParametersOrBuilderpublic com.google.protobuf.ByteString getTimeZoneBytes()
Optional. 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 QueryParametersOrBuilderpublic boolean hasGeoLocation()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;hasGeoLocation in interface QueryParametersOrBuilderpublic com.google.type.LatLng getGeoLocation()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;getGeoLocation in interface QueryParametersOrBuilderpublic com.google.type.LatLngOrBuilder getGeoLocationOrBuilder()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;getGeoLocationOrBuilder in interface QueryParametersOrBuilderpublic List<Context> getContextsList()
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;getContextsList in interface QueryParametersOrBuilderpublic List<? extends ContextOrBuilder> getContextsOrBuilderList()
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;getContextsOrBuilderList in interface QueryParametersOrBuilderpublic int getContextsCount()
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;getContextsCount in interface QueryParametersOrBuilderpublic Context getContexts(int index)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;getContexts in interface QueryParametersOrBuilderpublic ContextOrBuilder getContextsOrBuilder(int index)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2beta1.Context contexts = 3;getContextsOrBuilder in interface QueryParametersOrBuilderpublic boolean getResetContexts()
Optional. Specifies whether to delete all contexts in the current session before the new ones are activated.
bool reset_contexts = 4;getResetContexts in interface QueryParametersOrBuilderpublic List<SessionEntityType> getSessionEntityTypesList()
Optional. The collection of session entity types to replace or extend developer entities with for this query only. The entity synonyms apply to all languages.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;
getSessionEntityTypesList in interface QueryParametersOrBuilderpublic List<? extends SessionEntityTypeOrBuilder> getSessionEntityTypesOrBuilderList()
Optional. The collection of session entity types to replace or extend developer entities with for this query only. The entity synonyms apply to all languages.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;
getSessionEntityTypesOrBuilderList in interface QueryParametersOrBuilderpublic int getSessionEntityTypesCount()
Optional. The collection of session entity types to replace or extend developer entities with for this query only. The entity synonyms apply to all languages.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;
getSessionEntityTypesCount in interface QueryParametersOrBuilderpublic SessionEntityType getSessionEntityTypes(int index)
Optional. The collection of session entity types to replace or extend developer entities with for this query only. The entity synonyms apply to all languages.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;
getSessionEntityTypes in interface QueryParametersOrBuilderpublic SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder(int index)
Optional. The collection of session entity types to replace or extend developer entities with for this query only. The entity synonyms apply to all languages.
repeated .google.cloud.dialogflow.v2beta1.SessionEntityType session_entity_types = 5;
getSessionEntityTypesOrBuilder in interface QueryParametersOrBuilderpublic boolean hasPayload()
Optional. This field can be used to pass custom data into the webhook associated with the agent. Arbitrary JSON objects are supported.
.google.protobuf.Struct payload = 6;hasPayload in interface QueryParametersOrBuilderpublic com.google.protobuf.Struct getPayload()
Optional. This field can be used to pass custom data into the webhook associated with the agent. Arbitrary JSON objects are supported.
.google.protobuf.Struct payload = 6;getPayload in interface QueryParametersOrBuilderpublic com.google.protobuf.StructOrBuilder getPayloadOrBuilder()
Optional. This field can be used to pass custom data into the webhook associated with the agent. Arbitrary JSON objects are supported.
.google.protobuf.Struct payload = 6;getPayloadOrBuilder in interface QueryParametersOrBuilderpublic com.google.protobuf.ProtocolStringList getKnowledgeBaseNamesList()
Optional. 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>`. Note: This field is `repeated` for forward compatibility, currently only the first one is supported, we may return an error if multiple KnowledgeBases are specified.
repeated string knowledge_base_names = 12;getKnowledgeBaseNamesList in interface QueryParametersOrBuilderpublic int getKnowledgeBaseNamesCount()
Optional. 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>`. Note: This field is `repeated` for forward compatibility, currently only the first one is supported, we may return an error if multiple KnowledgeBases are specified.
repeated string knowledge_base_names = 12;getKnowledgeBaseNamesCount in interface QueryParametersOrBuilderpublic String getKnowledgeBaseNames(int index)
Optional. 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>`. Note: This field is `repeated` for forward compatibility, currently only the first one is supported, we may return an error if multiple KnowledgeBases are specified.
repeated string knowledge_base_names = 12;getKnowledgeBaseNames in interface QueryParametersOrBuilderpublic com.google.protobuf.ByteString getKnowledgeBaseNamesBytes(int index)
Optional. 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>`. Note: This field is `repeated` for forward compatibility, currently only the first one is supported, we may return an error if multiple KnowledgeBases are specified.
repeated string knowledge_base_names = 12;getKnowledgeBaseNamesBytes in interface QueryParametersOrBuilderpublic boolean hasSentimentAnalysisRequestConfig()
Optional. Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Enterprise Edition agents.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
hasSentimentAnalysisRequestConfig in interface QueryParametersOrBuilderpublic SentimentAnalysisRequestConfig getSentimentAnalysisRequestConfig()
Optional. Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Enterprise Edition agents.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
getSentimentAnalysisRequestConfig in interface QueryParametersOrBuilderpublic SentimentAnalysisRequestConfigOrBuilder getSentimentAnalysisRequestConfigOrBuilder()
Optional. Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Enterprise Edition agents.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10;
getSentimentAnalysisRequestConfigOrBuilder in interface QueryParametersOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static QueryParameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(InputStream input) throws IOException
IOExceptionpublic static QueryParameters parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QueryParameters parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static QueryParameters parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QueryParameters parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static QueryParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic QueryParameters.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QueryParameters.Builder newBuilder()
public static QueryParameters.Builder newBuilder(QueryParameters prototype)
public QueryParameters.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QueryParameters.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QueryParameters getDefaultInstance()
public static com.google.protobuf.Parser<QueryParameters> parser()
public com.google.protobuf.Parser<QueryParameters> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QueryParameters getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.