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

com.google.cloud.dialogflow.cx.v3beta1.Page 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/page.proto

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

/**
 *
 *
 * 
 * A Dialogflow CX conversation (session) can be described and visualized as a
 * state machine. The states of a CX session are represented by pages.
 *
 * For each flow, you define many pages, where your combined pages can handle a
 * complete conversation on the topics the flow is designed for. At any given
 * moment, exactly one page is the current page, the current page is considered
 * active, and the flow associated with that page is considered active. Every
 * flow has a special start page. When a flow initially becomes active, the
 * start page page becomes the current page. For each conversational turn, the
 * current page will either stay the same or transition to another page.
 *
 * You configure each page to collect information from the end-user that is
 * relevant for the conversational state represented by the page.
 *
 * For more information, see the
 * [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Page} */ public final class Page extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Page) PageOrBuilder { private static final long serialVersionUID = 0L; // Use Page.newBuilder() to construct. private Page(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Page() { name_ = ""; displayName_ = ""; description_ = ""; transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); transitionRoutes_ = java.util.Collections.emptyList(); eventHandlers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Page(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.PageProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.PageProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Page.class, com.google.cloud.dialogflow.cx.v3beta1.Page.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The unique identifier of the page.
   * Required for the
   * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]
   * method.
   * [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]
   * populates the name automatically.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
   * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * The unique identifier of the page.
   * Required for the
   * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]
   * method.
   * [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]
   * populates the name automatically.
   * Format:
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
   * 
* * string name = 1; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
   * Required. The human-readable name of the page, unique within the flow.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** * * *
   * Required. The human-readable name of the page, unique within the flow.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 19; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * The description of the page. The maximum length is 500 characters.
   * 
* * string description = 19; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * The description of the page. The maximum length is 500 characters.
   * 
* * string description = 19; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRY_FULFILLMENT_FIELD_NUMBER = 7; private com.google.cloud.dialogflow.cx.v3beta1.Fulfillment entryFulfillment_; /** * * *
   * The fulfillment to call when the session is entering the page.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; * * @return Whether the entryFulfillment field is set. */ @java.lang.Override public boolean hasEntryFulfillment() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The fulfillment to call when the session is entering the page.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; * * @return The entryFulfillment. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getEntryFulfillment() { return entryFulfillment_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() : entryFulfillment_; } /** * * *
   * The fulfillment to call when the session is entering the page.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder getEntryFulfillmentOrBuilder() { return entryFulfillment_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() : entryFulfillment_; } public static final int FORM_FIELD_NUMBER = 4; private com.google.cloud.dialogflow.cx.v3beta1.Form form_; /** * * *
   * The form associated with the page, used for collecting parameters
   * relevant to the page.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; * * @return Whether the form field is set. */ @java.lang.Override public boolean hasForm() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The form associated with the page, used for collecting parameters
   * relevant to the page.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; * * @return The form. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Form getForm() { return form_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Form.getDefaultInstance() : form_; } /** * * *
   * The form associated with the page, used for collecting parameters
   * relevant to the page.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FormOrBuilder getFormOrBuilder() { return form_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Form.getDefaultInstance() : form_; } public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Ordered list of
   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
   * added to the page. Transition route groups must be unique within a page. If
   * the page links both flow-level transition route groups and agent-level
   * transition route groups, the flow-level ones will have higher priority and
   * will be put before the agent-level ones.
   *
   * *   If multiple transition routes within a page scope refer to the same
   *     intent, then the precedence order is: page's transition route -> page's
   *     transition route group -> flow's transition routes.
   *
   * *   If multiple transition route groups within a page contain the same
   *     intent, then the first group in the ordered list takes precedence.
   *
   * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * or
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * for agent-level groups.
   * 
* * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @return A list containing the transitionRouteGroups. */ public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() { return transitionRouteGroups_; } /** * * *
   * Ordered list of
   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
   * added to the page. Transition route groups must be unique within a page. If
   * the page links both flow-level transition route groups and agent-level
   * transition route groups, the flow-level ones will have higher priority and
   * will be put before the agent-level ones.
   *
   * *   If multiple transition routes within a page scope refer to the same
   *     intent, then the precedence order is: page's transition route -> page's
   *     transition route group -> flow's transition routes.
   *
   * *   If multiple transition route groups within a page contain the same
   *     intent, then the first group in the ordered list takes precedence.
   *
   * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * or
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * for agent-level groups.
   * 
* * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @return The count of transitionRouteGroups. */ public int getTransitionRouteGroupsCount() { return transitionRouteGroups_.size(); } /** * * *
   * Ordered list of
   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
   * added to the page. Transition route groups must be unique within a page. If
   * the page links both flow-level transition route groups and agent-level
   * transition route groups, the flow-level ones will have higher priority and
   * will be put before the agent-level ones.
   *
   * *   If multiple transition routes within a page scope refer to the same
   *     intent, then the precedence order is: page's transition route -> page's
   *     transition route group -> flow's transition routes.
   *
   * *   If multiple transition route groups within a page contain the same
   *     intent, then the first group in the ordered list takes precedence.
   *
   * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * or
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * for agent-level groups.
   * 
* * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param index The index of the element to return. * @return The transitionRouteGroups at the given index. */ public java.lang.String getTransitionRouteGroups(int index) { return transitionRouteGroups_.get(index); } /** * * *
   * Ordered list of
   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
   * added to the page. Transition route groups must be unique within a page. If
   * the page links both flow-level transition route groups and agent-level
   * transition route groups, the flow-level ones will have higher priority and
   * will be put before the agent-level ones.
   *
   * *   If multiple transition routes within a page scope refer to the same
   *     intent, then the precedence order is: page's transition route -> page's
   *     transition route group -> flow's transition routes.
   *
   * *   If multiple transition route groups within a page contain the same
   *     intent, then the first group in the ordered list takes precedence.
   *
   * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * or
   * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
   * for agent-level groups.
   * 
* * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param index The index of the value to return. * @return The bytes of the transitionRouteGroups at the given index. */ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { return transitionRouteGroups_.getByteString(index); } public static final int TRANSITION_ROUTES_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List transitionRoutes_; /** * * *
   * A list of transitions for the transition rules of this page.
   * They route the conversation to another page in the same flow, or another
   * flow.
   *
   * When we are in a certain page, the TransitionRoutes are evalauted in the
   * following order:
   *
   * *   TransitionRoutes defined in the page with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in flow with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in the page with only condition specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with only condition specified.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ @java.lang.Override public java.util.List getTransitionRoutesList() { return transitionRoutes_; } /** * * *
   * A list of transitions for the transition rules of this page.
   * They route the conversation to another page in the same flow, or another
   * flow.
   *
   * When we are in a certain page, the TransitionRoutes are evalauted in the
   * following order:
   *
   * *   TransitionRoutes defined in the page with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in flow with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in the page with only condition specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with only condition specified.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ @java.lang.Override public java.util.List getTransitionRoutesOrBuilderList() { return transitionRoutes_; } /** * * *
   * A list of transitions for the transition rules of this page.
   * They route the conversation to another page in the same flow, or another
   * flow.
   *
   * When we are in a certain page, the TransitionRoutes are evalauted in the
   * following order:
   *
   * *   TransitionRoutes defined in the page with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in flow with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in the page with only condition specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with only condition specified.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ @java.lang.Override public int getTransitionRoutesCount() { return transitionRoutes_.size(); } /** * * *
   * A list of transitions for the transition rules of this page.
   * They route the conversation to another page in the same flow, or another
   * flow.
   *
   * When we are in a certain page, the TransitionRoutes are evalauted in the
   * following order:
   *
   * *   TransitionRoutes defined in the page with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in flow with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in the page with only condition specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with only condition specified.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoutes(int index) { return transitionRoutes_.get(index); } /** * * *
   * A list of transitions for the transition rules of this page.
   * They route the conversation to another page in the same flow, or another
   * flow.
   *
   * When we are in a certain page, the TransitionRoutes are evalauted in the
   * following order:
   *
   * *   TransitionRoutes defined in the page with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in flow with intent specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
   *     with intent specified.
   * *   TransitionRoutes defined in the page with only condition specified.
   * *   TransitionRoutes defined in the
   *     [transition route
   *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
   *     with only condition specified.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRoutesOrBuilder(int index) { return transitionRoutes_.get(index); } public static final int EVENT_HANDLERS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List eventHandlers_; /** * * *
   * Handlers associated with the page to handle events such as webhook errors,
   * no match or no input.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ @java.lang.Override public java.util.List getEventHandlersList() { return eventHandlers_; } /** * * *
   * Handlers associated with the page to handle events such as webhook errors,
   * no match or no input.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ @java.lang.Override public java.util.List getEventHandlersOrBuilderList() { return eventHandlers_; } /** * * *
   * Handlers associated with the page to handle events such as webhook errors,
   * no match or no input.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ @java.lang.Override public int getEventHandlersCount() { return eventHandlers_.size(); } /** * * *
   * Handlers associated with the page to handle events such as webhook errors,
   * no match or no input.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EventHandler getEventHandlers(int index) { return eventHandlers_.get(index); } /** * * *
   * Handlers associated with the page to handle events such as webhook errors,
   * no match or no input.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder getEventHandlersOrBuilder( int index) { return eventHandlers_.get(index); } public static final int ADVANCED_SETTINGS_FIELD_NUMBER = 13; private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_; /** * * *
   * Hierarchical advanced settings for this page. The settings exposed at the
   * lower level overrides the settings exposed at the higher level.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; * * @return Whether the advancedSettings field is set. */ @java.lang.Override public boolean hasAdvancedSettings() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Hierarchical advanced settings for this page. The settings exposed at the
   * lower level overrides the settings exposed at the higher level.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; * * @return The advancedSettings. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() { return advancedSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance() : advancedSettings_; } /** * * *
   * Hierarchical advanced settings for this page. The settings exposed at the
   * lower level overrides the settings exposed at the higher level.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder() { return advancedSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance() : advancedSettings_; } public static final int KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER = 18; private com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledgeConnectorSettings_; /** * * *
   * Optional. Knowledge connector configuration.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the knowledgeConnectorSettings field is set. */ @java.lang.Override public boolean hasKnowledgeConnectorSettings() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Optional. Knowledge connector configuration.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The knowledgeConnectorSettings. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings getKnowledgeConnectorSettings() { return knowledgeConnectorSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.getDefaultInstance() : knowledgeConnectorSettings_; } /** * * *
   * Optional. Knowledge connector configuration.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettingsOrBuilder getKnowledgeConnectorSettingsOrBuilder() { return knowledgeConnectorSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.getDefaultInstance() : knowledgeConnectorSettings_; } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getForm()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getEntryFulfillment()); } for (int i = 0; i < transitionRoutes_.size(); i++) { output.writeMessage(9, transitionRoutes_.get(i)); } for (int i = 0; i < eventHandlers_.size(); i++) { output.writeMessage(10, eventHandlers_.get(i)); } for (int i = 0; i < transitionRouteGroups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 11, transitionRouteGroups_.getRaw(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(13, getAdvancedSettings()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(18, getKnowledgeConnectorSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, description_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getForm()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEntryFulfillment()); } for (int i = 0; i < transitionRoutes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, transitionRoutes_.get(i)); } for (int i = 0; i < eventHandlers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, eventHandlers_.get(i)); } { int dataSize = 0; for (int i = 0; i < transitionRouteGroups_.size(); i++) { dataSize += computeStringSizeNoTag(transitionRouteGroups_.getRaw(i)); } size += dataSize; size += 1 * getTransitionRouteGroupsList().size(); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getAdvancedSettings()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 18, getKnowledgeConnectorSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, description_); } 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.Page)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.Page other = (com.google.cloud.dialogflow.cx.v3beta1.Page) obj; if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasEntryFulfillment() != other.hasEntryFulfillment()) return false; if (hasEntryFulfillment()) { if (!getEntryFulfillment().equals(other.getEntryFulfillment())) return false; } if (hasForm() != other.hasForm()) return false; if (hasForm()) { if (!getForm().equals(other.getForm())) return false; } if (!getTransitionRouteGroupsList().equals(other.getTransitionRouteGroupsList())) return false; if (!getTransitionRoutesList().equals(other.getTransitionRoutesList())) return false; if (!getEventHandlersList().equals(other.getEventHandlersList())) return false; if (hasAdvancedSettings() != other.hasAdvancedSettings()) return false; if (hasAdvancedSettings()) { if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false; } if (hasKnowledgeConnectorSettings() != other.hasKnowledgeConnectorSettings()) return false; if (hasKnowledgeConnectorSettings()) { if (!getKnowledgeConnectorSettings().equals(other.getKnowledgeConnectorSettings())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasEntryFulfillment()) { hash = (37 * hash) + ENTRY_FULFILLMENT_FIELD_NUMBER; hash = (53 * hash) + getEntryFulfillment().hashCode(); } if (hasForm()) { hash = (37 * hash) + FORM_FIELD_NUMBER; hash = (53 * hash) + getForm().hashCode(); } if (getTransitionRouteGroupsCount() > 0) { hash = (37 * hash) + TRANSITION_ROUTE_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getTransitionRouteGroupsList().hashCode(); } if (getTransitionRoutesCount() > 0) { hash = (37 * hash) + TRANSITION_ROUTES_FIELD_NUMBER; hash = (53 * hash) + getTransitionRoutesList().hashCode(); } if (getEventHandlersCount() > 0) { hash = (37 * hash) + EVENT_HANDLERS_FIELD_NUMBER; hash = (53 * hash) + getEventHandlersList().hashCode(); } if (hasAdvancedSettings()) { hash = (37 * hash) + ADVANCED_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedSettings().hashCode(); } if (hasKnowledgeConnectorSettings()) { hash = (37 * hash) + KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getKnowledgeConnectorSettings().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.Page parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Page 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.Page parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Page 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.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Page 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.Page 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.Page 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.Page 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.Page 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.Page 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.Page 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.Page 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; } /** * * *
   * A Dialogflow CX conversation (session) can be described and visualized as a
   * state machine. The states of a CX session are represented by pages.
   *
   * For each flow, you define many pages, where your combined pages can handle a
   * complete conversation on the topics the flow is designed for. At any given
   * moment, exactly one page is the current page, the current page is considered
   * active, and the flow associated with that page is considered active. Every
   * flow has a special start page. When a flow initially becomes active, the
   * start page page becomes the current page. For each conversational turn, the
   * current page will either stay the same or transition to another page.
   *
   * You configure each page to collect information from the end-user that is
   * relevant for the conversational state represented by the page.
   *
   * For more information, see the
   * [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Page} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Page) com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.PageProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Page_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.PageProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Page_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Page.class, com.google.cloud.dialogflow.cx.v3beta1.Page.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.Page.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEntryFulfillmentFieldBuilder(); getFormFieldBuilder(); getTransitionRoutesFieldBuilder(); getEventHandlersFieldBuilder(); getAdvancedSettingsFieldBuilder(); getKnowledgeConnectorSettingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; displayName_ = ""; description_ = ""; entryFulfillment_ = null; if (entryFulfillmentBuilder_ != null) { entryFulfillmentBuilder_.dispose(); entryFulfillmentBuilder_ = null; } form_ = null; if (formBuilder_ != null) { formBuilder_.dispose(); formBuilder_ = null; } transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); } else { transitionRoutes_ = null; transitionRoutesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); } else { eventHandlers_ = null; eventHandlersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); advancedSettings_ = null; if (advancedSettingsBuilder_ != null) { advancedSettingsBuilder_.dispose(); advancedSettingsBuilder_ = null; } knowledgeConnectorSettings_ = null; if (knowledgeConnectorSettingsBuilder_ != null) { knowledgeConnectorSettingsBuilder_.dispose(); knowledgeConnectorSettingsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.PageProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Page_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Page getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Page build() { com.google.cloud.dialogflow.cx.v3beta1.Page result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Page buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Page result = new com.google.cloud.dialogflow.cx.v3beta1.Page(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3beta1.Page result) { if (transitionRoutesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); bitField0_ = (bitField0_ & ~0x00000040); } result.transitionRoutes_ = transitionRoutes_; } else { result.transitionRoutes_ = transitionRoutesBuilder_.build(); } if (eventHandlersBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_); bitField0_ = (bitField0_ & ~0x00000080); } result.eventHandlers_ = eventHandlers_; } else { result.eventHandlers_ = eventHandlersBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Page result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.entryFulfillment_ = entryFulfillmentBuilder_ == null ? entryFulfillment_ : entryFulfillmentBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.form_ = formBuilder_ == null ? form_ : formBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { transitionRouteGroups_.makeImmutable(); result.transitionRouteGroups_ = transitionRouteGroups_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.advancedSettings_ = advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { result.knowledgeConnectorSettings_ = knowledgeConnectorSettingsBuilder_ == null ? knowledgeConnectorSettings_ : knowledgeConnectorSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } 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.Page) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Page) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Page other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasEntryFulfillment()) { mergeEntryFulfillment(other.getEntryFulfillment()); } if (other.hasForm()) { mergeForm(other.getForm()); } if (!other.transitionRouteGroups_.isEmpty()) { if (transitionRouteGroups_.isEmpty()) { transitionRouteGroups_ = other.transitionRouteGroups_; bitField0_ |= 0x00000020; } else { ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.addAll(other.transitionRouteGroups_); } onChanged(); } if (transitionRoutesBuilder_ == null) { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutes_.isEmpty()) { transitionRoutes_ = other.transitionRoutes_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTransitionRoutesIsMutable(); transitionRoutes_.addAll(other.transitionRoutes_); } onChanged(); } } else { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutesBuilder_.isEmpty()) { transitionRoutesBuilder_.dispose(); transitionRoutesBuilder_ = null; transitionRoutes_ = other.transitionRoutes_; bitField0_ = (bitField0_ & ~0x00000040); transitionRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionRoutesFieldBuilder() : null; } else { transitionRoutesBuilder_.addAllMessages(other.transitionRoutes_); } } } if (eventHandlersBuilder_ == null) { if (!other.eventHandlers_.isEmpty()) { if (eventHandlers_.isEmpty()) { eventHandlers_ = other.eventHandlers_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureEventHandlersIsMutable(); eventHandlers_.addAll(other.eventHandlers_); } onChanged(); } } else { if (!other.eventHandlers_.isEmpty()) { if (eventHandlersBuilder_.isEmpty()) { eventHandlersBuilder_.dispose(); eventHandlersBuilder_ = null; eventHandlers_ = other.eventHandlers_; bitField0_ = (bitField0_ & ~0x00000080); eventHandlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventHandlersFieldBuilder() : null; } else { eventHandlersBuilder_.addAllMessages(other.eventHandlers_); } } } if (other.hasAdvancedSettings()) { mergeAdvancedSettings(other.getAdvancedSettings()); } if (other.hasKnowledgeConnectorSettings()) { mergeKnowledgeConnectorSettings(other.getKnowledgeConnectorSettings()); } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 58: { input.readMessage( getEntryFulfillmentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 58 case 74: { com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.parser(), extensionRegistry); if (transitionRoutesBuilder_ == null) { ensureTransitionRoutesIsMutable(); transitionRoutes_.add(m); } else { transitionRoutesBuilder_.addMessage(m); } break; } // case 74 case 82: { com.google.cloud.dialogflow.cx.v3beta1.EventHandler m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.EventHandler.parser(), extensionRegistry); if (eventHandlersBuilder_ == null) { ensureEventHandlersIsMutable(); eventHandlers_.add(m); } else { eventHandlersBuilder_.addMessage(m); } break; } // case 82 case 90: { java.lang.String s = input.readStringRequireUtf8(); ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.add(s); break; } // case 90 case 106: { input.readMessage( getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 106 case 146: { input.readMessage( getKnowledgeConnectorSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 146 case 154: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 154 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 name_ = ""; /** * * *
     * The unique identifier of the page.
     * Required for the
     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]
     * method.
     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]
     * populates the name automatically.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The unique identifier of the page.
     * Required for the
     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]
     * method.
     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]
     * populates the name automatically.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The unique identifier of the page.
     * Required for the
     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]
     * method.
     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]
     * populates the name automatically.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The unique identifier of the page.
     * Required for the
     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]
     * method.
     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]
     * populates the name automatically.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The unique identifier of the page.
     * Required for the
     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage]
     * method.
     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage]
     * populates the name automatically.
     * Format:
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
     * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
     * Required. The human-readable name of the page, unique within the flow.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The human-readable name of the page, unique within the flow.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The human-readable name of the page, unique within the flow.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. The human-readable name of the page, unique within the flow.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Required. The human-readable name of the page, unique within the flow.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * The description of the page. The maximum length is 500 characters.
     * 
* * string description = 19; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The description of the page. The maximum length is 500 characters.
     * 
* * string description = 19; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The description of the page. The maximum length is 500 characters.
     * 
* * string description = 19; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The description of the page. The maximum length is 500 characters.
     * 
* * string description = 19; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The description of the page. The maximum length is 500 characters.
     * 
* * string description = 19; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3beta1.Fulfillment entryFulfillment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Fulfillment, com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder, com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder> entryFulfillmentBuilder_; /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; * * @return Whether the entryFulfillment field is set. */ public boolean hasEntryFulfillment() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; * * @return The entryFulfillment. */ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getEntryFulfillment() { if (entryFulfillmentBuilder_ == null) { return entryFulfillment_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() : entryFulfillment_; } else { return entryFulfillmentBuilder_.getMessage(); } } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public Builder setEntryFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) { if (entryFulfillmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } entryFulfillment_ = value; } else { entryFulfillmentBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public Builder setEntryFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder builderForValue) { if (entryFulfillmentBuilder_ == null) { entryFulfillment_ = builderForValue.build(); } else { entryFulfillmentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) { if (entryFulfillmentBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && entryFulfillment_ != null && entryFulfillment_ != com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()) { getEntryFulfillmentBuilder().mergeFrom(value); } else { entryFulfillment_ = value; } } else { entryFulfillmentBuilder_.mergeFrom(value); } if (entryFulfillment_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public Builder clearEntryFulfillment() { bitField0_ = (bitField0_ & ~0x00000008); entryFulfillment_ = null; if (entryFulfillmentBuilder_ != null) { entryFulfillmentBuilder_.dispose(); entryFulfillmentBuilder_ = null; } onChanged(); return this; } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder getEntryFulfillmentBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEntryFulfillmentFieldBuilder().getBuilder(); } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder getEntryFulfillmentOrBuilder() { if (entryFulfillmentBuilder_ != null) { return entryFulfillmentBuilder_.getMessageOrBuilder(); } else { return entryFulfillment_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() : entryFulfillment_; } } /** * * *
     * The fulfillment to call when the session is entering the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Fulfillment, com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder, com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder> getEntryFulfillmentFieldBuilder() { if (entryFulfillmentBuilder_ == null) { entryFulfillmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Fulfillment, com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder, com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder>( getEntryFulfillment(), getParentForChildren(), isClean()); entryFulfillment_ = null; } return entryFulfillmentBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.Form form_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Form, com.google.cloud.dialogflow.cx.v3beta1.Form.Builder, com.google.cloud.dialogflow.cx.v3beta1.FormOrBuilder> formBuilder_; /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; * * @return Whether the form field is set. */ public boolean hasForm() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; * * @return The form. */ public com.google.cloud.dialogflow.cx.v3beta1.Form getForm() { if (formBuilder_ == null) { return form_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Form.getDefaultInstance() : form_; } else { return formBuilder_.getMessage(); } } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public Builder setForm(com.google.cloud.dialogflow.cx.v3beta1.Form value) { if (formBuilder_ == null) { if (value == null) { throw new NullPointerException(); } form_ = value; } else { formBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public Builder setForm(com.google.cloud.dialogflow.cx.v3beta1.Form.Builder builderForValue) { if (formBuilder_ == null) { form_ = builderForValue.build(); } else { formBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public Builder mergeForm(com.google.cloud.dialogflow.cx.v3beta1.Form value) { if (formBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && form_ != null && form_ != com.google.cloud.dialogflow.cx.v3beta1.Form.getDefaultInstance()) { getFormBuilder().mergeFrom(value); } else { form_ = value; } } else { formBuilder_.mergeFrom(value); } if (form_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public Builder clearForm() { bitField0_ = (bitField0_ & ~0x00000010); form_ = null; if (formBuilder_ != null) { formBuilder_.dispose(); formBuilder_ = null; } onChanged(); return this; } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.Form.Builder getFormBuilder() { bitField0_ |= 0x00000010; onChanged(); return getFormFieldBuilder().getBuilder(); } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.FormOrBuilder getFormOrBuilder() { if (formBuilder_ != null) { return formBuilder_.getMessageOrBuilder(); } else { return form_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Form.getDefaultInstance() : form_; } } /** * * *
     * The form associated with the page, used for collecting parameters
     * relevant to the page.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Form, com.google.cloud.dialogflow.cx.v3beta1.Form.Builder, com.google.cloud.dialogflow.cx.v3beta1.FormOrBuilder> getFormFieldBuilder() { if (formBuilder_ == null) { formBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Form, com.google.cloud.dialogflow.cx.v3beta1.Form.Builder, com.google.cloud.dialogflow.cx.v3beta1.FormOrBuilder>( getForm(), getParentForChildren(), isClean()); form_ = null; } return formBuilder_; } private com.google.protobuf.LazyStringArrayList transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTransitionRouteGroupsIsMutable() { if (!transitionRouteGroups_.isModifiable()) { transitionRouteGroups_ = new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_); } bitField0_ |= 0x00000020; } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @return A list containing the transitionRouteGroups. */ public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() { transitionRouteGroups_.makeImmutable(); return transitionRouteGroups_; } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @return The count of transitionRouteGroups. */ public int getTransitionRouteGroupsCount() { return transitionRouteGroups_.size(); } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param index The index of the element to return. * @return The transitionRouteGroups at the given index. */ public java.lang.String getTransitionRouteGroups(int index) { return transitionRouteGroups_.get(index); } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param index The index of the value to return. * @return The bytes of the transitionRouteGroups at the given index. */ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { return transitionRouteGroups_.getByteString(index); } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param index The index to set the value at. * @param value The transitionRouteGroups to set. * @return This builder for chaining. */ public Builder setTransitionRouteGroups(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.set(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param value The transitionRouteGroups to add. * @return This builder for chaining. */ public Builder addTransitionRouteGroups(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param values The transitionRouteGroups to add. * @return This builder for chaining. */ public Builder addAllTransitionRouteGroups(java.lang.Iterable values) { ensureTransitionRouteGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionRouteGroups_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearTransitionRouteGroups() { transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); ; onChanged(); return this; } /** * * *
     * Ordered list of
     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]
     * added to the page. Transition route groups must be unique within a page. If
     * the page links both flow-level transition route groups and agent-level
     * transition route groups, the flow-level ones will have higher priority and
     * will be put before the agent-level ones.
     *
     * *   If multiple transition routes within a page scope refer to the same
     *     intent, then the precedence order is: page's transition route -> page's
     *     transition route group -> flow's transition routes.
     *
     * *   If multiple transition route groups within a page contain the same
     *     intent, then the first group in the ordered list takes precedence.
     *
     * Format:`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * or
     * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
     * for agent-level groups.
     * 
* * * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } * * * @param value The bytes of the transitionRouteGroups to add. * @return This builder for chaining. */ public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } private java.util.List transitionRoutes_ = java.util.Collections.emptyList(); private void ensureTransitionRoutesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { transitionRoutes_ = new java.util.ArrayList( transitionRoutes_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder> transitionRoutesBuilder_; /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public java.util.List getTransitionRoutesList() { if (transitionRoutesBuilder_ == null) { return java.util.Collections.unmodifiableList(transitionRoutes_); } else { return transitionRoutesBuilder_.getMessageList(); } } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public int getTransitionRoutesCount() { if (transitionRoutesBuilder_ == null) { return transitionRoutes_.size(); } else { return transitionRoutesBuilder_.getCount(); } } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoutes(int index) { if (transitionRoutesBuilder_ == null) { return transitionRoutes_.get(index); } else { return transitionRoutesBuilder_.getMessage(index); } } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder setTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) { if (transitionRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionRoutesIsMutable(); transitionRoutes_.set(index, value); onChanged(); } else { transitionRoutesBuilder_.setMessage(index, value); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder setTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) { if (transitionRoutesBuilder_ == null) { ensureTransitionRoutesIsMutable(); transitionRoutes_.set(index, builderForValue.build()); onChanged(); } else { transitionRoutesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder addTransitionRoutes( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) { if (transitionRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionRoutesIsMutable(); transitionRoutes_.add(value); onChanged(); } else { transitionRoutesBuilder_.addMessage(value); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder addTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) { if (transitionRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionRoutesIsMutable(); transitionRoutes_.add(index, value); onChanged(); } else { transitionRoutesBuilder_.addMessage(index, value); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder addTransitionRoutes( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) { if (transitionRoutesBuilder_ == null) { ensureTransitionRoutesIsMutable(); transitionRoutes_.add(builderForValue.build()); onChanged(); } else { transitionRoutesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder addTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) { if (transitionRoutesBuilder_ == null) { ensureTransitionRoutesIsMutable(); transitionRoutes_.add(index, builderForValue.build()); onChanged(); } else { transitionRoutesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder addAllTransitionRoutes( java.lang.Iterable values) { if (transitionRoutesBuilder_ == null) { ensureTransitionRoutesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionRoutes_); onChanged(); } else { transitionRoutesBuilder_.addAllMessages(values); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder clearTransitionRoutes() { if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { transitionRoutesBuilder_.clear(); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public Builder removeTransitionRoutes(int index) { if (transitionRoutesBuilder_ == null) { ensureTransitionRoutesIsMutable(); transitionRoutes_.remove(index); onChanged(); } else { transitionRoutesBuilder_.remove(index); } return this; } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder getTransitionRoutesBuilder(int index) { return getTransitionRoutesFieldBuilder().getBuilder(index); } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRoutesOrBuilder(int index) { if (transitionRoutesBuilder_ == null) { return transitionRoutes_.get(index); } else { return transitionRoutesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public java.util.List getTransitionRoutesOrBuilderList() { if (transitionRoutesBuilder_ != null) { return transitionRoutesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transitionRoutes_); } } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder addTransitionRoutesBuilder() { return getTransitionRoutesFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance()); } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder addTransitionRoutesBuilder(int index) { return getTransitionRoutesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance()); } /** * * *
     * A list of transitions for the transition rules of this page.
     * They route the conversation to another page in the same flow, or another
     * flow.
     *
     * When we are in a certain page, the TransitionRoutes are evalauted in the
     * following order:
     *
     * *   TransitionRoutes defined in the page with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in flow with intent specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups]
     *     with intent specified.
     * *   TransitionRoutes defined in the page with only condition specified.
     * *   TransitionRoutes defined in the
     *     [transition route
     *     groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]
     *     with only condition specified.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 9; * */ public java.util.List getTransitionRoutesBuilderList() { return getTransitionRoutesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder> getTransitionRoutesFieldBuilder() { if (transitionRoutesBuilder_ == null) { transitionRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>( transitionRoutes_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); transitionRoutes_ = null; } return transitionRoutesBuilder_; } private java.util.List eventHandlers_ = java.util.Collections.emptyList(); private void ensureEventHandlersIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { eventHandlers_ = new java.util.ArrayList( eventHandlers_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.EventHandler, com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder> eventHandlersBuilder_; /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public java.util.List getEventHandlersList() { if (eventHandlersBuilder_ == null) { return java.util.Collections.unmodifiableList(eventHandlers_); } else { return eventHandlersBuilder_.getMessageList(); } } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public int getEventHandlersCount() { if (eventHandlersBuilder_ == null) { return eventHandlers_.size(); } else { return eventHandlersBuilder_.getCount(); } } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler getEventHandlers(int index) { if (eventHandlersBuilder_ == null) { return eventHandlers_.get(index); } else { return eventHandlersBuilder_.getMessage(index); } } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder setEventHandlers( int index, com.google.cloud.dialogflow.cx.v3beta1.EventHandler value) { if (eventHandlersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventHandlersIsMutable(); eventHandlers_.set(index, value); onChanged(); } else { eventHandlersBuilder_.setMessage(index, value); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder setEventHandlers( int index, com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder builderForValue) { if (eventHandlersBuilder_ == null) { ensureEventHandlersIsMutable(); eventHandlers_.set(index, builderForValue.build()); onChanged(); } else { eventHandlersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder addEventHandlers(com.google.cloud.dialogflow.cx.v3beta1.EventHandler value) { if (eventHandlersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventHandlersIsMutable(); eventHandlers_.add(value); onChanged(); } else { eventHandlersBuilder_.addMessage(value); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder addEventHandlers( int index, com.google.cloud.dialogflow.cx.v3beta1.EventHandler value) { if (eventHandlersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventHandlersIsMutable(); eventHandlers_.add(index, value); onChanged(); } else { eventHandlersBuilder_.addMessage(index, value); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder addEventHandlers( com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder builderForValue) { if (eventHandlersBuilder_ == null) { ensureEventHandlersIsMutable(); eventHandlers_.add(builderForValue.build()); onChanged(); } else { eventHandlersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder addEventHandlers( int index, com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder builderForValue) { if (eventHandlersBuilder_ == null) { ensureEventHandlersIsMutable(); eventHandlers_.add(index, builderForValue.build()); onChanged(); } else { eventHandlersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder addAllEventHandlers( java.lang.Iterable values) { if (eventHandlersBuilder_ == null) { ensureEventHandlersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventHandlers_); onChanged(); } else { eventHandlersBuilder_.addAllMessages(values); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder clearEventHandlers() { if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { eventHandlersBuilder_.clear(); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public Builder removeEventHandlers(int index) { if (eventHandlersBuilder_ == null) { ensureEventHandlersIsMutable(); eventHandlers_.remove(index); onChanged(); } else { eventHandlersBuilder_.remove(index); } return this; } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder getEventHandlersBuilder( int index) { return getEventHandlersFieldBuilder().getBuilder(index); } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder getEventHandlersOrBuilder( int index) { if (eventHandlersBuilder_ == null) { return eventHandlers_.get(index); } else { return eventHandlersBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public java.util.List getEventHandlersOrBuilderList() { if (eventHandlersBuilder_ != null) { return eventHandlersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(eventHandlers_); } } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder addEventHandlersBuilder() { return getEventHandlersFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance()); } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder addEventHandlersBuilder( int index) { return getEventHandlersFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance()); } /** * * *
     * Handlers associated with the page to handle events such as webhook errors,
     * no match or no input.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handlers = 10; */ public java.util.List getEventHandlersBuilderList() { return getEventHandlersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.EventHandler, com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder> getEventHandlersFieldBuilder() { if (eventHandlersBuilder_ == null) { eventHandlersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.EventHandler, com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>( eventHandlers_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); eventHandlers_ = null; } return eventHandlersBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advancedSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings, com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder> advancedSettingsBuilder_; /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; * * @return Whether the advancedSettings field is set. */ public boolean hasAdvancedSettings() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; * * @return The advancedSettings. */ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettings() { if (advancedSettingsBuilder_ == null) { return advancedSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance() : advancedSettings_; } else { return advancedSettingsBuilder_.getMessage(); } } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ public Builder setAdvancedSettings( com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) { if (advancedSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } advancedSettings_ = value; } else { advancedSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ public Builder setAdvancedSettings( com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder builderForValue) { if (advancedSettingsBuilder_ == null) { advancedSettings_ = builderForValue.build(); } else { advancedSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ public Builder mergeAdvancedSettings( com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) { if (advancedSettingsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && advancedSettings_ != null && advancedSettings_ != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()) { getAdvancedSettingsBuilder().mergeFrom(value); } else { advancedSettings_ = value; } } else { advancedSettingsBuilder_.mergeFrom(value); } if (advancedSettings_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ public Builder clearAdvancedSettings() { bitField0_ = (bitField0_ & ~0x00000100); advancedSettings_ = null; if (advancedSettingsBuilder_ != null) { advancedSettingsBuilder_.dispose(); advancedSettingsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder getAdvancedSettingsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getAdvancedSettingsFieldBuilder().getBuilder(); } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder() { if (advancedSettingsBuilder_ != null) { return advancedSettingsBuilder_.getMessageOrBuilder(); } else { return advancedSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance() : advancedSettings_; } } /** * * *
     * Hierarchical advanced settings for this page. The settings exposed at the
     * lower level overrides the settings exposed at the higher level.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings, com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder> getAdvancedSettingsFieldBuilder() { if (advancedSettingsBuilder_ == null) { advancedSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings, com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder>( getAdvancedSettings(), getParentForChildren(), isClean()); advancedSettings_ = null; } return advancedSettingsBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledgeConnectorSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings, com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettingsOrBuilder> knowledgeConnectorSettingsBuilder_; /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the knowledgeConnectorSettings field is set. */ public boolean hasKnowledgeConnectorSettings() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The knowledgeConnectorSettings. */ public com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings getKnowledgeConnectorSettings() { if (knowledgeConnectorSettingsBuilder_ == null) { return knowledgeConnectorSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.getDefaultInstance() : knowledgeConnectorSettings_; } else { return knowledgeConnectorSettingsBuilder_.getMessage(); } } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKnowledgeConnectorSettings( com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings value) { if (knowledgeConnectorSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } knowledgeConnectorSettings_ = value; } else { knowledgeConnectorSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setKnowledgeConnectorSettings( com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.Builder builderForValue) { if (knowledgeConnectorSettingsBuilder_ == null) { knowledgeConnectorSettings_ = builderForValue.build(); } else { knowledgeConnectorSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeKnowledgeConnectorSettings( com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings value) { if (knowledgeConnectorSettingsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && knowledgeConnectorSettings_ != null && knowledgeConnectorSettings_ != com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings .getDefaultInstance()) { getKnowledgeConnectorSettingsBuilder().mergeFrom(value); } else { knowledgeConnectorSettings_ = value; } } else { knowledgeConnectorSettingsBuilder_.mergeFrom(value); } if (knowledgeConnectorSettings_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearKnowledgeConnectorSettings() { bitField0_ = (bitField0_ & ~0x00000200); knowledgeConnectorSettings_ = null; if (knowledgeConnectorSettingsBuilder_ != null) { knowledgeConnectorSettingsBuilder_.dispose(); knowledgeConnectorSettingsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.Builder getKnowledgeConnectorSettingsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getKnowledgeConnectorSettingsFieldBuilder().getBuilder(); } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettingsOrBuilder getKnowledgeConnectorSettingsOrBuilder() { if (knowledgeConnectorSettingsBuilder_ != null) { return knowledgeConnectorSettingsBuilder_.getMessageOrBuilder(); } else { return knowledgeConnectorSettings_ == null ? com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.getDefaultInstance() : knowledgeConnectorSettings_; } } /** * * *
     * Optional. Knowledge connector configuration.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings knowledge_connector_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings, com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettingsOrBuilder> getKnowledgeConnectorSettingsFieldBuilder() { if (knowledgeConnectorSettingsBuilder_ == null) { knowledgeConnectorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings, com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.Builder, com.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettingsOrBuilder>( getKnowledgeConnectorSettings(), getParentForChildren(), isClean()); knowledgeConnectorSettings_ = null; } return knowledgeConnectorSettingsBuilder_; } @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.Page) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Page) private static final com.google.cloud.dialogflow.cx.v3beta1.Page DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Page(); } public static com.google.cloud.dialogflow.cx.v3beta1.Page getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Page 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.Page getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy