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
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, unknownFields
memoizedSize
memoizedHashCode
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, 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 final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 QueryParametersOrBuilder
public 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 QueryParametersOrBuilder
public boolean hasGeoLocation()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
hasGeoLocation
in interface QueryParametersOrBuilder
public LatLng getGeoLocation()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
getGeoLocation
in interface QueryParametersOrBuilder
public LatLngOrBuilder getGeoLocationOrBuilder()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
getGeoLocationOrBuilder
in interface QueryParametersOrBuilder
public java.util.List<Context> getContextsList()
Optional. 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 java.util.List<? extends ContextOrBuilder> getContextsOrBuilderList()
Optional. 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()
Optional. 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)
Optional. 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)
Optional. 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()
Optional. 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 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.v2.SessionEntityType session_entity_types = 5;
getSessionEntityTypesList
in interface QueryParametersOrBuilder
public 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.v2.SessionEntityType session_entity_types = 5;
getSessionEntityTypesOrBuilderList
in interface QueryParametersOrBuilder
public 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.v2.SessionEntityType session_entity_types = 5;
getSessionEntityTypesCount
in interface QueryParametersOrBuilder
public 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.v2.SessionEntityType session_entity_types = 5;
getSessionEntityTypes
in interface QueryParametersOrBuilder
public 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.v2.SessionEntityType session_entity_types = 5;
getSessionEntityTypesOrBuilder
in interface QueryParametersOrBuilder
public 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 QueryParametersOrBuilder
public 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 QueryParametersOrBuilder
public 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 QueryParametersOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.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(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static QueryParameters parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static QueryParameters parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static QueryParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static QueryParameters parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static QueryParameters parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static QueryParameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.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