All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.cx.v3beta1.QueryParameters Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dialogflow/cx/v3beta1/session.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.cx.v3beta1;

/**
 *
 *
 * 
 * Represents the parameters of a conversational query.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.QueryParameters} */ public final class QueryParameters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.QueryParameters) QueryParametersOrBuilder { private static final long serialVersionUID = 0L; // Use QueryParameters.newBuilder() to construct. private QueryParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryParameters() { timeZone_ = ""; sessionEntityTypes_ = java.util.Collections.emptyList(); currentPage_ = ""; flowVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); currentPlaybook_ = ""; channel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryParameters(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_QueryParameters_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 10: return internalGetWebhookHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_QueryParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.class, com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder.class); } private int bitField0_; public static final int TIME_ZONE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object timeZone_ = ""; /** * * *
   * 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 the agent is
   * used.
   * 
* * string time_zone = 1; * * @return The timeZone. */ @java.lang.Override public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeZone_ = s; return s; } } /** * * *
   * 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 the agent is
   * used.
   * 
* * string time_zone = 1; * * @return The bytes for timeZone. */ @java.lang.Override public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeZone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GEO_LOCATION_FIELD_NUMBER = 2; private com.google.type.LatLng geoLocation_; /** * * *
   * The geo location of this conversational query.
   * 
* * .google.type.LatLng geo_location = 2; * * @return Whether the geoLocation field is set. */ @java.lang.Override public boolean hasGeoLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The geo location of this conversational query.
   * 
* * .google.type.LatLng geo_location = 2; * * @return The geoLocation. */ @java.lang.Override public com.google.type.LatLng getGeoLocation() { return geoLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : geoLocation_; } /** * * *
   * The geo location of this conversational query.
   * 
* * .google.type.LatLng geo_location = 2; */ @java.lang.Override public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() { return geoLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : geoLocation_; } public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List sessionEntityTypes_; /** * * *
   * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ @java.lang.Override public java.util.List getSessionEntityTypesList() { return sessionEntityTypes_; } /** * * *
   * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ @java.lang.Override public java.util.List getSessionEntityTypesOrBuilderList() { return sessionEntityTypes_; } /** * * *
   * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ @java.lang.Override public int getSessionEntityTypesCount() { return sessionEntityTypes_.size(); } /** * * *
   * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntityTypes(int index) { return sessionEntityTypes_.get(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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder(int index) { return sessionEntityTypes_.get(index); } public static final int PAYLOAD_FIELD_NUMBER = 4; private com.google.protobuf.Struct payload_; /** * * *
   * This field can be used to pass custom data into the webhook associated with
   * the agent. Arbitrary JSON objects are supported.
   * Some integrations that query a Dialogflow agent may provide additional
   * information in the payload.
   * In particular, for the Dialogflow Phone Gateway integration, this field has
   * the form:
   * ```
   * {
   *  "telephony": {
   *    "caller_id": "+18558363987"
   *  }
   * }
   * ```
   * 
* * .google.protobuf.Struct payload = 4; * * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * This field can be used to pass custom data into the webhook associated with
   * the agent. Arbitrary JSON objects are supported.
   * Some integrations that query a Dialogflow agent may provide additional
   * information in the payload.
   * In particular, for the Dialogflow Phone Gateway integration, this field has
   * the form:
   * ```
   * {
   *  "telephony": {
   *    "caller_id": "+18558363987"
   *  }
   * }
   * ```
   * 
* * .google.protobuf.Struct payload = 4; * * @return The payload. */ @java.lang.Override public com.google.protobuf.Struct getPayload() { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } /** * * *
   * This field can be used to pass custom data into the webhook associated with
   * the agent. Arbitrary JSON objects are supported.
   * Some integrations that query a Dialogflow agent may provide additional
   * information in the payload.
   * In particular, for the Dialogflow Phone Gateway integration, this field has
   * the form:
   * ```
   * {
   *  "telephony": {
   *    "caller_id": "+18558363987"
   *  }
   * }
   * ```
   * 
* * .google.protobuf.Struct payload = 4; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int PARAMETERS_FIELD_NUMBER = 5; private com.google.protobuf.Struct parameters_; /** * * *
   * Additional parameters to be put into [session
   * parameters][SessionInfo.parameters]. To remove a
   * parameter from the session, clients should explicitly set the parameter
   * value to null.
   *
   * You can reference the session parameters in the agent with the following
   * format: $session.params.parameter-id.
   *
   * Depending on your protocol or client library language, this is a
   * map, associative array, symbol table, dictionary, or JSON object
   * composed of a collection of (MapKey, MapValue) pairs:
   *
   * * MapKey type: string
   * * MapKey value: parameter name
   * * MapValue type: If parameter's entity type is a composite entity then use
   * map, otherwise, depending on the parameter value type, it could be one of
   * string, number, boolean, null, list or map.
   * * MapValue value: If parameter's entity type is a composite entity then use
   * map from composite entity property names to property values, otherwise,
   * use parameter value.
   * 
* * .google.protobuf.Struct parameters = 5; * * @return Whether the parameters field is set. */ @java.lang.Override public boolean hasParameters() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Additional parameters to be put into [session
   * parameters][SessionInfo.parameters]. To remove a
   * parameter from the session, clients should explicitly set the parameter
   * value to null.
   *
   * You can reference the session parameters in the agent with the following
   * format: $session.params.parameter-id.
   *
   * Depending on your protocol or client library language, this is a
   * map, associative array, symbol table, dictionary, or JSON object
   * composed of a collection of (MapKey, MapValue) pairs:
   *
   * * MapKey type: string
   * * MapKey value: parameter name
   * * MapValue type: If parameter's entity type is a composite entity then use
   * map, otherwise, depending on the parameter value type, it could be one of
   * string, number, boolean, null, list or map.
   * * MapValue value: If parameter's entity type is a composite entity then use
   * map from composite entity property names to property values, otherwise,
   * use parameter value.
   * 
* * .google.protobuf.Struct parameters = 5; * * @return The parameters. */ @java.lang.Override public com.google.protobuf.Struct getParameters() { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } /** * * *
   * Additional parameters to be put into [session
   * parameters][SessionInfo.parameters]. To remove a
   * parameter from the session, clients should explicitly set the parameter
   * value to null.
   *
   * You can reference the session parameters in the agent with the following
   * format: $session.params.parameter-id.
   *
   * Depending on your protocol or client library language, this is a
   * map, associative array, symbol table, dictionary, or JSON object
   * composed of a collection of (MapKey, MapValue) pairs:
   *
   * * MapKey type: string
   * * MapKey value: parameter name
   * * MapValue type: If parameter's entity type is a composite entity then use
   * map, otherwise, depending on the parameter value type, it could be one of
   * string, number, boolean, null, list or map.
   * * MapValue value: If parameter's entity type is a composite entity then use
   * map from composite entity property names to property values, otherwise,
   * use parameter value.
   * 
* * .google.protobuf.Struct parameters = 5; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } public static final int CURRENT_PAGE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object currentPage_ = ""; /** * * *
   * The unique identifier of the
   * [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
   * page][QueryResult.current_page] in the session.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
   *
   *  If `current_page` is specified, the previous state of the session will be
   *  ignored by Dialogflow, including the [previous
   *  page][QueryResult.current_page] and the [previous session
   *  parameters][QueryResult.parameters].
   *  In most cases,
   *  [current_page][google.cloud.dialogflow.cx.v3beta1.QueryParameters.current_page]
   *  and
   *  [parameters][google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters]
   *  should be configured together to direct a session to a specific state.
   * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } * * @return The currentPage. */ @java.lang.Override public java.lang.String getCurrentPage() { java.lang.Object ref = currentPage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentPage_ = s; return s; } } /** * * *
   * The unique identifier of the
   * [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
   * page][QueryResult.current_page] in the session.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
   *
   *  If `current_page` is specified, the previous state of the session will be
   *  ignored by Dialogflow, including the [previous
   *  page][QueryResult.current_page] and the [previous session
   *  parameters][QueryResult.parameters].
   *  In most cases,
   *  [current_page][google.cloud.dialogflow.cx.v3beta1.QueryParameters.current_page]
   *  and
   *  [parameters][google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters]
   *  should be configured together to direct a session to a specific state.
   * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for currentPage. */ @java.lang.Override public com.google.protobuf.ByteString getCurrentPageBytes() { java.lang.Object ref = currentPage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentPage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISABLE_WEBHOOK_FIELD_NUMBER = 7; private boolean disableWebhook_ = false; /** * * *
   * Whether to disable webhook calls for this request.
   * 
* * bool disable_webhook = 7; * * @return The disableWebhook. */ @java.lang.Override public boolean getDisableWebhook() { return disableWebhook_; } public static final int ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER = 8; private boolean analyzeQueryTextSentiment_ = false; /** * * *
   * Configures whether sentiment analysis should be performed. If not
   * provided, sentiment analysis is not performed.
   * 
* * bool analyze_query_text_sentiment = 8; * * @return The analyzeQueryTextSentiment. */ @java.lang.Override public boolean getAnalyzeQueryTextSentiment() { return analyzeQueryTextSentiment_; } public static final int WEBHOOK_HEADERS_FIELD_NUMBER = 10; private static final class WebhookHeadersDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_QueryParameters_WebhookHeadersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField webhookHeaders_; private com.google.protobuf.MapField internalGetWebhookHeaders() { if (webhookHeaders_ == null) { return com.google.protobuf.MapField.emptyMapField( WebhookHeadersDefaultEntryHolder.defaultEntry); } return webhookHeaders_; } public int getWebhookHeadersCount() { return internalGetWebhookHeaders().getMap().size(); } /** * * *
   * 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 Dialogflow web console. The headers defined
   * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public boolean containsWebhookHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWebhookHeaders().getMap().containsKey(key); } /** Use {@link #getWebhookHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWebhookHeaders() { return 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 Dialogflow web console. The headers defined
   * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public java.util.Map getWebhookHeadersMap() { return internalGetWebhookHeaders().getMap(); } /** * * *
   * 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 Dialogflow web console. The headers defined
   * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public /* nullable */ java.lang.String getWebhookHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebhookHeaders().getMap(); return map.containsKey(key) ? map.get(key) : 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 Dialogflow web console. The headers defined
   * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebhookHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int FLOW_VERSIONS_FIELD_NUMBER = 14; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList flowVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * A list of flow versions to override for the request.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
   *
   *  If version 1 of flow X is included in this list, the traffic of
   *  flow X will go through version 1 regardless of the version configuration
   *  in the environment. Each flow can have at most one version specified in
   *  this list.
   * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @return A list containing the flowVersions. */ public com.google.protobuf.ProtocolStringList getFlowVersionsList() { return flowVersions_; } /** * * *
   * A list of flow versions to override for the request.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
   *
   *  If version 1 of flow X is included in this list, the traffic of
   *  flow X will go through version 1 regardless of the version configuration
   *  in the environment. Each flow can have at most one version specified in
   *  this list.
   * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @return The count of flowVersions. */ public int getFlowVersionsCount() { return flowVersions_.size(); } /** * * *
   * A list of flow versions to override for the request.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
   *
   *  If version 1 of flow X is included in this list, the traffic of
   *  flow X will go through version 1 regardless of the version configuration
   *  in the environment. Each flow can have at most one version specified in
   *  this list.
   * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param index The index of the element to return. * @return The flowVersions at the given index. */ public java.lang.String getFlowVersions(int index) { return flowVersions_.get(index); } /** * * *
   * A list of flow versions to override for the request.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
   *
   *  If version 1 of flow X is included in this list, the traffic of
   *  flow X will go through version 1 regardless of the version configuration
   *  in the environment. Each flow can have at most one version specified in
   *  this list.
   * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param index The index of the value to return. * @return The bytes of the flowVersions at the given index. */ public com.google.protobuf.ByteString getFlowVersionsBytes(int index) { return flowVersions_.getByteString(index); } public static final int CURRENT_PLAYBOOK_FIELD_NUMBER = 19; @SuppressWarnings("serial") private volatile java.lang.Object currentPlaybook_ = ""; /** * * *
   * Optional. Start the session with the specified
   * [playbook][google.cloud.dialogflow.cx.v3beta1.Playbook]. You can only
   * specify the playbook at the beginning of the session. Otherwise, an error
   * will be thrown.
   *
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
   * 
* * * string current_playbook = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The currentPlaybook. */ @java.lang.Override public java.lang.String getCurrentPlaybook() { java.lang.Object ref = currentPlaybook_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentPlaybook_ = s; return s; } } /** * * *
   * Optional. Start the session with the specified
   * [playbook][google.cloud.dialogflow.cx.v3beta1.Playbook]. You can only
   * specify the playbook at the beginning of the session. Otherwise, an error
   * will be thrown.
   *
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
   * 
* * * string current_playbook = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for currentPlaybook. */ @java.lang.Override public com.google.protobuf.ByteString getCurrentPlaybookBytes() { java.lang.Object ref = currentPlaybook_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentPlaybook_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LLM_MODEL_SETTINGS_FIELD_NUMBER = 21; private com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llmModelSettings_; /** * * *
   * Optional. Use the specified LLM model settings for processing the request.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the llmModelSettings field is set. */ @java.lang.Override public boolean hasLlmModelSettings() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Optional. Use the specified LLM model settings for processing the request.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The llmModelSettings. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings getLlmModelSettings() { return llmModelSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.getDefaultInstance() : llmModelSettings_; } /** * * *
   * Optional. Use the specified LLM model settings for processing the request.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettingsOrBuilder getLlmModelSettingsOrBuilder() { return llmModelSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.getDefaultInstance() : llmModelSettings_; } public static final int CHANNEL_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object channel_ = ""; /** * * *
   * The channel which this query is for.
   *
   * If specified, only the
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage]
   * associated with the channel will be returned. If no
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] is
   * associated with the channel, it falls back to the
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
   * unspecified channel.
   *
   * If unspecified, the
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
   * unspecified channel will be returned.
   * 
* * string channel = 15; * * @return The channel. */ @java.lang.Override public java.lang.String getChannel() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } } /** * * *
   * The channel which this query is for.
   *
   * If specified, only the
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage]
   * associated with the channel will be returned. If no
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] is
   * associated with the channel, it falls back to the
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
   * unspecified channel.
   *
   * If unspecified, the
   * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
   * unspecified channel will be returned.
   * 
* * string channel = 15; * * @return The bytes for channel. */ @java.lang.Override public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SESSION_TTL_FIELD_NUMBER = 16; private com.google.protobuf.Duration sessionTtl_; /** * * *
   * Optional. Configure lifetime of the Dialogflow session.
   * By default, a Dialogflow session remains active and its data is stored for
   * 30 minutes after the last request is sent for the session.
   * This value should be no longer than 1 day.
   * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the sessionTtl field is set. */ @java.lang.Override public boolean hasSessionTtl() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Optional. Configure lifetime of the Dialogflow session.
   * By default, a Dialogflow session remains active and its data is stored for
   * 30 minutes after the last request is sent for the session.
   * This value should be no longer than 1 day.
   * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The sessionTtl. */ @java.lang.Override public com.google.protobuf.Duration getSessionTtl() { return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_; } /** * * *
   * Optional. Configure lifetime of the Dialogflow session.
   * By default, a Dialogflow session remains active and its data is stored for
   * 30 minutes after the last request is sent for the session.
   * This value should be no longer than 1 day.
   * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder() { return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_; } public static final int END_USER_METADATA_FIELD_NUMBER = 18; private com.google.protobuf.Struct endUserMetadata_; /** * * *
   * Optional. Information about the end-user to improve the relevance and
   * accuracy of generative answers.
   *
   * This will be interpreted and used by a language model, so, for good
   * results, the data should be self-descriptive, and in a simple structure.
   *
   * Example:
   *
   * ```json
   * {
   *   "subscription plan": "Business Premium Plus",
   *   "devices owned": [
   *     {"model": "Google Pixel 7"},
   *     {"model": "Google Pixel Tablet"}
   *   ]
   * }
   * ```
   * 
* * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the endUserMetadata field is set. */ @java.lang.Override public boolean hasEndUserMetadata() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Optional. Information about the end-user to improve the relevance and
   * accuracy of generative answers.
   *
   * This will be interpreted and used by a language model, so, for good
   * results, the data should be self-descriptive, and in a simple structure.
   *
   * Example:
   *
   * ```json
   * {
   *   "subscription plan": "Business Premium Plus",
   *   "devices owned": [
   *     {"model": "Google Pixel 7"},
   *     {"model": "Google Pixel Tablet"}
   *   ]
   * }
   * ```
   * 
* * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The endUserMetadata. */ @java.lang.Override public com.google.protobuf.Struct getEndUserMetadata() { return endUserMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : endUserMetadata_; } /** * * *
   * Optional. Information about the end-user to improve the relevance and
   * accuracy of generative answers.
   *
   * This will be interpreted and used by a language model, so, for good
   * results, the data should be self-descriptive, and in a simple structure.
   *
   * Example:
   *
   * ```json
   * {
   *   "subscription plan": "Business Premium Plus",
   *   "devices owned": [
   *     {"model": "Google Pixel 7"},
   *     {"model": "Google Pixel Tablet"}
   *   ]
   * }
   * ```
   * 
* * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.protobuf.StructOrBuilder getEndUserMetadataOrBuilder() { return endUserMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : endUserMetadata_; } public static final int SEARCH_CONFIG_FIELD_NUMBER = 20; private com.google.cloud.dialogflow.cx.v3beta1.SearchConfig searchConfig_; /** * * *
   * Optional. Search configuration for UCS search queries.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the searchConfig field is set. */ @java.lang.Override public boolean hasSearchConfig() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * Optional. Search configuration for UCS search queries.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The searchConfig. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SearchConfig getSearchConfig() { return searchConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.getDefaultInstance() : searchConfig_; } /** * * *
   * Optional. Search configuration for UCS search queries.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder getSearchConfigOrBuilder() { return searchConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.getDefaultInstance() : searchConfig_; } public static final int POPULATE_DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER = 25; private boolean populateDataStoreConnectionSignals_ = false; /** * * *
   * Optional. If set to true and data stores are involved in serving the
   * request then
   * DetectIntentResponse.query_result.data_store_connection_signals
   * will be filled with data that can help evaluations.
   * 
* * * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The populateDataStoreConnectionSignals. */ @java.lang.Override public boolean getPopulateDataStoreConnectionSignals() { return populateDataStoreConnectionSignals_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeZone_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getGeoLocation()); } for (int i = 0; i < sessionEntityTypes_.size(); i++) { output.writeMessage(3, sessionEntityTypes_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getPayload()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currentPage_); } if (disableWebhook_ != false) { output.writeBool(7, disableWebhook_); } if (analyzeQueryTextSentiment_ != false) { output.writeBool(8, analyzeQueryTextSentiment_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetWebhookHeaders(), WebhookHeadersDefaultEntryHolder.defaultEntry, 10); for (int i = 0; i < flowVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, flowVersions_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, channel_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(16, getSessionTtl()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(18, getEndUserMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPlaybook_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, currentPlaybook_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(20, getSearchConfig()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(21, getLlmModelSettings()); } if (populateDataStoreConnectionSignals_ != false) { output.writeBool(25, populateDataStoreConnectionSignals_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeZone_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGeoLocation()); } for (int i = 0; i < sessionEntityTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sessionEntityTypes_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPayload()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currentPage_); } if (disableWebhook_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, disableWebhook_); } if (analyzeQueryTextSentiment_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, analyzeQueryTextSentiment_); } for (java.util.Map.Entry entry : internalGetWebhookHeaders().getMap().entrySet()) { com.google.protobuf.MapEntry webhookHeaders__ = WebhookHeadersDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, webhookHeaders__); } { int dataSize = 0; for (int i = 0; i < flowVersions_.size(); i++) { dataSize += computeStringSizeNoTag(flowVersions_.getRaw(i)); } size += dataSize; size += 1 * getFlowVersionsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, channel_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSessionTtl()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getEndUserMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentPlaybook_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, currentPlaybook_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getSearchConfig()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getLlmModelSettings()); } if (populateDataStoreConnectionSignals_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 25, populateDataStoreConnectionSignals_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.QueryParameters)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.QueryParameters other = (com.google.cloud.dialogflow.cx.v3beta1.QueryParameters) obj; if (!getTimeZone().equals(other.getTimeZone())) return false; if (hasGeoLocation() != other.hasGeoLocation()) return false; if (hasGeoLocation()) { if (!getGeoLocation().equals(other.getGeoLocation())) return false; } if (!getSessionEntityTypesList().equals(other.getSessionEntityTypesList())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { if (!getPayload().equals(other.getPayload())) return false; } if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { if (!getParameters().equals(other.getParameters())) return false; } if (!getCurrentPage().equals(other.getCurrentPage())) return false; if (getDisableWebhook() != other.getDisableWebhook()) return false; if (getAnalyzeQueryTextSentiment() != other.getAnalyzeQueryTextSentiment()) return false; if (!internalGetWebhookHeaders().equals(other.internalGetWebhookHeaders())) return false; if (!getFlowVersionsList().equals(other.getFlowVersionsList())) return false; if (!getCurrentPlaybook().equals(other.getCurrentPlaybook())) return false; if (hasLlmModelSettings() != other.hasLlmModelSettings()) return false; if (hasLlmModelSettings()) { if (!getLlmModelSettings().equals(other.getLlmModelSettings())) return false; } if (!getChannel().equals(other.getChannel())) return false; if (hasSessionTtl() != other.hasSessionTtl()) return false; if (hasSessionTtl()) { if (!getSessionTtl().equals(other.getSessionTtl())) return false; } if (hasEndUserMetadata() != other.hasEndUserMetadata()) return false; if (hasEndUserMetadata()) { if (!getEndUserMetadata().equals(other.getEndUserMetadata())) return false; } if (hasSearchConfig() != other.hasSearchConfig()) return false; if (hasSearchConfig()) { if (!getSearchConfig().equals(other.getSearchConfig())) return false; } if (getPopulateDataStoreConnectionSignals() != other.getPopulateDataStoreConnectionSignals()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); if (hasGeoLocation()) { hash = (37 * hash) + GEO_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getGeoLocation().hashCode(); } if (getSessionEntityTypesCount() > 0) { hash = (37 * hash) + SESSION_ENTITY_TYPES_FIELD_NUMBER; hash = (53 * hash) + getSessionEntityTypesList().hashCode(); } if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } if (hasParameters()) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParameters().hashCode(); } hash = (37 * hash) + CURRENT_PAGE_FIELD_NUMBER; hash = (53 * hash) + getCurrentPage().hashCode(); hash = (37 * hash) + DISABLE_WEBHOOK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableWebhook()); hash = (37 * hash) + ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnalyzeQueryTextSentiment()); if (!internalGetWebhookHeaders().getMap().isEmpty()) { hash = (37 * hash) + WEBHOOK_HEADERS_FIELD_NUMBER; hash = (53 * hash) + internalGetWebhookHeaders().hashCode(); } if (getFlowVersionsCount() > 0) { hash = (37 * hash) + FLOW_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getFlowVersionsList().hashCode(); } hash = (37 * hash) + CURRENT_PLAYBOOK_FIELD_NUMBER; hash = (53 * hash) + getCurrentPlaybook().hashCode(); if (hasLlmModelSettings()) { hash = (37 * hash) + LLM_MODEL_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getLlmModelSettings().hashCode(); } hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); if (hasSessionTtl()) { hash = (37 * hash) + SESSION_TTL_FIELD_NUMBER; hash = (53 * hash) + getSessionTtl().hashCode(); } if (hasEndUserMetadata()) { hash = (37 * hash) + END_USER_METADATA_FIELD_NUMBER; hash = (53 * hash) + getEndUserMetadata().hashCode(); } if (hasSearchConfig()) { hash = (37 * hash) + SEARCH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSearchConfig().hashCode(); } hash = (37 * hash) + POPULATE_DATA_STORE_CONNECTION_SIGNALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPopulateDataStoreConnectionSignals()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.cx.v3beta1.QueryParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Represents the parameters of a conversational query.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.QueryParameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.QueryParameters) com.google.cloud.dialogflow.cx.v3beta1.QueryParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_QueryParameters_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 10: return internalGetWebhookHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 10: return internalGetMutableWebhookHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_QueryParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.class, com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGeoLocationFieldBuilder(); getSessionEntityTypesFieldBuilder(); getPayloadFieldBuilder(); getParametersFieldBuilder(); getLlmModelSettingsFieldBuilder(); getSessionTtlFieldBuilder(); getEndUserMetadataFieldBuilder(); getSearchConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timeZone_ = ""; geoLocation_ = null; if (geoLocationBuilder_ != null) { geoLocationBuilder_.dispose(); geoLocationBuilder_ = null; } if (sessionEntityTypesBuilder_ == null) { sessionEntityTypes_ = java.util.Collections.emptyList(); } else { sessionEntityTypes_ = null; sessionEntityTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); payload_ = null; if (payloadBuilder_ != null) { payloadBuilder_.dispose(); payloadBuilder_ = null; } parameters_ = null; if (parametersBuilder_ != null) { parametersBuilder_.dispose(); parametersBuilder_ = null; } currentPage_ = ""; disableWebhook_ = false; analyzeQueryTextSentiment_ = false; internalGetMutableWebhookHeaders().clear(); flowVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); currentPlaybook_ = ""; llmModelSettings_ = null; if (llmModelSettingsBuilder_ != null) { llmModelSettingsBuilder_.dispose(); llmModelSettingsBuilder_ = null; } channel_ = ""; sessionTtl_ = null; if (sessionTtlBuilder_ != null) { sessionTtlBuilder_.dispose(); sessionTtlBuilder_ = null; } endUserMetadata_ = null; if (endUserMetadataBuilder_ != null) { endUserMetadataBuilder_.dispose(); endUserMetadataBuilder_ = null; } searchConfig_ = null; if (searchConfigBuilder_ != null) { searchConfigBuilder_.dispose(); searchConfigBuilder_ = null; } populateDataStoreConnectionSignals_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_QueryParameters_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters build() { com.google.cloud.dialogflow.cx.v3beta1.QueryParameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.QueryParameters result = new com.google.cloud.dialogflow.cx.v3beta1.QueryParameters(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.QueryParameters result) { if (sessionEntityTypesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); bitField0_ = (bitField0_ & ~0x00000004); } result.sessionEntityTypes_ = sessionEntityTypes_; } else { result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.timeZone_ = timeZone_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.geoLocation_ = geoLocationBuilder_ == null ? geoLocation_ : geoLocationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.currentPage_ = currentPage_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.disableWebhook_ = disableWebhook_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.webhookHeaders_ = internalGetWebhookHeaders(); result.webhookHeaders_.makeImmutable(); } if (((from_bitField0_ & 0x00000200) != 0)) { flowVersions_.makeImmutable(); result.flowVersions_ = flowVersions_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.currentPlaybook_ = currentPlaybook_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.llmModelSettings_ = llmModelSettingsBuilder_ == null ? llmModelSettings_ : llmModelSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00001000) != 0)) { result.channel_ = channel_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.sessionTtl_ = sessionTtlBuilder_ == null ? sessionTtl_ : sessionTtlBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00004000) != 0)) { result.endUserMetadata_ = endUserMetadataBuilder_ == null ? endUserMetadata_ : endUserMetadataBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00008000) != 0)) { result.searchConfig_ = searchConfigBuilder_ == null ? searchConfig_ : searchConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00010000) != 0)) { result.populateDataStoreConnectionSignals_ = populateDataStoreConnectionSignals_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.QueryParameters) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.QueryParameters) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance()) return this; if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasGeoLocation()) { mergeGeoLocation(other.getGeoLocation()); } if (sessionEntityTypesBuilder_ == null) { if (!other.sessionEntityTypes_.isEmpty()) { if (sessionEntityTypes_.isEmpty()) { sessionEntityTypes_ = other.sessionEntityTypes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.addAll(other.sessionEntityTypes_); } onChanged(); } } else { if (!other.sessionEntityTypes_.isEmpty()) { if (sessionEntityTypesBuilder_.isEmpty()) { sessionEntityTypesBuilder_.dispose(); sessionEntityTypesBuilder_ = null; sessionEntityTypes_ = other.sessionEntityTypes_; bitField0_ = (bitField0_ & ~0x00000004); sessionEntityTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSessionEntityTypesFieldBuilder() : null; } else { sessionEntityTypesBuilder_.addAllMessages(other.sessionEntityTypes_); } } } if (other.hasPayload()) { mergePayload(other.getPayload()); } if (other.hasParameters()) { mergeParameters(other.getParameters()); } if (!other.getCurrentPage().isEmpty()) { currentPage_ = other.currentPage_; bitField0_ |= 0x00000020; onChanged(); } if (other.getDisableWebhook() != false) { setDisableWebhook(other.getDisableWebhook()); } if (other.getAnalyzeQueryTextSentiment() != false) { setAnalyzeQueryTextSentiment(other.getAnalyzeQueryTextSentiment()); } internalGetMutableWebhookHeaders().mergeFrom(other.internalGetWebhookHeaders()); bitField0_ |= 0x00000100; if (!other.flowVersions_.isEmpty()) { if (flowVersions_.isEmpty()) { flowVersions_ = other.flowVersions_; bitField0_ |= 0x00000200; } else { ensureFlowVersionsIsMutable(); flowVersions_.addAll(other.flowVersions_); } onChanged(); } if (!other.getCurrentPlaybook().isEmpty()) { currentPlaybook_ = other.currentPlaybook_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasLlmModelSettings()) { mergeLlmModelSettings(other.getLlmModelSettings()); } if (!other.getChannel().isEmpty()) { channel_ = other.channel_; bitField0_ |= 0x00001000; onChanged(); } if (other.hasSessionTtl()) { mergeSessionTtl(other.getSessionTtl()); } if (other.hasEndUserMetadata()) { mergeEndUserMetadata(other.getEndUserMetadata()); } if (other.hasSearchConfig()) { mergeSearchConfig(other.getSearchConfig()); } if (other.getPopulateDataStoreConnectionSignals() != false) { setPopulateDataStoreConnectionSignals(other.getPopulateDataStoreConnectionSignals()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { timeZone_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getGeoLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.parser(), extensionRegistry); if (sessionEntityTypesBuilder_ == null) { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.add(m); } else { sessionEntityTypesBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { currentPage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { disableWebhook_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { analyzeQueryTextSentiment_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 case 82: { com.google.protobuf.MapEntry webhookHeaders__ = input.readMessage( WebhookHeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableWebhookHeaders() .getMutableMap() .put(webhookHeaders__.getKey(), webhookHeaders__.getValue()); bitField0_ |= 0x00000100; break; } // case 82 case 114: { java.lang.String s = input.readStringRequireUtf8(); ensureFlowVersionsIsMutable(); flowVersions_.add(s); break; } // case 114 case 122: { channel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 122 case 130: { input.readMessage(getSessionTtlFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 130 case 146: { input.readMessage(getEndUserMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 146 case 154: { currentPlaybook_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 154 case 162: { input.readMessage(getSearchConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 162 case 170: { input.readMessage( getLlmModelSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 170 case 200: { populateDataStoreConnectionSignals_ = input.readBool(); bitField0_ |= 0x00010000; break; } // case 200 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object timeZone_ = ""; /** * * *
     * 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 the agent is
     * used.
     * 
* * string time_zone = 1; * * @return The timeZone. */ public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeZone_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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 the agent is
     * used.
     * 
* * string time_zone = 1; * * @return The bytes for timeZone. */ public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); timeZone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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 the agent is
     * used.
     * 
* * string time_zone = 1; * * @param value The timeZone to set. * @return This builder for chaining. */ public Builder setTimeZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } timeZone_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * 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 the agent is
     * used.
     * 
* * string time_zone = 1; * * @return This builder for chaining. */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * 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 the agent is
     * used.
     * 
* * string time_zone = 1; * * @param value The bytes for timeZone to set. * @return This builder for chaining. */ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeZone_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.type.LatLng geoLocation_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> geoLocationBuilder_; /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; * * @return Whether the geoLocation field is set. */ public boolean hasGeoLocation() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; * * @return The geoLocation. */ public com.google.type.LatLng getGeoLocation() { if (geoLocationBuilder_ == null) { return geoLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : geoLocation_; } else { return geoLocationBuilder_.getMessage(); } } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; */ public Builder setGeoLocation(com.google.type.LatLng value) { if (geoLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } geoLocation_ = value; } else { geoLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; */ public Builder setGeoLocation(com.google.type.LatLng.Builder builderForValue) { if (geoLocationBuilder_ == null) { geoLocation_ = builderForValue.build(); } else { geoLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; */ public Builder mergeGeoLocation(com.google.type.LatLng value) { if (geoLocationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && geoLocation_ != null && geoLocation_ != com.google.type.LatLng.getDefaultInstance()) { getGeoLocationBuilder().mergeFrom(value); } else { geoLocation_ = value; } } else { geoLocationBuilder_.mergeFrom(value); } if (geoLocation_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; */ public Builder clearGeoLocation() { bitField0_ = (bitField0_ & ~0x00000002); geoLocation_ = null; if (geoLocationBuilder_ != null) { geoLocationBuilder_.dispose(); geoLocationBuilder_ = null; } onChanged(); return this; } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; */ public com.google.type.LatLng.Builder getGeoLocationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGeoLocationFieldBuilder().getBuilder(); } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; */ public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() { if (geoLocationBuilder_ != null) { return geoLocationBuilder_.getMessageOrBuilder(); } else { return geoLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : geoLocation_; } } /** * * *
     * The geo location of this conversational query.
     * 
* * .google.type.LatLng geo_location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getGeoLocationFieldBuilder() { if (geoLocationBuilder_ == null) { geoLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( getGeoLocation(), getParentForChildren(), isClean()); geoLocation_ = null; } return geoLocationBuilder_; } private java.util.List sessionEntityTypes_ = java.util.Collections.emptyList(); private void ensureSessionEntityTypesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { sessionEntityTypes_ = new java.util.ArrayList( sessionEntityTypes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder> sessionEntityTypesBuilder_; /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public java.util.List getSessionEntityTypesList() { if (sessionEntityTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(sessionEntityTypes_); } else { return sessionEntityTypesBuilder_.getMessageList(); } } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public int getSessionEntityTypesCount() { if (sessionEntityTypesBuilder_ == null) { return sessionEntityTypes_.size(); } else { return sessionEntityTypesBuilder_.getCount(); } } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntityTypes( int index) { if (sessionEntityTypesBuilder_ == null) { return sessionEntityTypes_.get(index); } else { return sessionEntityTypesBuilder_.getMessage(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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder setSessionEntityTypes( int index, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType value) { if (sessionEntityTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.set(index, value); onChanged(); } else { sessionEntityTypesBuilder_.setMessage(index, value); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder setSessionEntityTypes( int index, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder builderForValue) { if (sessionEntityTypesBuilder_ == null) { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.set(index, builderForValue.build()); onChanged(); } else { sessionEntityTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder addSessionEntityTypes( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType value) { if (sessionEntityTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.add(value); onChanged(); } else { sessionEntityTypesBuilder_.addMessage(value); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder addSessionEntityTypes( int index, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType value) { if (sessionEntityTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.add(index, value); onChanged(); } else { sessionEntityTypesBuilder_.addMessage(index, value); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder addSessionEntityTypes( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder builderForValue) { if (sessionEntityTypesBuilder_ == null) { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.add(builderForValue.build()); onChanged(); } else { sessionEntityTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder addSessionEntityTypes( int index, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder builderForValue) { if (sessionEntityTypesBuilder_ == null) { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.add(index, builderForValue.build()); onChanged(); } else { sessionEntityTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder addAllSessionEntityTypes( java.lang.Iterable values) { if (sessionEntityTypesBuilder_ == null) { ensureSessionEntityTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sessionEntityTypes_); onChanged(); } else { sessionEntityTypesBuilder_.addAllMessages(values); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder clearSessionEntityTypes() { if (sessionEntityTypesBuilder_ == null) { sessionEntityTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { sessionEntityTypesBuilder_.clear(); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public Builder removeSessionEntityTypes(int index) { if (sessionEntityTypesBuilder_ == null) { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.remove(index); onChanged(); } else { sessionEntityTypesBuilder_.remove(index); } return this; } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder getSessionEntityTypesBuilder(int index) { return getSessionEntityTypesFieldBuilder().getBuilder(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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEntityTypesOrBuilder(int index) { if (sessionEntityTypesBuilder_ == null) { return sessionEntityTypes_.get(index); } else { return sessionEntityTypesBuilder_.getMessageOrBuilder(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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder> getSessionEntityTypesOrBuilderList() { if (sessionEntityTypesBuilder_ != null) { return sessionEntityTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sessionEntityTypes_); } } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder addSessionEntityTypesBuilder() { return getSessionEntityTypesFieldBuilder() .addBuilder( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.getDefaultInstance()); } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder addSessionEntityTypesBuilder(int index) { return getSessionEntityTypesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.getDefaultInstance()); } /** * * *
     * 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.cx.v3beta1.SessionEntityType session_entity_types = 3; * */ public java.util.List getSessionEntityTypesBuilderList() { return getSessionEntityTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder> getSessionEntityTypesFieldBuilder() { if (sessionEntityTypesBuilder_ == null) { sessionEntityTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder>( sessionEntityTypes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); sessionEntityTypes_ = null; } return sessionEntityTypesBuilder_; } private com.google.protobuf.Struct payload_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> payloadBuilder_; /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; * * @return Whether the payload field is set. */ public boolean hasPayload() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; * * @return The payload. */ public com.google.protobuf.Struct getPayload() { if (payloadBuilder_ == null) { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; */ public Builder setPayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; } else { payloadBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; */ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); } else { payloadBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && payload_ != null && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } } else { payloadBuilder_.mergeFrom(value); } if (payload_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000008); payload_ = null; if (payloadBuilder_ != null) { payloadBuilder_.dispose(); payloadBuilder_ = null; } onChanged(); return this; } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; */ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } } /** * * *
     * This field can be used to pass custom data into the webhook associated with
     * the agent. Arbitrary JSON objects are supported.
     * Some integrations that query a Dialogflow agent may provide additional
     * information in the payload.
     * In particular, for the Dialogflow Phone Gateway integration, this field has
     * the form:
     * ```
     * {
     *  "telephony": {
     *    "caller_id": "+18558363987"
     *  }
     * }
     * ```
     * 
* * .google.protobuf.Struct payload = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } private com.google.protobuf.Struct parameters_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> parametersBuilder_; /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; * * @return Whether the parameters field is set. */ public boolean hasParameters() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; * * @return The parameters. */ public com.google.protobuf.Struct getParameters() { if (parametersBuilder_ == null) { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; */ public Builder setParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parameters_ = value; } else { parametersBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; */ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); } else { parametersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && parameters_ != null && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } } else { parametersBuilder_.mergeFrom(value); } if (parameters_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; */ public Builder clearParameters() { bitField0_ = (bitField0_ & ~0x00000010); parameters_ = null; if (parametersBuilder_ != null) { parametersBuilder_.dispose(); parametersBuilder_ = null; } onChanged(); return this; } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { bitField0_ |= 0x00000010; onChanged(); return getParametersFieldBuilder().getBuilder(); } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; */ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } } /** * * *
     * Additional parameters to be put into [session
     * parameters][SessionInfo.parameters]. To remove a
     * parameter from the session, clients should explicitly set the parameter
     * value to null.
     *
     * You can reference the session parameters in the agent with the following
     * format: $session.params.parameter-id.
     *
     * Depending on your protocol or client library language, this is a
     * map, associative array, symbol table, dictionary, or JSON object
     * composed of a collection of (MapKey, MapValue) pairs:
     *
     * * MapKey type: string
     * * MapKey value: parameter name
     * * MapValue type: If parameter's entity type is a composite entity then use
     * map, otherwise, depending on the parameter value type, it could be one of
     * string, number, boolean, null, list or map.
     * * MapValue value: If parameter's entity type is a composite entity then use
     * map from composite entity property names to property values, otherwise,
     * use parameter value.
     * 
* * .google.protobuf.Struct parameters = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } private java.lang.Object currentPage_ = ""; /** * * *
     * The unique identifier of the
     * [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
     * page][QueryResult.current_page] in the session.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     *
     *  If `current_page` is specified, the previous state of the session will be
     *  ignored by Dialogflow, including the [previous
     *  page][QueryResult.current_page] and the [previous session
     *  parameters][QueryResult.parameters].
     *  In most cases,
     *  [current_page][google.cloud.dialogflow.cx.v3beta1.QueryParameters.current_page]
     *  and
     *  [parameters][google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters]
     *  should be configured together to direct a session to a specific state.
     * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } * * @return The currentPage. */ public java.lang.String getCurrentPage() { java.lang.Object ref = currentPage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentPage_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The unique identifier of the
     * [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
     * page][QueryResult.current_page] in the session.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     *
     *  If `current_page` is specified, the previous state of the session will be
     *  ignored by Dialogflow, including the [previous
     *  page][QueryResult.current_page] and the [previous session
     *  parameters][QueryResult.parameters].
     *  In most cases,
     *  [current_page][google.cloud.dialogflow.cx.v3beta1.QueryParameters.current_page]
     *  and
     *  [parameters][google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters]
     *  should be configured together to direct a session to a specific state.
     * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } * * @return The bytes for currentPage. */ public com.google.protobuf.ByteString getCurrentPageBytes() { java.lang.Object ref = currentPage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentPage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The unique identifier of the
     * [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
     * page][QueryResult.current_page] in the session.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     *
     *  If `current_page` is specified, the previous state of the session will be
     *  ignored by Dialogflow, including the [previous
     *  page][QueryResult.current_page] and the [previous session
     *  parameters][QueryResult.parameters].
     *  In most cases,
     *  [current_page][google.cloud.dialogflow.cx.v3beta1.QueryParameters.current_page]
     *  and
     *  [parameters][google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters]
     *  should be configured together to direct a session to a specific state.
     * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } * * @param value The currentPage to set. * @return This builder for chaining. */ public Builder setCurrentPage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } currentPage_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The unique identifier of the
     * [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
     * page][QueryResult.current_page] in the session.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     *
     *  If `current_page` is specified, the previous state of the session will be
     *  ignored by Dialogflow, including the [previous
     *  page][QueryResult.current_page] and the [previous session
     *  parameters][QueryResult.parameters].
     *  In most cases,
     *  [current_page][google.cloud.dialogflow.cx.v3beta1.QueryParameters.current_page]
     *  and
     *  [parameters][google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters]
     *  should be configured together to direct a session to a specific state.
     * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearCurrentPage() { currentPage_ = getDefaultInstance().getCurrentPage(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * The unique identifier of the
     * [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
     * page][QueryResult.current_page] in the session.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     *
     *  If `current_page` is specified, the previous state of the session will be
     *  ignored by Dialogflow, including the [previous
     *  page][QueryResult.current_page] and the [previous session
     *  parameters][QueryResult.parameters].
     *  In most cases,
     *  [current_page][google.cloud.dialogflow.cx.v3beta1.QueryParameters.current_page]
     *  and
     *  [parameters][google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters]
     *  should be configured together to direct a session to a specific state.
     * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } * * @param value The bytes for currentPage to set. * @return This builder for chaining. */ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currentPage_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private boolean disableWebhook_; /** * * *
     * Whether to disable webhook calls for this request.
     * 
* * bool disable_webhook = 7; * * @return The disableWebhook. */ @java.lang.Override public boolean getDisableWebhook() { return disableWebhook_; } /** * * *
     * Whether to disable webhook calls for this request.
     * 
* * bool disable_webhook = 7; * * @param value The disableWebhook to set. * @return This builder for chaining. */ public Builder setDisableWebhook(boolean value) { disableWebhook_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Whether to disable webhook calls for this request.
     * 
* * bool disable_webhook = 7; * * @return This builder for chaining. */ public Builder clearDisableWebhook() { bitField0_ = (bitField0_ & ~0x00000040); disableWebhook_ = false; onChanged(); return this; } private boolean analyzeQueryTextSentiment_; /** * * *
     * Configures whether sentiment analysis should be performed. If not
     * provided, sentiment analysis is not performed.
     * 
* * bool analyze_query_text_sentiment = 8; * * @return The analyzeQueryTextSentiment. */ @java.lang.Override public boolean getAnalyzeQueryTextSentiment() { return analyzeQueryTextSentiment_; } /** * * *
     * Configures whether sentiment analysis should be performed. If not
     * provided, sentiment analysis is not performed.
     * 
* * bool analyze_query_text_sentiment = 8; * * @param value The analyzeQueryTextSentiment to set. * @return This builder for chaining. */ public Builder setAnalyzeQueryTextSentiment(boolean value) { analyzeQueryTextSentiment_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Configures whether sentiment analysis should be performed. If not
     * provided, sentiment analysis is not performed.
     * 
* * bool analyze_query_text_sentiment = 8; * * @return This builder for chaining. */ public Builder clearAnalyzeQueryTextSentiment() { bitField0_ = (bitField0_ & ~0x00000080); analyzeQueryTextSentiment_ = false; onChanged(); return this; } private com.google.protobuf.MapField webhookHeaders_; private com.google.protobuf.MapField internalGetWebhookHeaders() { if (webhookHeaders_ == null) { return com.google.protobuf.MapField.emptyMapField( WebhookHeadersDefaultEntryHolder.defaultEntry); } return webhookHeaders_; } private com.google.protobuf.MapField internalGetMutableWebhookHeaders() { if (webhookHeaders_ == null) { webhookHeaders_ = com.google.protobuf.MapField.newMapField(WebhookHeadersDefaultEntryHolder.defaultEntry); } if (!webhookHeaders_.isMutable()) { webhookHeaders_ = webhookHeaders_.copy(); } bitField0_ |= 0x00000100; onChanged(); return webhookHeaders_; } public int getWebhookHeadersCount() { return internalGetWebhookHeaders().getMap().size(); } /** * * *
     * 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 Dialogflow web console. The headers defined
     * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public boolean containsWebhookHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWebhookHeaders().getMap().containsKey(key); } /** Use {@link #getWebhookHeadersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWebhookHeaders() { return 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 Dialogflow web console. The headers defined
     * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public java.util.Map getWebhookHeadersMap() { return internalGetWebhookHeaders().getMap(); } /** * * *
     * 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 Dialogflow web console. The headers defined
     * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public /* nullable */ java.lang.String getWebhookHeadersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebhookHeaders().getMap(); return map.containsKey(key) ? map.get(key) : 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 Dialogflow web console. The headers defined
     * within this field will overwrite the headers configured through 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 = 10; */ @java.lang.Override public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebhookHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearWebhookHeaders() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableWebhookHeaders().getMutableMap().clear(); return this; } /** * * *
     * 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 Dialogflow web console. The headers defined
     * within this field will overwrite the headers configured through 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 = 10; */ public Builder removeWebhookHeaders(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableWebhookHeaders().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebhookHeaders() { bitField0_ |= 0x00000100; return internalGetMutableWebhookHeaders().getMutableMap(); } /** * * *
     * 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 Dialogflow web console. The headers defined
     * within this field will overwrite the headers configured through 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 = 10; */ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableWebhookHeaders().getMutableMap().put(key, value); bitField0_ |= 0x00000100; return this; } /** * * *
     * 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 Dialogflow web console. The headers defined
     * within this field will overwrite the headers configured through 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 = 10; */ public Builder putAllWebhookHeaders(java.util.Map values) { internalGetMutableWebhookHeaders().getMutableMap().putAll(values); bitField0_ |= 0x00000100; return this; } private com.google.protobuf.LazyStringArrayList flowVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFlowVersionsIsMutable() { if (!flowVersions_.isModifiable()) { flowVersions_ = new com.google.protobuf.LazyStringArrayList(flowVersions_); } bitField0_ |= 0x00000200; } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @return A list containing the flowVersions. */ public com.google.protobuf.ProtocolStringList getFlowVersionsList() { flowVersions_.makeImmutable(); return flowVersions_; } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @return The count of flowVersions. */ public int getFlowVersionsCount() { return flowVersions_.size(); } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param index The index of the element to return. * @return The flowVersions at the given index. */ public java.lang.String getFlowVersions(int index) { return flowVersions_.get(index); } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param index The index of the value to return. * @return The bytes of the flowVersions at the given index. */ public com.google.protobuf.ByteString getFlowVersionsBytes(int index) { return flowVersions_.getByteString(index); } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param index The index to set the value at. * @param value The flowVersions to set. * @return This builder for chaining. */ public Builder setFlowVersions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFlowVersionsIsMutable(); flowVersions_.set(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param value The flowVersions to add. * @return This builder for chaining. */ public Builder addFlowVersions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFlowVersionsIsMutable(); flowVersions_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param values The flowVersions to add. * @return This builder for chaining. */ public Builder addAllFlowVersions(java.lang.Iterable values) { ensureFlowVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, flowVersions_); bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearFlowVersions() { flowVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); ; onChanged(); return this; } /** * * *
     * A list of flow versions to override for the request.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
     *
     *  If version 1 of flow X is included in this list, the traffic of
     *  flow X will go through version 1 regardless of the version configuration
     *  in the environment. Each flow can have at most one version specified in
     *  this list.
     * 
* * repeated string flow_versions = 14 [(.google.api.resource_reference) = { ... } * * @param value The bytes of the flowVersions to add. * @return This builder for chaining. */ public Builder addFlowVersionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFlowVersionsIsMutable(); flowVersions_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object currentPlaybook_ = ""; /** * * *
     * Optional. Start the session with the specified
     * [playbook][google.cloud.dialogflow.cx.v3beta1.Playbook]. You can only
     * specify the playbook at the beginning of the session. Otherwise, an error
     * will be thrown.
     *
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
     * 
* * * string current_playbook = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The currentPlaybook. */ public java.lang.String getCurrentPlaybook() { java.lang.Object ref = currentPlaybook_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currentPlaybook_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Start the session with the specified
     * [playbook][google.cloud.dialogflow.cx.v3beta1.Playbook]. You can only
     * specify the playbook at the beginning of the session. Otherwise, an error
     * will be thrown.
     *
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
     * 
* * * string current_playbook = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for currentPlaybook. */ public com.google.protobuf.ByteString getCurrentPlaybookBytes() { java.lang.Object ref = currentPlaybook_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currentPlaybook_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Start the session with the specified
     * [playbook][google.cloud.dialogflow.cx.v3beta1.Playbook]. You can only
     * specify the playbook at the beginning of the session. Otherwise, an error
     * will be thrown.
     *
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
     * 
* * * string current_playbook = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The currentPlaybook to set. * @return This builder for chaining. */ public Builder setCurrentPlaybook(java.lang.String value) { if (value == null) { throw new NullPointerException(); } currentPlaybook_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Optional. Start the session with the specified
     * [playbook][google.cloud.dialogflow.cx.v3beta1.Playbook]. You can only
     * specify the playbook at the beginning of the session. Otherwise, an error
     * will be thrown.
     *
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
     * 
* * * string current_playbook = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearCurrentPlaybook() { currentPlaybook_ = getDefaultInstance().getCurrentPlaybook(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * Optional. Start the session with the specified
     * [playbook][google.cloud.dialogflow.cx.v3beta1.Playbook]. You can only
     * specify the playbook at the beginning of the session. Otherwise, an error
     * will be thrown.
     *
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
     * 
* * * string current_playbook = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for currentPlaybook to set. * @return This builder for chaining. */ public Builder setCurrentPlaybookBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currentPlaybook_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llmModelSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings, com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettingsOrBuilder> llmModelSettingsBuilder_; /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the llmModelSettings field is set. */ public boolean hasLlmModelSettings() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The llmModelSettings. */ public com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings getLlmModelSettings() { if (llmModelSettingsBuilder_ == null) { return llmModelSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.getDefaultInstance() : llmModelSettings_; } else { return llmModelSettingsBuilder_.getMessage(); } } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setLlmModelSettings( com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings value) { if (llmModelSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } llmModelSettings_ = value; } else { llmModelSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setLlmModelSettings( com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.Builder builderForValue) { if (llmModelSettingsBuilder_ == null) { llmModelSettings_ = builderForValue.build(); } else { llmModelSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeLlmModelSettings( com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings value) { if (llmModelSettingsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && llmModelSettings_ != null && llmModelSettings_ != com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.getDefaultInstance()) { getLlmModelSettingsBuilder().mergeFrom(value); } else { llmModelSettings_ = value; } } else { llmModelSettingsBuilder_.mergeFrom(value); } if (llmModelSettings_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearLlmModelSettings() { bitField0_ = (bitField0_ & ~0x00000800); llmModelSettings_ = null; if (llmModelSettingsBuilder_ != null) { llmModelSettingsBuilder_.dispose(); llmModelSettingsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.Builder getLlmModelSettingsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLlmModelSettingsFieldBuilder().getBuilder(); } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettingsOrBuilder getLlmModelSettingsOrBuilder() { if (llmModelSettingsBuilder_ != null) { return llmModelSettingsBuilder_.getMessageOrBuilder(); } else { return llmModelSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.getDefaultInstance() : llmModelSettings_; } } /** * * *
     * Optional. Use the specified LLM model settings for processing the request.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 21 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings, com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettingsOrBuilder> getLlmModelSettingsFieldBuilder() { if (llmModelSettingsBuilder_ == null) { llmModelSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings, com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.LlmModelSettingsOrBuilder>( getLlmModelSettings(), getParentForChildren(), isClean()); llmModelSettings_ = null; } return llmModelSettingsBuilder_; } private java.lang.Object channel_ = ""; /** * * *
     * The channel which this query is for.
     *
     * If specified, only the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage]
     * associated with the channel will be returned. If no
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] is
     * associated with the channel, it falls back to the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel.
     *
     * If unspecified, the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel will be returned.
     * 
* * string channel = 15; * * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The channel which this query is for.
     *
     * If specified, only the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage]
     * associated with the channel will be returned. If no
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] is
     * associated with the channel, it falls back to the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel.
     *
     * If unspecified, the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel will be returned.
     * 
* * string channel = 15; * * @return The bytes for channel. */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The channel which this query is for.
     *
     * If specified, only the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage]
     * associated with the channel will be returned. If no
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] is
     * associated with the channel, it falls back to the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel.
     *
     * If unspecified, the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel will be returned.
     * 
* * string channel = 15; * * @param value The channel to set. * @return This builder for chaining. */ public Builder setChannel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } channel_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * The channel which this query is for.
     *
     * If specified, only the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage]
     * associated with the channel will be returned. If no
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] is
     * associated with the channel, it falls back to the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel.
     *
     * If unspecified, the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel will be returned.
     * 
* * string channel = 15; * * @return This builder for chaining. */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * * *
     * The channel which this query is for.
     *
     * If specified, only the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage]
     * associated with the channel will be returned. If no
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] is
     * associated with the channel, it falls back to the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel.
     *
     * If unspecified, the
     * [ResponseMessage][google.cloud.dialogflow.cx.v3beta1.ResponseMessage] with
     * unspecified channel will be returned.
     * 
* * string channel = 15; * * @param value The bytes for channel to set. * @return This builder for chaining. */ public Builder setChannelBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channel_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private com.google.protobuf.Duration sessionTtl_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> sessionTtlBuilder_; /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the sessionTtl field is set. */ public boolean hasSessionTtl() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The sessionTtl. */ public com.google.protobuf.Duration getSessionTtl() { if (sessionTtlBuilder_ == null) { return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_; } else { return sessionTtlBuilder_.getMessage(); } } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSessionTtl(com.google.protobuf.Duration value) { if (sessionTtlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionTtl_ = value; } else { sessionTtlBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSessionTtl(com.google.protobuf.Duration.Builder builderForValue) { if (sessionTtlBuilder_ == null) { sessionTtl_ = builderForValue.build(); } else { sessionTtlBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSessionTtl(com.google.protobuf.Duration value) { if (sessionTtlBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && sessionTtl_ != null && sessionTtl_ != com.google.protobuf.Duration.getDefaultInstance()) { getSessionTtlBuilder().mergeFrom(value); } else { sessionTtl_ = value; } } else { sessionTtlBuilder_.mergeFrom(value); } if (sessionTtl_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSessionTtl() { bitField0_ = (bitField0_ & ~0x00002000); sessionTtl_ = null; if (sessionTtlBuilder_ != null) { sessionTtlBuilder_.dispose(); sessionTtlBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.Duration.Builder getSessionTtlBuilder() { bitField0_ |= 0x00002000; onChanged(); return getSessionTtlFieldBuilder().getBuilder(); } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder() { if (sessionTtlBuilder_ != null) { return sessionTtlBuilder_.getMessageOrBuilder(); } else { return sessionTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sessionTtl_; } } /** * * *
     * Optional. Configure lifetime of the Dialogflow session.
     * By default, a Dialogflow session remains active and its data is stored for
     * 30 minutes after the last request is sent for the session.
     * This value should be no longer than 1 day.
     * 
* * .google.protobuf.Duration session_ttl = 16 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getSessionTtlFieldBuilder() { if (sessionTtlBuilder_ == null) { sessionTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getSessionTtl(), getParentForChildren(), isClean()); sessionTtl_ = null; } return sessionTtlBuilder_; } private com.google.protobuf.Struct endUserMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> endUserMetadataBuilder_; /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the endUserMetadata field is set. */ public boolean hasEndUserMetadata() { return ((bitField0_ & 0x00004000) != 0); } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The endUserMetadata. */ public com.google.protobuf.Struct getEndUserMetadata() { if (endUserMetadataBuilder_ == null) { return endUserMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : endUserMetadata_; } else { return endUserMetadataBuilder_.getMessage(); } } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setEndUserMetadata(com.google.protobuf.Struct value) { if (endUserMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endUserMetadata_ = value; } else { endUserMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setEndUserMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (endUserMetadataBuilder_ == null) { endUserMetadata_ = builderForValue.build(); } else { endUserMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeEndUserMetadata(com.google.protobuf.Struct value) { if (endUserMetadataBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && endUserMetadata_ != null && endUserMetadata_ != com.google.protobuf.Struct.getDefaultInstance()) { getEndUserMetadataBuilder().mergeFrom(value); } else { endUserMetadata_ = value; } } else { endUserMetadataBuilder_.mergeFrom(value); } if (endUserMetadata_ != null) { bitField0_ |= 0x00004000; onChanged(); } return this; } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearEndUserMetadata() { bitField0_ = (bitField0_ & ~0x00004000); endUserMetadata_ = null; if (endUserMetadataBuilder_ != null) { endUserMetadataBuilder_.dispose(); endUserMetadataBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.Struct.Builder getEndUserMetadataBuilder() { bitField0_ |= 0x00004000; onChanged(); return getEndUserMetadataFieldBuilder().getBuilder(); } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.protobuf.StructOrBuilder getEndUserMetadataOrBuilder() { if (endUserMetadataBuilder_ != null) { return endUserMetadataBuilder_.getMessageOrBuilder(); } else { return endUserMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : endUserMetadata_; } } /** * * *
     * Optional. Information about the end-user to improve the relevance and
     * accuracy of generative answers.
     *
     * This will be interpreted and used by a language model, so, for good
     * results, the data should be self-descriptive, and in a simple structure.
     *
     * Example:
     *
     * ```json
     * {
     *   "subscription plan": "Business Premium Plus",
     *   "devices owned": [
     *     {"model": "Google Pixel 7"},
     *     {"model": "Google Pixel Tablet"}
     *   ]
     * }
     * ```
     * 
* * * .google.protobuf.Struct end_user_metadata = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getEndUserMetadataFieldBuilder() { if (endUserMetadataBuilder_ == null) { endUserMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getEndUserMetadata(), getParentForChildren(), isClean()); endUserMetadata_ = null; } return endUserMetadataBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.SearchConfig searchConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SearchConfig, com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.Builder, com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder> searchConfigBuilder_; /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the searchConfig field is set. */ public boolean hasSearchConfig() { return ((bitField0_ & 0x00008000) != 0); } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The searchConfig. */ public com.google.cloud.dialogflow.cx.v3beta1.SearchConfig getSearchConfig() { if (searchConfigBuilder_ == null) { return searchConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.getDefaultInstance() : searchConfig_; } else { return searchConfigBuilder_.getMessage(); } } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSearchConfig(com.google.cloud.dialogflow.cx.v3beta1.SearchConfig value) { if (searchConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } searchConfig_ = value; } else { searchConfigBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSearchConfig( com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.Builder builderForValue) { if (searchConfigBuilder_ == null) { searchConfig_ = builderForValue.build(); } else { searchConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSearchConfig(com.google.cloud.dialogflow.cx.v3beta1.SearchConfig value) { if (searchConfigBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && searchConfig_ != null && searchConfig_ != com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.getDefaultInstance()) { getSearchConfigBuilder().mergeFrom(value); } else { searchConfig_ = value; } } else { searchConfigBuilder_.mergeFrom(value); } if (searchConfig_ != null) { bitField0_ |= 0x00008000; onChanged(); } return this; } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSearchConfig() { bitField0_ = (bitField0_ & ~0x00008000); searchConfig_ = null; if (searchConfigBuilder_ != null) { searchConfigBuilder_.dispose(); searchConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.Builder getSearchConfigBuilder() { bitField0_ |= 0x00008000; onChanged(); return getSearchConfigFieldBuilder().getBuilder(); } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder getSearchConfigOrBuilder() { if (searchConfigBuilder_ != null) { return searchConfigBuilder_.getMessageOrBuilder(); } else { return searchConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.getDefaultInstance() : searchConfig_; } } /** * * *
     * Optional. Search configuration for UCS search queries.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.SearchConfig search_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SearchConfig, com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.Builder, com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder> getSearchConfigFieldBuilder() { if (searchConfigBuilder_ == null) { searchConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SearchConfig, com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.Builder, com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder>( getSearchConfig(), getParentForChildren(), isClean()); searchConfig_ = null; } return searchConfigBuilder_; } private boolean populateDataStoreConnectionSignals_; /** * * *
     * Optional. If set to true and data stores are involved in serving the
     * request then
     * DetectIntentResponse.query_result.data_store_connection_signals
     * will be filled with data that can help evaluations.
     * 
* * * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The populateDataStoreConnectionSignals. */ @java.lang.Override public boolean getPopulateDataStoreConnectionSignals() { return populateDataStoreConnectionSignals_; } /** * * *
     * Optional. If set to true and data stores are involved in serving the
     * request then
     * DetectIntentResponse.query_result.data_store_connection_signals
     * will be filled with data that can help evaluations.
     * 
* * * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The populateDataStoreConnectionSignals to set. * @return This builder for chaining. */ public Builder setPopulateDataStoreConnectionSignals(boolean value) { populateDataStoreConnectionSignals_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * * *
     * Optional. If set to true and data stores are involved in serving the
     * request then
     * DetectIntentResponse.query_result.data_store_connection_signals
     * will be filled with data that can help evaluations.
     * 
* * * bool populate_data_store_connection_signals = 25 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearPopulateDataStoreConnectionSignals() { bitField0_ = (bitField0_ & ~0x00010000); populateDataStoreConnectionSignals_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.QueryParameters) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.QueryParameters) private static final com.google.cloud.dialogflow.cx.v3beta1.QueryParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.QueryParameters(); } public static com.google.cloud.dialogflow.cx.v3beta1.QueryParameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryParameters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy