public static final class QueryParameters.Builder extends GeneratedMessageV3.Builder<QueryParameters.Builder> implements QueryParametersOrBuilder
Represents the parameters of the conversational query.Protobuf type
google.cloud.dialogflow.v2.QueryParameters
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public QueryParameters build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public QueryParameters buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public QueryParameters.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<QueryParameters.Builder>
public QueryParameters.Builder mergeFrom(QueryParameters other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public QueryParameters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<QueryParameters.Builder>
java.io.IOException
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 QueryParameters.Builder setTimeZone(java.lang.String value)
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;
public QueryParameters.Builder clearTimeZone()
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;
public QueryParameters.Builder setTimeZoneBytes(ByteString value)
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;
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 QueryParameters.Builder setGeoLocation(LatLng value)
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
public QueryParameters.Builder setGeoLocation(LatLng.Builder builderForValue)
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
public QueryParameters.Builder mergeGeoLocation(LatLng value)
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
public QueryParameters.Builder clearGeoLocation()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
public LatLng.Builder getGeoLocationBuilder()
Optional. The geo location of this conversational query.
.google.type.LatLng geo_location = 2;
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 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 QueryParameters.Builder setContexts(int index, Context value)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder setContexts(int index, Context.Builder builderForValue)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder addContexts(Context value)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder addContexts(int index, Context value)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder addContexts(Context.Builder builderForValue)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder addContexts(int index, Context.Builder builderForValue)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder addAllContexts(java.lang.Iterable<? extends Context> values)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder clearContexts()
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public QueryParameters.Builder removeContexts(int index)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public Context.Builder getContextsBuilder(int index)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
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 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 Context.Builder addContextsBuilder()
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public Context.Builder addContextsBuilder(int index)
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
public java.util.List<Context.Builder> getContextsBuilderList()
Optional. The collection of contexts to be activated before this query is executed.
repeated .google.cloud.dialogflow.v2.Context contexts = 3;
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 QueryParameters.Builder setResetContexts(boolean value)
Optional. Specifies whether to delete all contexts in the current session before the new ones are activated.
bool reset_contexts = 4;
public QueryParameters.Builder clearResetContexts()
Optional. Specifies whether to delete all contexts in the current session before the new ones are activated.
bool reset_contexts = 4;
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 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 QueryParameters.Builder setSessionEntityTypes(int index, SessionEntityType value)
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;
public QueryParameters.Builder setSessionEntityTypes(int index, SessionEntityType.Builder builderForValue)
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;
public QueryParameters.Builder addSessionEntityTypes(SessionEntityType value)
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;
public QueryParameters.Builder addSessionEntityTypes(int index, SessionEntityType value)
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;
public QueryParameters.Builder addSessionEntityTypes(SessionEntityType.Builder builderForValue)
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;
public QueryParameters.Builder addSessionEntityTypes(int index, SessionEntityType.Builder builderForValue)
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;
public QueryParameters.Builder addAllSessionEntityTypes(java.lang.Iterable<? extends SessionEntityType> values)
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;
public QueryParameters.Builder clearSessionEntityTypes()
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;
public QueryParameters.Builder removeSessionEntityTypes(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;
public SessionEntityType.Builder getSessionEntityTypesBuilder(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;
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 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 SessionEntityType.Builder addSessionEntityTypesBuilder()
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;
public SessionEntityType.Builder addSessionEntityTypesBuilder(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;
public java.util.List<SessionEntityType.Builder> getSessionEntityTypesBuilderList()
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;
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 QueryParameters.Builder setPayload(Struct value)
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;
public QueryParameters.Builder setPayload(Struct.Builder builderForValue)
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;
public QueryParameters.Builder mergePayload(Struct value)
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;
public QueryParameters.Builder clearPayload()
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;
public Struct.Builder getPayloadBuilder()
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;
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 QueryParameters.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<QueryParameters.Builder>
public final QueryParameters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<QueryParameters.Builder>