public final class QueryParameters extends 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.
|
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| 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 |
SESSION_ENTITY_TYPES_FIELD_NUMBER |
static int |
TIME_ZONE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic 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 final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.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 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 LatLng getGeoLocation()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;getGeoLocation in interface QueryParametersOrBuilderpublic LatLngOrBuilder getGeoLocationOrBuilder()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;getGeoLocationOrBuilder in interface QueryParametersOrBuilderpublic java.util.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 java.util.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 java.util.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 java.util.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 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 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 final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static QueryParameters parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static QueryParameters parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryParameters parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QueryParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryParameters parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static QueryParameters parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static QueryParameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic QueryParameters.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static QueryParameters.Builder newBuilder()
public static QueryParameters.Builder newBuilder(QueryParameters prototype)
public QueryParameters.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected QueryParameters.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static QueryParameters getDefaultInstance()
public static Parser<QueryParameters> parser()
public Parser<QueryParameters> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public QueryParameters getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder