1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/dialogflow/cx/v3/page.proto 18 19 package com.google.cloud.dialogflow.cx.v3; 20 21 /** 22 * 23 * 24 * <pre> 25 * A Dialogflow CX conversation (session) can be described and visualized as a 26 * state machine. The states of a CX session are represented by pages. 27 * For each flow, you define many pages, where your combined pages can handle a 28 * complete conversation on the topics the flow is designed for. At any given 29 * moment, exactly one page is the current page, the current page is considered 30 * active, and the flow associated with that page is considered active. Every 31 * flow has a special start page. When a flow initially becomes active, the 32 * start page page becomes the current page. For each conversational turn, the 33 * current page will either stay the same or transition to another page. 34 * You configure each page to collect information from the end-user that is 35 * relevant for the conversational state represented by the page. 36 * For more information, see the 37 * [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page). 38 * </pre> 39 * 40 * Protobuf type {@code google.cloud.dialogflow.cx.v3.Page} 41 */ 42 public final class Page extends com.google.protobuf.GeneratedMessageV3 43 implements 44 // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Page) 45 PageOrBuilder { 46 private static final long serialVersionUID = 0L; 47 // Use Page.newBuilder() to construct. Page(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)48 private Page(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 49 super(builder); 50 } 51 Page()52 private Page() { 53 name_ = ""; 54 displayName_ = ""; 55 transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; 56 transitionRoutes_ = java.util.Collections.emptyList(); 57 eventHandlers_ = java.util.Collections.emptyList(); 58 } 59 60 @java.lang.Override 61 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)62 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 63 return new Page(); 64 } 65 66 @java.lang.Override getUnknownFields()67 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 68 return this.unknownFields; 69 } 70 getDescriptor()71 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 72 return com.google.cloud.dialogflow.cx.v3.PageProto 73 .internal_static_google_cloud_dialogflow_cx_v3_Page_descriptor; 74 } 75 76 @java.lang.Override 77 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()78 internalGetFieldAccessorTable() { 79 return com.google.cloud.dialogflow.cx.v3.PageProto 80 .internal_static_google_cloud_dialogflow_cx_v3_Page_fieldAccessorTable 81 .ensureFieldAccessorsInitialized( 82 com.google.cloud.dialogflow.cx.v3.Page.class, 83 com.google.cloud.dialogflow.cx.v3.Page.Builder.class); 84 } 85 86 public static final int NAME_FIELD_NUMBER = 1; 87 88 @SuppressWarnings("serial") 89 private volatile java.lang.Object name_ = ""; 90 /** 91 * 92 * 93 * <pre> 94 * The unique identifier of the page. 95 * Required for the 96 * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. 97 * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] 98 * populates the name automatically. 99 * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 100 * ID>/flows/<Flow ID>/pages/<Page ID>`. 101 * </pre> 102 * 103 * <code>string name = 1;</code> 104 * 105 * @return The name. 106 */ 107 @java.lang.Override getName()108 public java.lang.String getName() { 109 java.lang.Object ref = name_; 110 if (ref instanceof java.lang.String) { 111 return (java.lang.String) ref; 112 } else { 113 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 114 java.lang.String s = bs.toStringUtf8(); 115 name_ = s; 116 return s; 117 } 118 } 119 /** 120 * 121 * 122 * <pre> 123 * The unique identifier of the page. 124 * Required for the 125 * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. 126 * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] 127 * populates the name automatically. 128 * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 129 * ID>/flows/<Flow ID>/pages/<Page ID>`. 130 * </pre> 131 * 132 * <code>string name = 1;</code> 133 * 134 * @return The bytes for name. 135 */ 136 @java.lang.Override getNameBytes()137 public com.google.protobuf.ByteString getNameBytes() { 138 java.lang.Object ref = name_; 139 if (ref instanceof java.lang.String) { 140 com.google.protobuf.ByteString b = 141 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 142 name_ = b; 143 return b; 144 } else { 145 return (com.google.protobuf.ByteString) ref; 146 } 147 } 148 149 public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 150 151 @SuppressWarnings("serial") 152 private volatile java.lang.Object displayName_ = ""; 153 /** 154 * 155 * 156 * <pre> 157 * Required. The human-readable name of the page, unique within the flow. 158 * </pre> 159 * 160 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 161 * 162 * @return The displayName. 163 */ 164 @java.lang.Override getDisplayName()165 public java.lang.String getDisplayName() { 166 java.lang.Object ref = displayName_; 167 if (ref instanceof java.lang.String) { 168 return (java.lang.String) ref; 169 } else { 170 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 171 java.lang.String s = bs.toStringUtf8(); 172 displayName_ = s; 173 return s; 174 } 175 } 176 /** 177 * 178 * 179 * <pre> 180 * Required. The human-readable name of the page, unique within the flow. 181 * </pre> 182 * 183 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 184 * 185 * @return The bytes for displayName. 186 */ 187 @java.lang.Override getDisplayNameBytes()188 public com.google.protobuf.ByteString getDisplayNameBytes() { 189 java.lang.Object ref = displayName_; 190 if (ref instanceof java.lang.String) { 191 com.google.protobuf.ByteString b = 192 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 193 displayName_ = b; 194 return b; 195 } else { 196 return (com.google.protobuf.ByteString) ref; 197 } 198 } 199 200 public static final int ENTRY_FULFILLMENT_FIELD_NUMBER = 7; 201 private com.google.cloud.dialogflow.cx.v3.Fulfillment entryFulfillment_; 202 /** 203 * 204 * 205 * <pre> 206 * The fulfillment to call when the session is entering the page. 207 * </pre> 208 * 209 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 210 * 211 * @return Whether the entryFulfillment field is set. 212 */ 213 @java.lang.Override hasEntryFulfillment()214 public boolean hasEntryFulfillment() { 215 return entryFulfillment_ != null; 216 } 217 /** 218 * 219 * 220 * <pre> 221 * The fulfillment to call when the session is entering the page. 222 * </pre> 223 * 224 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 225 * 226 * @return The entryFulfillment. 227 */ 228 @java.lang.Override getEntryFulfillment()229 public com.google.cloud.dialogflow.cx.v3.Fulfillment getEntryFulfillment() { 230 return entryFulfillment_ == null 231 ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance() 232 : entryFulfillment_; 233 } 234 /** 235 * 236 * 237 * <pre> 238 * The fulfillment to call when the session is entering the page. 239 * </pre> 240 * 241 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 242 */ 243 @java.lang.Override getEntryFulfillmentOrBuilder()244 public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getEntryFulfillmentOrBuilder() { 245 return entryFulfillment_ == null 246 ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance() 247 : entryFulfillment_; 248 } 249 250 public static final int FORM_FIELD_NUMBER = 4; 251 private com.google.cloud.dialogflow.cx.v3.Form form_; 252 /** 253 * 254 * 255 * <pre> 256 * The form associated with the page, used for collecting parameters 257 * relevant to the page. 258 * </pre> 259 * 260 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 261 * 262 * @return Whether the form field is set. 263 */ 264 @java.lang.Override hasForm()265 public boolean hasForm() { 266 return form_ != null; 267 } 268 /** 269 * 270 * 271 * <pre> 272 * The form associated with the page, used for collecting parameters 273 * relevant to the page. 274 * </pre> 275 * 276 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 277 * 278 * @return The form. 279 */ 280 @java.lang.Override getForm()281 public com.google.cloud.dialogflow.cx.v3.Form getForm() { 282 return form_ == null ? com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance() : form_; 283 } 284 /** 285 * 286 * 287 * <pre> 288 * The form associated with the page, used for collecting parameters 289 * relevant to the page. 290 * </pre> 291 * 292 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 293 */ 294 @java.lang.Override getFormOrBuilder()295 public com.google.cloud.dialogflow.cx.v3.FormOrBuilder getFormOrBuilder() { 296 return form_ == null ? com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance() : form_; 297 } 298 299 public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 11; 300 301 @SuppressWarnings("serial") 302 private com.google.protobuf.LazyStringList transitionRouteGroups_; 303 /** 304 * 305 * 306 * <pre> 307 * Ordered list of 308 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 309 * associated with the page. Transition route groups must be unique within a 310 * page. 311 * * If multiple transition routes within a page scope refer to the same 312 * intent, then the precedence order is: page's transition route -> page's 313 * transition route group -> flow's transition routes. 314 * * If multiple transition route groups within a page contain the same 315 * intent, then the first group in the ordered list takes precedence. 316 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 317 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 318 * </pre> 319 * 320 * <code>repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 321 * </code> 322 * 323 * @return A list containing the transitionRouteGroups. 324 */ getTransitionRouteGroupsList()325 public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() { 326 return transitionRouteGroups_; 327 } 328 /** 329 * 330 * 331 * <pre> 332 * Ordered list of 333 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 334 * associated with the page. Transition route groups must be unique within a 335 * page. 336 * * If multiple transition routes within a page scope refer to the same 337 * intent, then the precedence order is: page's transition route -> page's 338 * transition route group -> flow's transition routes. 339 * * If multiple transition route groups within a page contain the same 340 * intent, then the first group in the ordered list takes precedence. 341 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 342 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 343 * </pre> 344 * 345 * <code>repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 346 * </code> 347 * 348 * @return The count of transitionRouteGroups. 349 */ getTransitionRouteGroupsCount()350 public int getTransitionRouteGroupsCount() { 351 return transitionRouteGroups_.size(); 352 } 353 /** 354 * 355 * 356 * <pre> 357 * Ordered list of 358 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 359 * associated with the page. Transition route groups must be unique within a 360 * page. 361 * * If multiple transition routes within a page scope refer to the same 362 * intent, then the precedence order is: page's transition route -> page's 363 * transition route group -> flow's transition routes. 364 * * If multiple transition route groups within a page contain the same 365 * intent, then the first group in the ordered list takes precedence. 366 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 367 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 368 * </pre> 369 * 370 * <code>repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 371 * </code> 372 * 373 * @param index The index of the element to return. 374 * @return The transitionRouteGroups at the given index. 375 */ getTransitionRouteGroups(int index)376 public java.lang.String getTransitionRouteGroups(int index) { 377 return transitionRouteGroups_.get(index); 378 } 379 /** 380 * 381 * 382 * <pre> 383 * Ordered list of 384 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 385 * associated with the page. Transition route groups must be unique within a 386 * page. 387 * * If multiple transition routes within a page scope refer to the same 388 * intent, then the precedence order is: page's transition route -> page's 389 * transition route group -> flow's transition routes. 390 * * If multiple transition route groups within a page contain the same 391 * intent, then the first group in the ordered list takes precedence. 392 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 393 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 394 * </pre> 395 * 396 * <code>repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 397 * </code> 398 * 399 * @param index The index of the value to return. 400 * @return The bytes of the transitionRouteGroups at the given index. 401 */ getTransitionRouteGroupsBytes(int index)402 public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { 403 return transitionRouteGroups_.getByteString(index); 404 } 405 406 public static final int TRANSITION_ROUTES_FIELD_NUMBER = 9; 407 408 @SuppressWarnings("serial") 409 private java.util.List<com.google.cloud.dialogflow.cx.v3.TransitionRoute> transitionRoutes_; 410 /** 411 * 412 * 413 * <pre> 414 * A list of transitions for the transition rules of this page. 415 * They route the conversation to another page in the same flow, or another 416 * flow. 417 * When we are in a certain page, the TransitionRoutes are evalauted in the 418 * following order: 419 * * TransitionRoutes defined in the page with intent specified. 420 * * TransitionRoutes defined in the 421 * [transition route 422 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 423 * with intent specified. 424 * * TransitionRoutes defined in flow with intent specified. 425 * * TransitionRoutes defined in the 426 * [transition route 427 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 428 * with intent specified. 429 * * TransitionRoutes defined in the page with only condition specified. 430 * * TransitionRoutes defined in the 431 * [transition route 432 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 433 * with only condition specified. 434 * </pre> 435 * 436 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 437 */ 438 @java.lang.Override 439 public java.util.List<com.google.cloud.dialogflow.cx.v3.TransitionRoute> getTransitionRoutesList()440 getTransitionRoutesList() { 441 return transitionRoutes_; 442 } 443 /** 444 * 445 * 446 * <pre> 447 * A list of transitions for the transition rules of this page. 448 * They route the conversation to another page in the same flow, or another 449 * flow. 450 * When we are in a certain page, the TransitionRoutes are evalauted in the 451 * following order: 452 * * TransitionRoutes defined in the page with intent specified. 453 * * TransitionRoutes defined in the 454 * [transition route 455 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 456 * with intent specified. 457 * * TransitionRoutes defined in flow with intent specified. 458 * * TransitionRoutes defined in the 459 * [transition route 460 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 461 * with intent specified. 462 * * TransitionRoutes defined in the page with only condition specified. 463 * * TransitionRoutes defined in the 464 * [transition route 465 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 466 * with only condition specified. 467 * </pre> 468 * 469 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 470 */ 471 @java.lang.Override 472 public java.util.List<? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder> getTransitionRoutesOrBuilderList()473 getTransitionRoutesOrBuilderList() { 474 return transitionRoutes_; 475 } 476 /** 477 * 478 * 479 * <pre> 480 * A list of transitions for the transition rules of this page. 481 * They route the conversation to another page in the same flow, or another 482 * flow. 483 * When we are in a certain page, the TransitionRoutes are evalauted in the 484 * following order: 485 * * TransitionRoutes defined in the page with intent specified. 486 * * TransitionRoutes defined in the 487 * [transition route 488 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 489 * with intent specified. 490 * * TransitionRoutes defined in flow with intent specified. 491 * * TransitionRoutes defined in the 492 * [transition route 493 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 494 * with intent specified. 495 * * TransitionRoutes defined in the page with only condition specified. 496 * * TransitionRoutes defined in the 497 * [transition route 498 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 499 * with only condition specified. 500 * </pre> 501 * 502 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 503 */ 504 @java.lang.Override getTransitionRoutesCount()505 public int getTransitionRoutesCount() { 506 return transitionRoutes_.size(); 507 } 508 /** 509 * 510 * 511 * <pre> 512 * A list of transitions for the transition rules of this page. 513 * They route the conversation to another page in the same flow, or another 514 * flow. 515 * When we are in a certain page, the TransitionRoutes are evalauted in the 516 * following order: 517 * * TransitionRoutes defined in the page with intent specified. 518 * * TransitionRoutes defined in the 519 * [transition route 520 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 521 * with intent specified. 522 * * TransitionRoutes defined in flow with intent specified. 523 * * TransitionRoutes defined in the 524 * [transition route 525 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 526 * with intent specified. 527 * * TransitionRoutes defined in the page with only condition specified. 528 * * TransitionRoutes defined in the 529 * [transition route 530 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 531 * with only condition specified. 532 * </pre> 533 * 534 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 535 */ 536 @java.lang.Override getTransitionRoutes(int index)537 public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int index) { 538 return transitionRoutes_.get(index); 539 } 540 /** 541 * 542 * 543 * <pre> 544 * A list of transitions for the transition rules of this page. 545 * They route the conversation to another page in the same flow, or another 546 * flow. 547 * When we are in a certain page, the TransitionRoutes are evalauted in the 548 * following order: 549 * * TransitionRoutes defined in the page with intent specified. 550 * * TransitionRoutes defined in the 551 * [transition route 552 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 553 * with intent specified. 554 * * TransitionRoutes defined in flow with intent specified. 555 * * TransitionRoutes defined in the 556 * [transition route 557 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 558 * with intent specified. 559 * * TransitionRoutes defined in the page with only condition specified. 560 * * TransitionRoutes defined in the 561 * [transition route 562 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 563 * with only condition specified. 564 * </pre> 565 * 566 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 567 */ 568 @java.lang.Override getTransitionRoutesOrBuilder( int index)569 public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOrBuilder( 570 int index) { 571 return transitionRoutes_.get(index); 572 } 573 574 public static final int EVENT_HANDLERS_FIELD_NUMBER = 10; 575 576 @SuppressWarnings("serial") 577 private java.util.List<com.google.cloud.dialogflow.cx.v3.EventHandler> eventHandlers_; 578 /** 579 * 580 * 581 * <pre> 582 * Handlers associated with the page to handle events such as webhook errors, 583 * no match or no input. 584 * </pre> 585 * 586 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 587 */ 588 @java.lang.Override getEventHandlersList()589 public java.util.List<com.google.cloud.dialogflow.cx.v3.EventHandler> getEventHandlersList() { 590 return eventHandlers_; 591 } 592 /** 593 * 594 * 595 * <pre> 596 * Handlers associated with the page to handle events such as webhook errors, 597 * no match or no input. 598 * </pre> 599 * 600 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 601 */ 602 @java.lang.Override 603 public java.util.List<? extends com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder> getEventHandlersOrBuilderList()604 getEventHandlersOrBuilderList() { 605 return eventHandlers_; 606 } 607 /** 608 * 609 * 610 * <pre> 611 * Handlers associated with the page to handle events such as webhook errors, 612 * no match or no input. 613 * </pre> 614 * 615 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 616 */ 617 @java.lang.Override getEventHandlersCount()618 public int getEventHandlersCount() { 619 return eventHandlers_.size(); 620 } 621 /** 622 * 623 * 624 * <pre> 625 * Handlers associated with the page to handle events such as webhook errors, 626 * no match or no input. 627 * </pre> 628 * 629 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 630 */ 631 @java.lang.Override getEventHandlers(int index)632 public com.google.cloud.dialogflow.cx.v3.EventHandler getEventHandlers(int index) { 633 return eventHandlers_.get(index); 634 } 635 /** 636 * 637 * 638 * <pre> 639 * Handlers associated with the page to handle events such as webhook errors, 640 * no match or no input. 641 * </pre> 642 * 643 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 644 */ 645 @java.lang.Override getEventHandlersOrBuilder( int index)646 public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlersOrBuilder( 647 int index) { 648 return eventHandlers_.get(index); 649 } 650 651 private byte memoizedIsInitialized = -1; 652 653 @java.lang.Override isInitialized()654 public final boolean isInitialized() { 655 byte isInitialized = memoizedIsInitialized; 656 if (isInitialized == 1) return true; 657 if (isInitialized == 0) return false; 658 659 memoizedIsInitialized = 1; 660 return true; 661 } 662 663 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)664 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 665 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 666 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 667 } 668 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 669 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); 670 } 671 if (form_ != null) { 672 output.writeMessage(4, getForm()); 673 } 674 if (entryFulfillment_ != null) { 675 output.writeMessage(7, getEntryFulfillment()); 676 } 677 for (int i = 0; i < transitionRoutes_.size(); i++) { 678 output.writeMessage(9, transitionRoutes_.get(i)); 679 } 680 for (int i = 0; i < eventHandlers_.size(); i++) { 681 output.writeMessage(10, eventHandlers_.get(i)); 682 } 683 for (int i = 0; i < transitionRouteGroups_.size(); i++) { 684 com.google.protobuf.GeneratedMessageV3.writeString( 685 output, 11, transitionRouteGroups_.getRaw(i)); 686 } 687 getUnknownFields().writeTo(output); 688 } 689 690 @java.lang.Override getSerializedSize()691 public int getSerializedSize() { 692 int size = memoizedSize; 693 if (size != -1) return size; 694 695 size = 0; 696 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 697 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 698 } 699 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 700 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); 701 } 702 if (form_ != null) { 703 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getForm()); 704 } 705 if (entryFulfillment_ != null) { 706 size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEntryFulfillment()); 707 } 708 for (int i = 0; i < transitionRoutes_.size(); i++) { 709 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, transitionRoutes_.get(i)); 710 } 711 for (int i = 0; i < eventHandlers_.size(); i++) { 712 size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, eventHandlers_.get(i)); 713 } 714 { 715 int dataSize = 0; 716 for (int i = 0; i < transitionRouteGroups_.size(); i++) { 717 dataSize += computeStringSizeNoTag(transitionRouteGroups_.getRaw(i)); 718 } 719 size += dataSize; 720 size += 1 * getTransitionRouteGroupsList().size(); 721 } 722 size += getUnknownFields().getSerializedSize(); 723 memoizedSize = size; 724 return size; 725 } 726 727 @java.lang.Override equals(final java.lang.Object obj)728 public boolean equals(final java.lang.Object obj) { 729 if (obj == this) { 730 return true; 731 } 732 if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Page)) { 733 return super.equals(obj); 734 } 735 com.google.cloud.dialogflow.cx.v3.Page other = (com.google.cloud.dialogflow.cx.v3.Page) obj; 736 737 if (!getName().equals(other.getName())) return false; 738 if (!getDisplayName().equals(other.getDisplayName())) return false; 739 if (hasEntryFulfillment() != other.hasEntryFulfillment()) return false; 740 if (hasEntryFulfillment()) { 741 if (!getEntryFulfillment().equals(other.getEntryFulfillment())) return false; 742 } 743 if (hasForm() != other.hasForm()) return false; 744 if (hasForm()) { 745 if (!getForm().equals(other.getForm())) return false; 746 } 747 if (!getTransitionRouteGroupsList().equals(other.getTransitionRouteGroupsList())) return false; 748 if (!getTransitionRoutesList().equals(other.getTransitionRoutesList())) return false; 749 if (!getEventHandlersList().equals(other.getEventHandlersList())) return false; 750 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 751 return true; 752 } 753 754 @java.lang.Override hashCode()755 public int hashCode() { 756 if (memoizedHashCode != 0) { 757 return memoizedHashCode; 758 } 759 int hash = 41; 760 hash = (19 * hash) + getDescriptor().hashCode(); 761 hash = (37 * hash) + NAME_FIELD_NUMBER; 762 hash = (53 * hash) + getName().hashCode(); 763 hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; 764 hash = (53 * hash) + getDisplayName().hashCode(); 765 if (hasEntryFulfillment()) { 766 hash = (37 * hash) + ENTRY_FULFILLMENT_FIELD_NUMBER; 767 hash = (53 * hash) + getEntryFulfillment().hashCode(); 768 } 769 if (hasForm()) { 770 hash = (37 * hash) + FORM_FIELD_NUMBER; 771 hash = (53 * hash) + getForm().hashCode(); 772 } 773 if (getTransitionRouteGroupsCount() > 0) { 774 hash = (37 * hash) + TRANSITION_ROUTE_GROUPS_FIELD_NUMBER; 775 hash = (53 * hash) + getTransitionRouteGroupsList().hashCode(); 776 } 777 if (getTransitionRoutesCount() > 0) { 778 hash = (37 * hash) + TRANSITION_ROUTES_FIELD_NUMBER; 779 hash = (53 * hash) + getTransitionRoutesList().hashCode(); 780 } 781 if (getEventHandlersCount() > 0) { 782 hash = (37 * hash) + EVENT_HANDLERS_FIELD_NUMBER; 783 hash = (53 * hash) + getEventHandlersList().hashCode(); 784 } 785 hash = (29 * hash) + getUnknownFields().hashCode(); 786 memoizedHashCode = hash; 787 return hash; 788 } 789 parseFrom(java.nio.ByteBuffer data)790 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom(java.nio.ByteBuffer data) 791 throws com.google.protobuf.InvalidProtocolBufferException { 792 return PARSER.parseFrom(data); 793 } 794 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)795 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom( 796 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 797 throws com.google.protobuf.InvalidProtocolBufferException { 798 return PARSER.parseFrom(data, extensionRegistry); 799 } 800 parseFrom( com.google.protobuf.ByteString data)801 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom( 802 com.google.protobuf.ByteString data) 803 throws com.google.protobuf.InvalidProtocolBufferException { 804 return PARSER.parseFrom(data); 805 } 806 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)807 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom( 808 com.google.protobuf.ByteString data, 809 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 810 throws com.google.protobuf.InvalidProtocolBufferException { 811 return PARSER.parseFrom(data, extensionRegistry); 812 } 813 parseFrom(byte[] data)814 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom(byte[] data) 815 throws com.google.protobuf.InvalidProtocolBufferException { 816 return PARSER.parseFrom(data); 817 } 818 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)819 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom( 820 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 821 throws com.google.protobuf.InvalidProtocolBufferException { 822 return PARSER.parseFrom(data, extensionRegistry); 823 } 824 parseFrom(java.io.InputStream input)825 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom(java.io.InputStream input) 826 throws java.io.IOException { 827 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 828 } 829 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)830 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom( 831 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 832 throws java.io.IOException { 833 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 834 PARSER, input, extensionRegistry); 835 } 836 parseDelimitedFrom(java.io.InputStream input)837 public static com.google.cloud.dialogflow.cx.v3.Page parseDelimitedFrom(java.io.InputStream input) 838 throws java.io.IOException { 839 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 840 } 841 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)842 public static com.google.cloud.dialogflow.cx.v3.Page parseDelimitedFrom( 843 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 844 throws java.io.IOException { 845 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 846 PARSER, input, extensionRegistry); 847 } 848 parseFrom( com.google.protobuf.CodedInputStream input)849 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom( 850 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 851 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 852 } 853 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)854 public static com.google.cloud.dialogflow.cx.v3.Page parseFrom( 855 com.google.protobuf.CodedInputStream input, 856 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 857 throws java.io.IOException { 858 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 859 PARSER, input, extensionRegistry); 860 } 861 862 @java.lang.Override newBuilderForType()863 public Builder newBuilderForType() { 864 return newBuilder(); 865 } 866 newBuilder()867 public static Builder newBuilder() { 868 return DEFAULT_INSTANCE.toBuilder(); 869 } 870 newBuilder(com.google.cloud.dialogflow.cx.v3.Page prototype)871 public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.Page prototype) { 872 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 873 } 874 875 @java.lang.Override toBuilder()876 public Builder toBuilder() { 877 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 878 } 879 880 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)881 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 882 Builder builder = new Builder(parent); 883 return builder; 884 } 885 /** 886 * 887 * 888 * <pre> 889 * A Dialogflow CX conversation (session) can be described and visualized as a 890 * state machine. The states of a CX session are represented by pages. 891 * For each flow, you define many pages, where your combined pages can handle a 892 * complete conversation on the topics the flow is designed for. At any given 893 * moment, exactly one page is the current page, the current page is considered 894 * active, and the flow associated with that page is considered active. Every 895 * flow has a special start page. When a flow initially becomes active, the 896 * start page page becomes the current page. For each conversational turn, the 897 * current page will either stay the same or transition to another page. 898 * You configure each page to collect information from the end-user that is 899 * relevant for the conversational state represented by the page. 900 * For more information, see the 901 * [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page). 902 * </pre> 903 * 904 * Protobuf type {@code google.cloud.dialogflow.cx.v3.Page} 905 */ 906 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 907 implements 908 // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Page) 909 com.google.cloud.dialogflow.cx.v3.PageOrBuilder { getDescriptor()910 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 911 return com.google.cloud.dialogflow.cx.v3.PageProto 912 .internal_static_google_cloud_dialogflow_cx_v3_Page_descriptor; 913 } 914 915 @java.lang.Override 916 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()917 internalGetFieldAccessorTable() { 918 return com.google.cloud.dialogflow.cx.v3.PageProto 919 .internal_static_google_cloud_dialogflow_cx_v3_Page_fieldAccessorTable 920 .ensureFieldAccessorsInitialized( 921 com.google.cloud.dialogflow.cx.v3.Page.class, 922 com.google.cloud.dialogflow.cx.v3.Page.Builder.class); 923 } 924 925 // Construct using com.google.cloud.dialogflow.cx.v3.Page.newBuilder() Builder()926 private Builder() {} 927 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)928 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 929 super(parent); 930 } 931 932 @java.lang.Override clear()933 public Builder clear() { 934 super.clear(); 935 bitField0_ = 0; 936 name_ = ""; 937 displayName_ = ""; 938 entryFulfillment_ = null; 939 if (entryFulfillmentBuilder_ != null) { 940 entryFulfillmentBuilder_.dispose(); 941 entryFulfillmentBuilder_ = null; 942 } 943 form_ = null; 944 if (formBuilder_ != null) { 945 formBuilder_.dispose(); 946 formBuilder_ = null; 947 } 948 transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; 949 bitField0_ = (bitField0_ & ~0x00000010); 950 if (transitionRoutesBuilder_ == null) { 951 transitionRoutes_ = java.util.Collections.emptyList(); 952 } else { 953 transitionRoutes_ = null; 954 transitionRoutesBuilder_.clear(); 955 } 956 bitField0_ = (bitField0_ & ~0x00000020); 957 if (eventHandlersBuilder_ == null) { 958 eventHandlers_ = java.util.Collections.emptyList(); 959 } else { 960 eventHandlers_ = null; 961 eventHandlersBuilder_.clear(); 962 } 963 bitField0_ = (bitField0_ & ~0x00000040); 964 return this; 965 } 966 967 @java.lang.Override getDescriptorForType()968 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 969 return com.google.cloud.dialogflow.cx.v3.PageProto 970 .internal_static_google_cloud_dialogflow_cx_v3_Page_descriptor; 971 } 972 973 @java.lang.Override getDefaultInstanceForType()974 public com.google.cloud.dialogflow.cx.v3.Page getDefaultInstanceForType() { 975 return com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance(); 976 } 977 978 @java.lang.Override build()979 public com.google.cloud.dialogflow.cx.v3.Page build() { 980 com.google.cloud.dialogflow.cx.v3.Page result = buildPartial(); 981 if (!result.isInitialized()) { 982 throw newUninitializedMessageException(result); 983 } 984 return result; 985 } 986 987 @java.lang.Override buildPartial()988 public com.google.cloud.dialogflow.cx.v3.Page buildPartial() { 989 com.google.cloud.dialogflow.cx.v3.Page result = 990 new com.google.cloud.dialogflow.cx.v3.Page(this); 991 buildPartialRepeatedFields(result); 992 if (bitField0_ != 0) { 993 buildPartial0(result); 994 } 995 onBuilt(); 996 return result; 997 } 998 buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Page result)999 private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Page result) { 1000 if (((bitField0_ & 0x00000010) != 0)) { 1001 transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView(); 1002 bitField0_ = (bitField0_ & ~0x00000010); 1003 } 1004 result.transitionRouteGroups_ = transitionRouteGroups_; 1005 if (transitionRoutesBuilder_ == null) { 1006 if (((bitField0_ & 0x00000020) != 0)) { 1007 transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); 1008 bitField0_ = (bitField0_ & ~0x00000020); 1009 } 1010 result.transitionRoutes_ = transitionRoutes_; 1011 } else { 1012 result.transitionRoutes_ = transitionRoutesBuilder_.build(); 1013 } 1014 if (eventHandlersBuilder_ == null) { 1015 if (((bitField0_ & 0x00000040) != 0)) { 1016 eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_); 1017 bitField0_ = (bitField0_ & ~0x00000040); 1018 } 1019 result.eventHandlers_ = eventHandlers_; 1020 } else { 1021 result.eventHandlers_ = eventHandlersBuilder_.build(); 1022 } 1023 } 1024 buildPartial0(com.google.cloud.dialogflow.cx.v3.Page result)1025 private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Page result) { 1026 int from_bitField0_ = bitField0_; 1027 if (((from_bitField0_ & 0x00000001) != 0)) { 1028 result.name_ = name_; 1029 } 1030 if (((from_bitField0_ & 0x00000002) != 0)) { 1031 result.displayName_ = displayName_; 1032 } 1033 if (((from_bitField0_ & 0x00000004) != 0)) { 1034 result.entryFulfillment_ = 1035 entryFulfillmentBuilder_ == null ? entryFulfillment_ : entryFulfillmentBuilder_.build(); 1036 } 1037 if (((from_bitField0_ & 0x00000008) != 0)) { 1038 result.form_ = formBuilder_ == null ? form_ : formBuilder_.build(); 1039 } 1040 } 1041 1042 @java.lang.Override clone()1043 public Builder clone() { 1044 return super.clone(); 1045 } 1046 1047 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1048 public Builder setField( 1049 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1050 return super.setField(field, value); 1051 } 1052 1053 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1054 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1055 return super.clearField(field); 1056 } 1057 1058 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1059 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1060 return super.clearOneof(oneof); 1061 } 1062 1063 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1064 public Builder setRepeatedField( 1065 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1066 return super.setRepeatedField(field, index, value); 1067 } 1068 1069 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1070 public Builder addRepeatedField( 1071 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1072 return super.addRepeatedField(field, value); 1073 } 1074 1075 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1076 public Builder mergeFrom(com.google.protobuf.Message other) { 1077 if (other instanceof com.google.cloud.dialogflow.cx.v3.Page) { 1078 return mergeFrom((com.google.cloud.dialogflow.cx.v3.Page) other); 1079 } else { 1080 super.mergeFrom(other); 1081 return this; 1082 } 1083 } 1084 mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other)1085 public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) { 1086 if (other == com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) return this; 1087 if (!other.getName().isEmpty()) { 1088 name_ = other.name_; 1089 bitField0_ |= 0x00000001; 1090 onChanged(); 1091 } 1092 if (!other.getDisplayName().isEmpty()) { 1093 displayName_ = other.displayName_; 1094 bitField0_ |= 0x00000002; 1095 onChanged(); 1096 } 1097 if (other.hasEntryFulfillment()) { 1098 mergeEntryFulfillment(other.getEntryFulfillment()); 1099 } 1100 if (other.hasForm()) { 1101 mergeForm(other.getForm()); 1102 } 1103 if (!other.transitionRouteGroups_.isEmpty()) { 1104 if (transitionRouteGroups_.isEmpty()) { 1105 transitionRouteGroups_ = other.transitionRouteGroups_; 1106 bitField0_ = (bitField0_ & ~0x00000010); 1107 } else { 1108 ensureTransitionRouteGroupsIsMutable(); 1109 transitionRouteGroups_.addAll(other.transitionRouteGroups_); 1110 } 1111 onChanged(); 1112 } 1113 if (transitionRoutesBuilder_ == null) { 1114 if (!other.transitionRoutes_.isEmpty()) { 1115 if (transitionRoutes_.isEmpty()) { 1116 transitionRoutes_ = other.transitionRoutes_; 1117 bitField0_ = (bitField0_ & ~0x00000020); 1118 } else { 1119 ensureTransitionRoutesIsMutable(); 1120 transitionRoutes_.addAll(other.transitionRoutes_); 1121 } 1122 onChanged(); 1123 } 1124 } else { 1125 if (!other.transitionRoutes_.isEmpty()) { 1126 if (transitionRoutesBuilder_.isEmpty()) { 1127 transitionRoutesBuilder_.dispose(); 1128 transitionRoutesBuilder_ = null; 1129 transitionRoutes_ = other.transitionRoutes_; 1130 bitField0_ = (bitField0_ & ~0x00000020); 1131 transitionRoutesBuilder_ = 1132 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 1133 ? getTransitionRoutesFieldBuilder() 1134 : null; 1135 } else { 1136 transitionRoutesBuilder_.addAllMessages(other.transitionRoutes_); 1137 } 1138 } 1139 } 1140 if (eventHandlersBuilder_ == null) { 1141 if (!other.eventHandlers_.isEmpty()) { 1142 if (eventHandlers_.isEmpty()) { 1143 eventHandlers_ = other.eventHandlers_; 1144 bitField0_ = (bitField0_ & ~0x00000040); 1145 } else { 1146 ensureEventHandlersIsMutable(); 1147 eventHandlers_.addAll(other.eventHandlers_); 1148 } 1149 onChanged(); 1150 } 1151 } else { 1152 if (!other.eventHandlers_.isEmpty()) { 1153 if (eventHandlersBuilder_.isEmpty()) { 1154 eventHandlersBuilder_.dispose(); 1155 eventHandlersBuilder_ = null; 1156 eventHandlers_ = other.eventHandlers_; 1157 bitField0_ = (bitField0_ & ~0x00000040); 1158 eventHandlersBuilder_ = 1159 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 1160 ? getEventHandlersFieldBuilder() 1161 : null; 1162 } else { 1163 eventHandlersBuilder_.addAllMessages(other.eventHandlers_); 1164 } 1165 } 1166 } 1167 this.mergeUnknownFields(other.getUnknownFields()); 1168 onChanged(); 1169 return this; 1170 } 1171 1172 @java.lang.Override isInitialized()1173 public final boolean isInitialized() { 1174 return true; 1175 } 1176 1177 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1178 public Builder mergeFrom( 1179 com.google.protobuf.CodedInputStream input, 1180 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1181 throws java.io.IOException { 1182 if (extensionRegistry == null) { 1183 throw new java.lang.NullPointerException(); 1184 } 1185 try { 1186 boolean done = false; 1187 while (!done) { 1188 int tag = input.readTag(); 1189 switch (tag) { 1190 case 0: 1191 done = true; 1192 break; 1193 case 10: 1194 { 1195 name_ = input.readStringRequireUtf8(); 1196 bitField0_ |= 0x00000001; 1197 break; 1198 } // case 10 1199 case 18: 1200 { 1201 displayName_ = input.readStringRequireUtf8(); 1202 bitField0_ |= 0x00000002; 1203 break; 1204 } // case 18 1205 case 34: 1206 { 1207 input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry); 1208 bitField0_ |= 0x00000008; 1209 break; 1210 } // case 34 1211 case 58: 1212 { 1213 input.readMessage( 1214 getEntryFulfillmentFieldBuilder().getBuilder(), extensionRegistry); 1215 bitField0_ |= 0x00000004; 1216 break; 1217 } // case 58 1218 case 74: 1219 { 1220 com.google.cloud.dialogflow.cx.v3.TransitionRoute m = 1221 input.readMessage( 1222 com.google.cloud.dialogflow.cx.v3.TransitionRoute.parser(), 1223 extensionRegistry); 1224 if (transitionRoutesBuilder_ == null) { 1225 ensureTransitionRoutesIsMutable(); 1226 transitionRoutes_.add(m); 1227 } else { 1228 transitionRoutesBuilder_.addMessage(m); 1229 } 1230 break; 1231 } // case 74 1232 case 82: 1233 { 1234 com.google.cloud.dialogflow.cx.v3.EventHandler m = 1235 input.readMessage( 1236 com.google.cloud.dialogflow.cx.v3.EventHandler.parser(), extensionRegistry); 1237 if (eventHandlersBuilder_ == null) { 1238 ensureEventHandlersIsMutable(); 1239 eventHandlers_.add(m); 1240 } else { 1241 eventHandlersBuilder_.addMessage(m); 1242 } 1243 break; 1244 } // case 82 1245 case 90: 1246 { 1247 java.lang.String s = input.readStringRequireUtf8(); 1248 ensureTransitionRouteGroupsIsMutable(); 1249 transitionRouteGroups_.add(s); 1250 break; 1251 } // case 90 1252 default: 1253 { 1254 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1255 done = true; // was an endgroup tag 1256 } 1257 break; 1258 } // default: 1259 } // switch (tag) 1260 } // while (!done) 1261 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1262 throw e.unwrapIOException(); 1263 } finally { 1264 onChanged(); 1265 } // finally 1266 return this; 1267 } 1268 1269 private int bitField0_; 1270 1271 private java.lang.Object name_ = ""; 1272 /** 1273 * 1274 * 1275 * <pre> 1276 * The unique identifier of the page. 1277 * Required for the 1278 * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. 1279 * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] 1280 * populates the name automatically. 1281 * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 1282 * ID>/flows/<Flow ID>/pages/<Page ID>`. 1283 * </pre> 1284 * 1285 * <code>string name = 1;</code> 1286 * 1287 * @return The name. 1288 */ getName()1289 public java.lang.String getName() { 1290 java.lang.Object ref = name_; 1291 if (!(ref instanceof java.lang.String)) { 1292 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1293 java.lang.String s = bs.toStringUtf8(); 1294 name_ = s; 1295 return s; 1296 } else { 1297 return (java.lang.String) ref; 1298 } 1299 } 1300 /** 1301 * 1302 * 1303 * <pre> 1304 * The unique identifier of the page. 1305 * Required for the 1306 * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. 1307 * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] 1308 * populates the name automatically. 1309 * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 1310 * ID>/flows/<Flow ID>/pages/<Page ID>`. 1311 * </pre> 1312 * 1313 * <code>string name = 1;</code> 1314 * 1315 * @return The bytes for name. 1316 */ getNameBytes()1317 public com.google.protobuf.ByteString getNameBytes() { 1318 java.lang.Object ref = name_; 1319 if (ref instanceof String) { 1320 com.google.protobuf.ByteString b = 1321 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1322 name_ = b; 1323 return b; 1324 } else { 1325 return (com.google.protobuf.ByteString) ref; 1326 } 1327 } 1328 /** 1329 * 1330 * 1331 * <pre> 1332 * The unique identifier of the page. 1333 * Required for the 1334 * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. 1335 * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] 1336 * populates the name automatically. 1337 * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 1338 * ID>/flows/<Flow ID>/pages/<Page ID>`. 1339 * </pre> 1340 * 1341 * <code>string name = 1;</code> 1342 * 1343 * @param value The name to set. 1344 * @return This builder for chaining. 1345 */ setName(java.lang.String value)1346 public Builder setName(java.lang.String value) { 1347 if (value == null) { 1348 throw new NullPointerException(); 1349 } 1350 name_ = value; 1351 bitField0_ |= 0x00000001; 1352 onChanged(); 1353 return this; 1354 } 1355 /** 1356 * 1357 * 1358 * <pre> 1359 * The unique identifier of the page. 1360 * Required for the 1361 * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. 1362 * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] 1363 * populates the name automatically. 1364 * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 1365 * ID>/flows/<Flow ID>/pages/<Page ID>`. 1366 * </pre> 1367 * 1368 * <code>string name = 1;</code> 1369 * 1370 * @return This builder for chaining. 1371 */ clearName()1372 public Builder clearName() { 1373 name_ = getDefaultInstance().getName(); 1374 bitField0_ = (bitField0_ & ~0x00000001); 1375 onChanged(); 1376 return this; 1377 } 1378 /** 1379 * 1380 * 1381 * <pre> 1382 * The unique identifier of the page. 1383 * Required for the 1384 * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. 1385 * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] 1386 * populates the name automatically. 1387 * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent 1388 * ID>/flows/<Flow ID>/pages/<Page ID>`. 1389 * </pre> 1390 * 1391 * <code>string name = 1;</code> 1392 * 1393 * @param value The bytes for name to set. 1394 * @return This builder for chaining. 1395 */ setNameBytes(com.google.protobuf.ByteString value)1396 public Builder setNameBytes(com.google.protobuf.ByteString value) { 1397 if (value == null) { 1398 throw new NullPointerException(); 1399 } 1400 checkByteStringIsUtf8(value); 1401 name_ = value; 1402 bitField0_ |= 0x00000001; 1403 onChanged(); 1404 return this; 1405 } 1406 1407 private java.lang.Object displayName_ = ""; 1408 /** 1409 * 1410 * 1411 * <pre> 1412 * Required. The human-readable name of the page, unique within the flow. 1413 * </pre> 1414 * 1415 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 1416 * 1417 * @return The displayName. 1418 */ getDisplayName()1419 public java.lang.String getDisplayName() { 1420 java.lang.Object ref = displayName_; 1421 if (!(ref instanceof java.lang.String)) { 1422 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1423 java.lang.String s = bs.toStringUtf8(); 1424 displayName_ = s; 1425 return s; 1426 } else { 1427 return (java.lang.String) ref; 1428 } 1429 } 1430 /** 1431 * 1432 * 1433 * <pre> 1434 * Required. The human-readable name of the page, unique within the flow. 1435 * </pre> 1436 * 1437 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 1438 * 1439 * @return The bytes for displayName. 1440 */ getDisplayNameBytes()1441 public com.google.protobuf.ByteString getDisplayNameBytes() { 1442 java.lang.Object ref = displayName_; 1443 if (ref instanceof String) { 1444 com.google.protobuf.ByteString b = 1445 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1446 displayName_ = b; 1447 return b; 1448 } else { 1449 return (com.google.protobuf.ByteString) ref; 1450 } 1451 } 1452 /** 1453 * 1454 * 1455 * <pre> 1456 * Required. The human-readable name of the page, unique within the flow. 1457 * </pre> 1458 * 1459 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 1460 * 1461 * @param value The displayName to set. 1462 * @return This builder for chaining. 1463 */ setDisplayName(java.lang.String value)1464 public Builder setDisplayName(java.lang.String value) { 1465 if (value == null) { 1466 throw new NullPointerException(); 1467 } 1468 displayName_ = value; 1469 bitField0_ |= 0x00000002; 1470 onChanged(); 1471 return this; 1472 } 1473 /** 1474 * 1475 * 1476 * <pre> 1477 * Required. The human-readable name of the page, unique within the flow. 1478 * </pre> 1479 * 1480 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 1481 * 1482 * @return This builder for chaining. 1483 */ clearDisplayName()1484 public Builder clearDisplayName() { 1485 displayName_ = getDefaultInstance().getDisplayName(); 1486 bitField0_ = (bitField0_ & ~0x00000002); 1487 onChanged(); 1488 return this; 1489 } 1490 /** 1491 * 1492 * 1493 * <pre> 1494 * Required. The human-readable name of the page, unique within the flow. 1495 * </pre> 1496 * 1497 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 1498 * 1499 * @param value The bytes for displayName to set. 1500 * @return This builder for chaining. 1501 */ setDisplayNameBytes(com.google.protobuf.ByteString value)1502 public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 1503 if (value == null) { 1504 throw new NullPointerException(); 1505 } 1506 checkByteStringIsUtf8(value); 1507 displayName_ = value; 1508 bitField0_ |= 0x00000002; 1509 onChanged(); 1510 return this; 1511 } 1512 1513 private com.google.cloud.dialogflow.cx.v3.Fulfillment entryFulfillment_; 1514 private com.google.protobuf.SingleFieldBuilderV3< 1515 com.google.cloud.dialogflow.cx.v3.Fulfillment, 1516 com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder, 1517 com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder> 1518 entryFulfillmentBuilder_; 1519 /** 1520 * 1521 * 1522 * <pre> 1523 * The fulfillment to call when the session is entering the page. 1524 * </pre> 1525 * 1526 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1527 * 1528 * @return Whether the entryFulfillment field is set. 1529 */ hasEntryFulfillment()1530 public boolean hasEntryFulfillment() { 1531 return ((bitField0_ & 0x00000004) != 0); 1532 } 1533 /** 1534 * 1535 * 1536 * <pre> 1537 * The fulfillment to call when the session is entering the page. 1538 * </pre> 1539 * 1540 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1541 * 1542 * @return The entryFulfillment. 1543 */ getEntryFulfillment()1544 public com.google.cloud.dialogflow.cx.v3.Fulfillment getEntryFulfillment() { 1545 if (entryFulfillmentBuilder_ == null) { 1546 return entryFulfillment_ == null 1547 ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance() 1548 : entryFulfillment_; 1549 } else { 1550 return entryFulfillmentBuilder_.getMessage(); 1551 } 1552 } 1553 /** 1554 * 1555 * 1556 * <pre> 1557 * The fulfillment to call when the session is entering the page. 1558 * </pre> 1559 * 1560 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1561 */ setEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value)1562 public Builder setEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value) { 1563 if (entryFulfillmentBuilder_ == null) { 1564 if (value == null) { 1565 throw new NullPointerException(); 1566 } 1567 entryFulfillment_ = value; 1568 } else { 1569 entryFulfillmentBuilder_.setMessage(value); 1570 } 1571 bitField0_ |= 0x00000004; 1572 onChanged(); 1573 return this; 1574 } 1575 /** 1576 * 1577 * 1578 * <pre> 1579 * The fulfillment to call when the session is entering the page. 1580 * </pre> 1581 * 1582 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1583 */ setEntryFulfillment( com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue)1584 public Builder setEntryFulfillment( 1585 com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue) { 1586 if (entryFulfillmentBuilder_ == null) { 1587 entryFulfillment_ = builderForValue.build(); 1588 } else { 1589 entryFulfillmentBuilder_.setMessage(builderForValue.build()); 1590 } 1591 bitField0_ |= 0x00000004; 1592 onChanged(); 1593 return this; 1594 } 1595 /** 1596 * 1597 * 1598 * <pre> 1599 * The fulfillment to call when the session is entering the page. 1600 * </pre> 1601 * 1602 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1603 */ mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value)1604 public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value) { 1605 if (entryFulfillmentBuilder_ == null) { 1606 if (((bitField0_ & 0x00000004) != 0) 1607 && entryFulfillment_ != null 1608 && entryFulfillment_ 1609 != com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()) { 1610 getEntryFulfillmentBuilder().mergeFrom(value); 1611 } else { 1612 entryFulfillment_ = value; 1613 } 1614 } else { 1615 entryFulfillmentBuilder_.mergeFrom(value); 1616 } 1617 bitField0_ |= 0x00000004; 1618 onChanged(); 1619 return this; 1620 } 1621 /** 1622 * 1623 * 1624 * <pre> 1625 * The fulfillment to call when the session is entering the page. 1626 * </pre> 1627 * 1628 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1629 */ clearEntryFulfillment()1630 public Builder clearEntryFulfillment() { 1631 bitField0_ = (bitField0_ & ~0x00000004); 1632 entryFulfillment_ = null; 1633 if (entryFulfillmentBuilder_ != null) { 1634 entryFulfillmentBuilder_.dispose(); 1635 entryFulfillmentBuilder_ = null; 1636 } 1637 onChanged(); 1638 return this; 1639 } 1640 /** 1641 * 1642 * 1643 * <pre> 1644 * The fulfillment to call when the session is entering the page. 1645 * </pre> 1646 * 1647 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1648 */ getEntryFulfillmentBuilder()1649 public com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder getEntryFulfillmentBuilder() { 1650 bitField0_ |= 0x00000004; 1651 onChanged(); 1652 return getEntryFulfillmentFieldBuilder().getBuilder(); 1653 } 1654 /** 1655 * 1656 * 1657 * <pre> 1658 * The fulfillment to call when the session is entering the page. 1659 * </pre> 1660 * 1661 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1662 */ getEntryFulfillmentOrBuilder()1663 public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getEntryFulfillmentOrBuilder() { 1664 if (entryFulfillmentBuilder_ != null) { 1665 return entryFulfillmentBuilder_.getMessageOrBuilder(); 1666 } else { 1667 return entryFulfillment_ == null 1668 ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance() 1669 : entryFulfillment_; 1670 } 1671 } 1672 /** 1673 * 1674 * 1675 * <pre> 1676 * The fulfillment to call when the session is entering the page. 1677 * </pre> 1678 * 1679 * <code>.google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;</code> 1680 */ 1681 private com.google.protobuf.SingleFieldBuilderV3< 1682 com.google.cloud.dialogflow.cx.v3.Fulfillment, 1683 com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder, 1684 com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder> getEntryFulfillmentFieldBuilder()1685 getEntryFulfillmentFieldBuilder() { 1686 if (entryFulfillmentBuilder_ == null) { 1687 entryFulfillmentBuilder_ = 1688 new com.google.protobuf.SingleFieldBuilderV3< 1689 com.google.cloud.dialogflow.cx.v3.Fulfillment, 1690 com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder, 1691 com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder>( 1692 getEntryFulfillment(), getParentForChildren(), isClean()); 1693 entryFulfillment_ = null; 1694 } 1695 return entryFulfillmentBuilder_; 1696 } 1697 1698 private com.google.cloud.dialogflow.cx.v3.Form form_; 1699 private com.google.protobuf.SingleFieldBuilderV3< 1700 com.google.cloud.dialogflow.cx.v3.Form, 1701 com.google.cloud.dialogflow.cx.v3.Form.Builder, 1702 com.google.cloud.dialogflow.cx.v3.FormOrBuilder> 1703 formBuilder_; 1704 /** 1705 * 1706 * 1707 * <pre> 1708 * The form associated with the page, used for collecting parameters 1709 * relevant to the page. 1710 * </pre> 1711 * 1712 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1713 * 1714 * @return Whether the form field is set. 1715 */ hasForm()1716 public boolean hasForm() { 1717 return ((bitField0_ & 0x00000008) != 0); 1718 } 1719 /** 1720 * 1721 * 1722 * <pre> 1723 * The form associated with the page, used for collecting parameters 1724 * relevant to the page. 1725 * </pre> 1726 * 1727 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1728 * 1729 * @return The form. 1730 */ getForm()1731 public com.google.cloud.dialogflow.cx.v3.Form getForm() { 1732 if (formBuilder_ == null) { 1733 return form_ == null ? com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance() : form_; 1734 } else { 1735 return formBuilder_.getMessage(); 1736 } 1737 } 1738 /** 1739 * 1740 * 1741 * <pre> 1742 * The form associated with the page, used for collecting parameters 1743 * relevant to the page. 1744 * </pre> 1745 * 1746 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1747 */ setForm(com.google.cloud.dialogflow.cx.v3.Form value)1748 public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form value) { 1749 if (formBuilder_ == null) { 1750 if (value == null) { 1751 throw new NullPointerException(); 1752 } 1753 form_ = value; 1754 } else { 1755 formBuilder_.setMessage(value); 1756 } 1757 bitField0_ |= 0x00000008; 1758 onChanged(); 1759 return this; 1760 } 1761 /** 1762 * 1763 * 1764 * <pre> 1765 * The form associated with the page, used for collecting parameters 1766 * relevant to the page. 1767 * </pre> 1768 * 1769 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1770 */ setForm(com.google.cloud.dialogflow.cx.v3.Form.Builder builderForValue)1771 public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form.Builder builderForValue) { 1772 if (formBuilder_ == null) { 1773 form_ = builderForValue.build(); 1774 } else { 1775 formBuilder_.setMessage(builderForValue.build()); 1776 } 1777 bitField0_ |= 0x00000008; 1778 onChanged(); 1779 return this; 1780 } 1781 /** 1782 * 1783 * 1784 * <pre> 1785 * The form associated with the page, used for collecting parameters 1786 * relevant to the page. 1787 * </pre> 1788 * 1789 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1790 */ mergeForm(com.google.cloud.dialogflow.cx.v3.Form value)1791 public Builder mergeForm(com.google.cloud.dialogflow.cx.v3.Form value) { 1792 if (formBuilder_ == null) { 1793 if (((bitField0_ & 0x00000008) != 0) 1794 && form_ != null 1795 && form_ != com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance()) { 1796 getFormBuilder().mergeFrom(value); 1797 } else { 1798 form_ = value; 1799 } 1800 } else { 1801 formBuilder_.mergeFrom(value); 1802 } 1803 bitField0_ |= 0x00000008; 1804 onChanged(); 1805 return this; 1806 } 1807 /** 1808 * 1809 * 1810 * <pre> 1811 * The form associated with the page, used for collecting parameters 1812 * relevant to the page. 1813 * </pre> 1814 * 1815 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1816 */ clearForm()1817 public Builder clearForm() { 1818 bitField0_ = (bitField0_ & ~0x00000008); 1819 form_ = null; 1820 if (formBuilder_ != null) { 1821 formBuilder_.dispose(); 1822 formBuilder_ = null; 1823 } 1824 onChanged(); 1825 return this; 1826 } 1827 /** 1828 * 1829 * 1830 * <pre> 1831 * The form associated with the page, used for collecting parameters 1832 * relevant to the page. 1833 * </pre> 1834 * 1835 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1836 */ getFormBuilder()1837 public com.google.cloud.dialogflow.cx.v3.Form.Builder getFormBuilder() { 1838 bitField0_ |= 0x00000008; 1839 onChanged(); 1840 return getFormFieldBuilder().getBuilder(); 1841 } 1842 /** 1843 * 1844 * 1845 * <pre> 1846 * The form associated with the page, used for collecting parameters 1847 * relevant to the page. 1848 * </pre> 1849 * 1850 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1851 */ getFormOrBuilder()1852 public com.google.cloud.dialogflow.cx.v3.FormOrBuilder getFormOrBuilder() { 1853 if (formBuilder_ != null) { 1854 return formBuilder_.getMessageOrBuilder(); 1855 } else { 1856 return form_ == null ? com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance() : form_; 1857 } 1858 } 1859 /** 1860 * 1861 * 1862 * <pre> 1863 * The form associated with the page, used for collecting parameters 1864 * relevant to the page. 1865 * </pre> 1866 * 1867 * <code>.google.cloud.dialogflow.cx.v3.Form form = 4;</code> 1868 */ 1869 private com.google.protobuf.SingleFieldBuilderV3< 1870 com.google.cloud.dialogflow.cx.v3.Form, 1871 com.google.cloud.dialogflow.cx.v3.Form.Builder, 1872 com.google.cloud.dialogflow.cx.v3.FormOrBuilder> getFormFieldBuilder()1873 getFormFieldBuilder() { 1874 if (formBuilder_ == null) { 1875 formBuilder_ = 1876 new com.google.protobuf.SingleFieldBuilderV3< 1877 com.google.cloud.dialogflow.cx.v3.Form, 1878 com.google.cloud.dialogflow.cx.v3.Form.Builder, 1879 com.google.cloud.dialogflow.cx.v3.FormOrBuilder>( 1880 getForm(), getParentForChildren(), isClean()); 1881 form_ = null; 1882 } 1883 return formBuilder_; 1884 } 1885 1886 private com.google.protobuf.LazyStringList transitionRouteGroups_ = 1887 com.google.protobuf.LazyStringArrayList.EMPTY; 1888 ensureTransitionRouteGroupsIsMutable()1889 private void ensureTransitionRouteGroupsIsMutable() { 1890 if (!((bitField0_ & 0x00000010) != 0)) { 1891 transitionRouteGroups_ = 1892 new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_); 1893 bitField0_ |= 0x00000010; 1894 } 1895 } 1896 /** 1897 * 1898 * 1899 * <pre> 1900 * Ordered list of 1901 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 1902 * associated with the page. Transition route groups must be unique within a 1903 * page. 1904 * * If multiple transition routes within a page scope refer to the same 1905 * intent, then the precedence order is: page's transition route -> page's 1906 * transition route group -> flow's transition routes. 1907 * * If multiple transition route groups within a page contain the same 1908 * intent, then the first group in the ordered list takes precedence. 1909 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 1910 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 1911 * </pre> 1912 * 1913 * <code> 1914 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 1915 * </code> 1916 * 1917 * @return A list containing the transitionRouteGroups. 1918 */ getTransitionRouteGroupsList()1919 public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() { 1920 return transitionRouteGroups_.getUnmodifiableView(); 1921 } 1922 /** 1923 * 1924 * 1925 * <pre> 1926 * Ordered list of 1927 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 1928 * associated with the page. Transition route groups must be unique within a 1929 * page. 1930 * * If multiple transition routes within a page scope refer to the same 1931 * intent, then the precedence order is: page's transition route -> page's 1932 * transition route group -> flow's transition routes. 1933 * * If multiple transition route groups within a page contain the same 1934 * intent, then the first group in the ordered list takes precedence. 1935 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 1936 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 1937 * </pre> 1938 * 1939 * <code> 1940 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 1941 * </code> 1942 * 1943 * @return The count of transitionRouteGroups. 1944 */ getTransitionRouteGroupsCount()1945 public int getTransitionRouteGroupsCount() { 1946 return transitionRouteGroups_.size(); 1947 } 1948 /** 1949 * 1950 * 1951 * <pre> 1952 * Ordered list of 1953 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 1954 * associated with the page. Transition route groups must be unique within a 1955 * page. 1956 * * If multiple transition routes within a page scope refer to the same 1957 * intent, then the precedence order is: page's transition route -> page's 1958 * transition route group -> flow's transition routes. 1959 * * If multiple transition route groups within a page contain the same 1960 * intent, then the first group in the ordered list takes precedence. 1961 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 1962 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 1963 * </pre> 1964 * 1965 * <code> 1966 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 1967 * </code> 1968 * 1969 * @param index The index of the element to return. 1970 * @return The transitionRouteGroups at the given index. 1971 */ getTransitionRouteGroups(int index)1972 public java.lang.String getTransitionRouteGroups(int index) { 1973 return transitionRouteGroups_.get(index); 1974 } 1975 /** 1976 * 1977 * 1978 * <pre> 1979 * Ordered list of 1980 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 1981 * associated with the page. Transition route groups must be unique within a 1982 * page. 1983 * * If multiple transition routes within a page scope refer to the same 1984 * intent, then the precedence order is: page's transition route -> page's 1985 * transition route group -> flow's transition routes. 1986 * * If multiple transition route groups within a page contain the same 1987 * intent, then the first group in the ordered list takes precedence. 1988 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 1989 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 1990 * </pre> 1991 * 1992 * <code> 1993 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 1994 * </code> 1995 * 1996 * @param index The index of the value to return. 1997 * @return The bytes of the transitionRouteGroups at the given index. 1998 */ getTransitionRouteGroupsBytes(int index)1999 public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { 2000 return transitionRouteGroups_.getByteString(index); 2001 } 2002 /** 2003 * 2004 * 2005 * <pre> 2006 * Ordered list of 2007 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 2008 * associated with the page. Transition route groups must be unique within a 2009 * page. 2010 * * If multiple transition routes within a page scope refer to the same 2011 * intent, then the precedence order is: page's transition route -> page's 2012 * transition route group -> flow's transition routes. 2013 * * If multiple transition route groups within a page contain the same 2014 * intent, then the first group in the ordered list takes precedence. 2015 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 2016 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 2017 * </pre> 2018 * 2019 * <code> 2020 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 2021 * </code> 2022 * 2023 * @param index The index to set the value at. 2024 * @param value The transitionRouteGroups to set. 2025 * @return This builder for chaining. 2026 */ setTransitionRouteGroups(int index, java.lang.String value)2027 public Builder setTransitionRouteGroups(int index, java.lang.String value) { 2028 if (value == null) { 2029 throw new NullPointerException(); 2030 } 2031 ensureTransitionRouteGroupsIsMutable(); 2032 transitionRouteGroups_.set(index, value); 2033 onChanged(); 2034 return this; 2035 } 2036 /** 2037 * 2038 * 2039 * <pre> 2040 * Ordered list of 2041 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 2042 * associated with the page. Transition route groups must be unique within a 2043 * page. 2044 * * If multiple transition routes within a page scope refer to the same 2045 * intent, then the precedence order is: page's transition route -> page's 2046 * transition route group -> flow's transition routes. 2047 * * If multiple transition route groups within a page contain the same 2048 * intent, then the first group in the ordered list takes precedence. 2049 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 2050 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 2051 * </pre> 2052 * 2053 * <code> 2054 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 2055 * </code> 2056 * 2057 * @param value The transitionRouteGroups to add. 2058 * @return This builder for chaining. 2059 */ addTransitionRouteGroups(java.lang.String value)2060 public Builder addTransitionRouteGroups(java.lang.String value) { 2061 if (value == null) { 2062 throw new NullPointerException(); 2063 } 2064 ensureTransitionRouteGroupsIsMutable(); 2065 transitionRouteGroups_.add(value); 2066 onChanged(); 2067 return this; 2068 } 2069 /** 2070 * 2071 * 2072 * <pre> 2073 * Ordered list of 2074 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 2075 * associated with the page. Transition route groups must be unique within a 2076 * page. 2077 * * If multiple transition routes within a page scope refer to the same 2078 * intent, then the precedence order is: page's transition route -> page's 2079 * transition route group -> flow's transition routes. 2080 * * If multiple transition route groups within a page contain the same 2081 * intent, then the first group in the ordered list takes precedence. 2082 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 2083 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 2084 * </pre> 2085 * 2086 * <code> 2087 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 2088 * </code> 2089 * 2090 * @param values The transitionRouteGroups to add. 2091 * @return This builder for chaining. 2092 */ addAllTransitionRouteGroups(java.lang.Iterable<java.lang.String> values)2093 public Builder addAllTransitionRouteGroups(java.lang.Iterable<java.lang.String> values) { 2094 ensureTransitionRouteGroupsIsMutable(); 2095 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionRouteGroups_); 2096 onChanged(); 2097 return this; 2098 } 2099 /** 2100 * 2101 * 2102 * <pre> 2103 * Ordered list of 2104 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 2105 * associated with the page. Transition route groups must be unique within a 2106 * page. 2107 * * If multiple transition routes within a page scope refer to the same 2108 * intent, then the precedence order is: page's transition route -> page's 2109 * transition route group -> flow's transition routes. 2110 * * If multiple transition route groups within a page contain the same 2111 * intent, then the first group in the ordered list takes precedence. 2112 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 2113 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 2114 * </pre> 2115 * 2116 * <code> 2117 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 2118 * </code> 2119 * 2120 * @return This builder for chaining. 2121 */ clearTransitionRouteGroups()2122 public Builder clearTransitionRouteGroups() { 2123 transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2124 bitField0_ = (bitField0_ & ~0x00000010); 2125 onChanged(); 2126 return this; 2127 } 2128 /** 2129 * 2130 * 2131 * <pre> 2132 * Ordered list of 2133 * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] 2134 * associated with the page. Transition route groups must be unique within a 2135 * page. 2136 * * If multiple transition routes within a page scope refer to the same 2137 * intent, then the precedence order is: page's transition route -> page's 2138 * transition route group -> flow's transition routes. 2139 * * If multiple transition route groups within a page contain the same 2140 * intent, then the first group in the ordered list takes precedence. 2141 * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent 2142 * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`. 2143 * </pre> 2144 * 2145 * <code> 2146 * repeated string transition_route_groups = 11 [(.google.api.resource_reference) = { ... } 2147 * </code> 2148 * 2149 * @param value The bytes of the transitionRouteGroups to add. 2150 * @return This builder for chaining. 2151 */ addTransitionRouteGroupsBytes(com.google.protobuf.ByteString value)2152 public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString value) { 2153 if (value == null) { 2154 throw new NullPointerException(); 2155 } 2156 checkByteStringIsUtf8(value); 2157 ensureTransitionRouteGroupsIsMutable(); 2158 transitionRouteGroups_.add(value); 2159 onChanged(); 2160 return this; 2161 } 2162 2163 private java.util.List<com.google.cloud.dialogflow.cx.v3.TransitionRoute> transitionRoutes_ = 2164 java.util.Collections.emptyList(); 2165 ensureTransitionRoutesIsMutable()2166 private void ensureTransitionRoutesIsMutable() { 2167 if (!((bitField0_ & 0x00000020) != 0)) { 2168 transitionRoutes_ = 2169 new java.util.ArrayList<com.google.cloud.dialogflow.cx.v3.TransitionRoute>( 2170 transitionRoutes_); 2171 bitField0_ |= 0x00000020; 2172 } 2173 } 2174 2175 private com.google.protobuf.RepeatedFieldBuilderV3< 2176 com.google.cloud.dialogflow.cx.v3.TransitionRoute, 2177 com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, 2178 com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder> 2179 transitionRoutesBuilder_; 2180 2181 /** 2182 * 2183 * 2184 * <pre> 2185 * A list of transitions for the transition rules of this page. 2186 * They route the conversation to another page in the same flow, or another 2187 * flow. 2188 * When we are in a certain page, the TransitionRoutes are evalauted in the 2189 * following order: 2190 * * TransitionRoutes defined in the page with intent specified. 2191 * * TransitionRoutes defined in the 2192 * [transition route 2193 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2194 * with intent specified. 2195 * * TransitionRoutes defined in flow with intent specified. 2196 * * TransitionRoutes defined in the 2197 * [transition route 2198 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2199 * with intent specified. 2200 * * TransitionRoutes defined in the page with only condition specified. 2201 * * TransitionRoutes defined in the 2202 * [transition route 2203 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2204 * with only condition specified. 2205 * </pre> 2206 * 2207 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2208 */ 2209 public java.util.List<com.google.cloud.dialogflow.cx.v3.TransitionRoute> getTransitionRoutesList()2210 getTransitionRoutesList() { 2211 if (transitionRoutesBuilder_ == null) { 2212 return java.util.Collections.unmodifiableList(transitionRoutes_); 2213 } else { 2214 return transitionRoutesBuilder_.getMessageList(); 2215 } 2216 } 2217 /** 2218 * 2219 * 2220 * <pre> 2221 * A list of transitions for the transition rules of this page. 2222 * They route the conversation to another page in the same flow, or another 2223 * flow. 2224 * When we are in a certain page, the TransitionRoutes are evalauted in the 2225 * following order: 2226 * * TransitionRoutes defined in the page with intent specified. 2227 * * TransitionRoutes defined in the 2228 * [transition route 2229 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2230 * with intent specified. 2231 * * TransitionRoutes defined in flow with intent specified. 2232 * * TransitionRoutes defined in the 2233 * [transition route 2234 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2235 * with intent specified. 2236 * * TransitionRoutes defined in the page with only condition specified. 2237 * * TransitionRoutes defined in the 2238 * [transition route 2239 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2240 * with only condition specified. 2241 * </pre> 2242 * 2243 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2244 */ getTransitionRoutesCount()2245 public int getTransitionRoutesCount() { 2246 if (transitionRoutesBuilder_ == null) { 2247 return transitionRoutes_.size(); 2248 } else { 2249 return transitionRoutesBuilder_.getCount(); 2250 } 2251 } 2252 /** 2253 * 2254 * 2255 * <pre> 2256 * A list of transitions for the transition rules of this page. 2257 * They route the conversation to another page in the same flow, or another 2258 * flow. 2259 * When we are in a certain page, the TransitionRoutes are evalauted in the 2260 * following order: 2261 * * TransitionRoutes defined in the page with intent specified. 2262 * * TransitionRoutes defined in the 2263 * [transition route 2264 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2265 * with intent specified. 2266 * * TransitionRoutes defined in flow with intent specified. 2267 * * TransitionRoutes defined in the 2268 * [transition route 2269 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2270 * with intent specified. 2271 * * TransitionRoutes defined in the page with only condition specified. 2272 * * TransitionRoutes defined in the 2273 * [transition route 2274 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2275 * with only condition specified. 2276 * </pre> 2277 * 2278 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2279 */ getTransitionRoutes(int index)2280 public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int index) { 2281 if (transitionRoutesBuilder_ == null) { 2282 return transitionRoutes_.get(index); 2283 } else { 2284 return transitionRoutesBuilder_.getMessage(index); 2285 } 2286 } 2287 /** 2288 * 2289 * 2290 * <pre> 2291 * A list of transitions for the transition rules of this page. 2292 * They route the conversation to another page in the same flow, or another 2293 * flow. 2294 * When we are in a certain page, the TransitionRoutes are evalauted in the 2295 * following order: 2296 * * TransitionRoutes defined in the page with intent specified. 2297 * * TransitionRoutes defined in the 2298 * [transition route 2299 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2300 * with intent specified. 2301 * * TransitionRoutes defined in flow with intent specified. 2302 * * TransitionRoutes defined in the 2303 * [transition route 2304 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2305 * with intent specified. 2306 * * TransitionRoutes defined in the page with only condition specified. 2307 * * TransitionRoutes defined in the 2308 * [transition route 2309 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2310 * with only condition specified. 2311 * </pre> 2312 * 2313 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2314 */ setTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute value)2315 public Builder setTransitionRoutes( 2316 int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute value) { 2317 if (transitionRoutesBuilder_ == null) { 2318 if (value == null) { 2319 throw new NullPointerException(); 2320 } 2321 ensureTransitionRoutesIsMutable(); 2322 transitionRoutes_.set(index, value); 2323 onChanged(); 2324 } else { 2325 transitionRoutesBuilder_.setMessage(index, value); 2326 } 2327 return this; 2328 } 2329 /** 2330 * 2331 * 2332 * <pre> 2333 * A list of transitions for the transition rules of this page. 2334 * They route the conversation to another page in the same flow, or another 2335 * flow. 2336 * When we are in a certain page, the TransitionRoutes are evalauted in the 2337 * following order: 2338 * * TransitionRoutes defined in the page with intent specified. 2339 * * TransitionRoutes defined in the 2340 * [transition route 2341 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2342 * with intent specified. 2343 * * TransitionRoutes defined in flow with intent specified. 2344 * * TransitionRoutes defined in the 2345 * [transition route 2346 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2347 * with intent specified. 2348 * * TransitionRoutes defined in the page with only condition specified. 2349 * * TransitionRoutes defined in the 2350 * [transition route 2351 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2352 * with only condition specified. 2353 * </pre> 2354 * 2355 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2356 */ setTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue)2357 public Builder setTransitionRoutes( 2358 int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue) { 2359 if (transitionRoutesBuilder_ == null) { 2360 ensureTransitionRoutesIsMutable(); 2361 transitionRoutes_.set(index, builderForValue.build()); 2362 onChanged(); 2363 } else { 2364 transitionRoutesBuilder_.setMessage(index, builderForValue.build()); 2365 } 2366 return this; 2367 } 2368 /** 2369 * 2370 * 2371 * <pre> 2372 * A list of transitions for the transition rules of this page. 2373 * They route the conversation to another page in the same flow, or another 2374 * flow. 2375 * When we are in a certain page, the TransitionRoutes are evalauted in the 2376 * following order: 2377 * * TransitionRoutes defined in the page with intent specified. 2378 * * TransitionRoutes defined in the 2379 * [transition route 2380 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2381 * with intent specified. 2382 * * TransitionRoutes defined in flow with intent specified. 2383 * * TransitionRoutes defined in the 2384 * [transition route 2385 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2386 * with intent specified. 2387 * * TransitionRoutes defined in the page with only condition specified. 2388 * * TransitionRoutes defined in the 2389 * [transition route 2390 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2391 * with only condition specified. 2392 * </pre> 2393 * 2394 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2395 */ addTransitionRoutes(com.google.cloud.dialogflow.cx.v3.TransitionRoute value)2396 public Builder addTransitionRoutes(com.google.cloud.dialogflow.cx.v3.TransitionRoute value) { 2397 if (transitionRoutesBuilder_ == null) { 2398 if (value == null) { 2399 throw new NullPointerException(); 2400 } 2401 ensureTransitionRoutesIsMutable(); 2402 transitionRoutes_.add(value); 2403 onChanged(); 2404 } else { 2405 transitionRoutesBuilder_.addMessage(value); 2406 } 2407 return this; 2408 } 2409 /** 2410 * 2411 * 2412 * <pre> 2413 * A list of transitions for the transition rules of this page. 2414 * They route the conversation to another page in the same flow, or another 2415 * flow. 2416 * When we are in a certain page, the TransitionRoutes are evalauted in the 2417 * following order: 2418 * * TransitionRoutes defined in the page with intent specified. 2419 * * TransitionRoutes defined in the 2420 * [transition route 2421 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2422 * with intent specified. 2423 * * TransitionRoutes defined in flow with intent specified. 2424 * * TransitionRoutes defined in the 2425 * [transition route 2426 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2427 * with intent specified. 2428 * * TransitionRoutes defined in the page with only condition specified. 2429 * * TransitionRoutes defined in the 2430 * [transition route 2431 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2432 * with only condition specified. 2433 * </pre> 2434 * 2435 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2436 */ addTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute value)2437 public Builder addTransitionRoutes( 2438 int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute value) { 2439 if (transitionRoutesBuilder_ == null) { 2440 if (value == null) { 2441 throw new NullPointerException(); 2442 } 2443 ensureTransitionRoutesIsMutable(); 2444 transitionRoutes_.add(index, value); 2445 onChanged(); 2446 } else { 2447 transitionRoutesBuilder_.addMessage(index, value); 2448 } 2449 return this; 2450 } 2451 /** 2452 * 2453 * 2454 * <pre> 2455 * A list of transitions for the transition rules of this page. 2456 * They route the conversation to another page in the same flow, or another 2457 * flow. 2458 * When we are in a certain page, the TransitionRoutes are evalauted in the 2459 * following order: 2460 * * TransitionRoutes defined in the page with intent specified. 2461 * * TransitionRoutes defined in the 2462 * [transition route 2463 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2464 * with intent specified. 2465 * * TransitionRoutes defined in flow with intent specified. 2466 * * TransitionRoutes defined in the 2467 * [transition route 2468 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2469 * with intent specified. 2470 * * TransitionRoutes defined in the page with only condition specified. 2471 * * TransitionRoutes defined in the 2472 * [transition route 2473 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2474 * with only condition specified. 2475 * </pre> 2476 * 2477 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2478 */ addTransitionRoutes( com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue)2479 public Builder addTransitionRoutes( 2480 com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue) { 2481 if (transitionRoutesBuilder_ == null) { 2482 ensureTransitionRoutesIsMutable(); 2483 transitionRoutes_.add(builderForValue.build()); 2484 onChanged(); 2485 } else { 2486 transitionRoutesBuilder_.addMessage(builderForValue.build()); 2487 } 2488 return this; 2489 } 2490 /** 2491 * 2492 * 2493 * <pre> 2494 * A list of transitions for the transition rules of this page. 2495 * They route the conversation to another page in the same flow, or another 2496 * flow. 2497 * When we are in a certain page, the TransitionRoutes are evalauted in the 2498 * following order: 2499 * * TransitionRoutes defined in the page with intent specified. 2500 * * TransitionRoutes defined in the 2501 * [transition route 2502 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2503 * with intent specified. 2504 * * TransitionRoutes defined in flow with intent specified. 2505 * * TransitionRoutes defined in the 2506 * [transition route 2507 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2508 * with intent specified. 2509 * * TransitionRoutes defined in the page with only condition specified. 2510 * * TransitionRoutes defined in the 2511 * [transition route 2512 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2513 * with only condition specified. 2514 * </pre> 2515 * 2516 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2517 */ addTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue)2518 public Builder addTransitionRoutes( 2519 int index, com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue) { 2520 if (transitionRoutesBuilder_ == null) { 2521 ensureTransitionRoutesIsMutable(); 2522 transitionRoutes_.add(index, builderForValue.build()); 2523 onChanged(); 2524 } else { 2525 transitionRoutesBuilder_.addMessage(index, builderForValue.build()); 2526 } 2527 return this; 2528 } 2529 /** 2530 * 2531 * 2532 * <pre> 2533 * A list of transitions for the transition rules of this page. 2534 * They route the conversation to another page in the same flow, or another 2535 * flow. 2536 * When we are in a certain page, the TransitionRoutes are evalauted in the 2537 * following order: 2538 * * TransitionRoutes defined in the page with intent specified. 2539 * * TransitionRoutes defined in the 2540 * [transition route 2541 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2542 * with intent specified. 2543 * * TransitionRoutes defined in flow with intent specified. 2544 * * TransitionRoutes defined in the 2545 * [transition route 2546 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2547 * with intent specified. 2548 * * TransitionRoutes defined in the page with only condition specified. 2549 * * TransitionRoutes defined in the 2550 * [transition route 2551 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2552 * with only condition specified. 2553 * </pre> 2554 * 2555 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2556 */ addAllTransitionRoutes( java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.TransitionRoute> values)2557 public Builder addAllTransitionRoutes( 2558 java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.TransitionRoute> values) { 2559 if (transitionRoutesBuilder_ == null) { 2560 ensureTransitionRoutesIsMutable(); 2561 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionRoutes_); 2562 onChanged(); 2563 } else { 2564 transitionRoutesBuilder_.addAllMessages(values); 2565 } 2566 return this; 2567 } 2568 /** 2569 * 2570 * 2571 * <pre> 2572 * A list of transitions for the transition rules of this page. 2573 * They route the conversation to another page in the same flow, or another 2574 * flow. 2575 * When we are in a certain page, the TransitionRoutes are evalauted in the 2576 * following order: 2577 * * TransitionRoutes defined in the page with intent specified. 2578 * * TransitionRoutes defined in the 2579 * [transition route 2580 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2581 * with intent specified. 2582 * * TransitionRoutes defined in flow with intent specified. 2583 * * TransitionRoutes defined in the 2584 * [transition route 2585 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2586 * with intent specified. 2587 * * TransitionRoutes defined in the page with only condition specified. 2588 * * TransitionRoutes defined in the 2589 * [transition route 2590 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2591 * with only condition specified. 2592 * </pre> 2593 * 2594 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2595 */ clearTransitionRoutes()2596 public Builder clearTransitionRoutes() { 2597 if (transitionRoutesBuilder_ == null) { 2598 transitionRoutes_ = java.util.Collections.emptyList(); 2599 bitField0_ = (bitField0_ & ~0x00000020); 2600 onChanged(); 2601 } else { 2602 transitionRoutesBuilder_.clear(); 2603 } 2604 return this; 2605 } 2606 /** 2607 * 2608 * 2609 * <pre> 2610 * A list of transitions for the transition rules of this page. 2611 * They route the conversation to another page in the same flow, or another 2612 * flow. 2613 * When we are in a certain page, the TransitionRoutes are evalauted in the 2614 * following order: 2615 * * TransitionRoutes defined in the page with intent specified. 2616 * * TransitionRoutes defined in the 2617 * [transition route 2618 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2619 * with intent specified. 2620 * * TransitionRoutes defined in flow with intent specified. 2621 * * TransitionRoutes defined in the 2622 * [transition route 2623 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2624 * with intent specified. 2625 * * TransitionRoutes defined in the page with only condition specified. 2626 * * TransitionRoutes defined in the 2627 * [transition route 2628 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2629 * with only condition specified. 2630 * </pre> 2631 * 2632 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2633 */ removeTransitionRoutes(int index)2634 public Builder removeTransitionRoutes(int index) { 2635 if (transitionRoutesBuilder_ == null) { 2636 ensureTransitionRoutesIsMutable(); 2637 transitionRoutes_.remove(index); 2638 onChanged(); 2639 } else { 2640 transitionRoutesBuilder_.remove(index); 2641 } 2642 return this; 2643 } 2644 /** 2645 * 2646 * 2647 * <pre> 2648 * A list of transitions for the transition rules of this page. 2649 * They route the conversation to another page in the same flow, or another 2650 * flow. 2651 * When we are in a certain page, the TransitionRoutes are evalauted in the 2652 * following order: 2653 * * TransitionRoutes defined in the page with intent specified. 2654 * * TransitionRoutes defined in the 2655 * [transition route 2656 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2657 * with intent specified. 2658 * * TransitionRoutes defined in flow with intent specified. 2659 * * TransitionRoutes defined in the 2660 * [transition route 2661 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2662 * with intent specified. 2663 * * TransitionRoutes defined in the page with only condition specified. 2664 * * TransitionRoutes defined in the 2665 * [transition route 2666 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2667 * with only condition specified. 2668 * </pre> 2669 * 2670 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2671 */ getTransitionRoutesBuilder( int index)2672 public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRoutesBuilder( 2673 int index) { 2674 return getTransitionRoutesFieldBuilder().getBuilder(index); 2675 } 2676 /** 2677 * 2678 * 2679 * <pre> 2680 * A list of transitions for the transition rules of this page. 2681 * They route the conversation to another page in the same flow, or another 2682 * flow. 2683 * When we are in a certain page, the TransitionRoutes are evalauted in the 2684 * following order: 2685 * * TransitionRoutes defined in the page with intent specified. 2686 * * TransitionRoutes defined in the 2687 * [transition route 2688 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2689 * with intent specified. 2690 * * TransitionRoutes defined in flow with intent specified. 2691 * * TransitionRoutes defined in the 2692 * [transition route 2693 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2694 * with intent specified. 2695 * * TransitionRoutes defined in the page with only condition specified. 2696 * * TransitionRoutes defined in the 2697 * [transition route 2698 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2699 * with only condition specified. 2700 * </pre> 2701 * 2702 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2703 */ getTransitionRoutesOrBuilder( int index)2704 public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOrBuilder( 2705 int index) { 2706 if (transitionRoutesBuilder_ == null) { 2707 return transitionRoutes_.get(index); 2708 } else { 2709 return transitionRoutesBuilder_.getMessageOrBuilder(index); 2710 } 2711 } 2712 /** 2713 * 2714 * 2715 * <pre> 2716 * A list of transitions for the transition rules of this page. 2717 * They route the conversation to another page in the same flow, or another 2718 * flow. 2719 * When we are in a certain page, the TransitionRoutes are evalauted in the 2720 * following order: 2721 * * TransitionRoutes defined in the page with intent specified. 2722 * * TransitionRoutes defined in the 2723 * [transition route 2724 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2725 * with intent specified. 2726 * * TransitionRoutes defined in flow with intent specified. 2727 * * TransitionRoutes defined in the 2728 * [transition route 2729 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2730 * with intent specified. 2731 * * TransitionRoutes defined in the page with only condition specified. 2732 * * TransitionRoutes defined in the 2733 * [transition route 2734 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2735 * with only condition specified. 2736 * </pre> 2737 * 2738 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2739 */ 2740 public java.util.List<? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder> getTransitionRoutesOrBuilderList()2741 getTransitionRoutesOrBuilderList() { 2742 if (transitionRoutesBuilder_ != null) { 2743 return transitionRoutesBuilder_.getMessageOrBuilderList(); 2744 } else { 2745 return java.util.Collections.unmodifiableList(transitionRoutes_); 2746 } 2747 } 2748 /** 2749 * 2750 * 2751 * <pre> 2752 * A list of transitions for the transition rules of this page. 2753 * They route the conversation to another page in the same flow, or another 2754 * flow. 2755 * When we are in a certain page, the TransitionRoutes are evalauted in the 2756 * following order: 2757 * * TransitionRoutes defined in the page with intent specified. 2758 * * TransitionRoutes defined in the 2759 * [transition route 2760 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2761 * with intent specified. 2762 * * TransitionRoutes defined in flow with intent specified. 2763 * * TransitionRoutes defined in the 2764 * [transition route 2765 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2766 * with intent specified. 2767 * * TransitionRoutes defined in the page with only condition specified. 2768 * * TransitionRoutes defined in the 2769 * [transition route 2770 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2771 * with only condition specified. 2772 * </pre> 2773 * 2774 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2775 */ addTransitionRoutesBuilder()2776 public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRoutesBuilder() { 2777 return getTransitionRoutesFieldBuilder() 2778 .addBuilder(com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance()); 2779 } 2780 /** 2781 * 2782 * 2783 * <pre> 2784 * A list of transitions for the transition rules of this page. 2785 * They route the conversation to another page in the same flow, or another 2786 * flow. 2787 * When we are in a certain page, the TransitionRoutes are evalauted in the 2788 * following order: 2789 * * TransitionRoutes defined in the page with intent specified. 2790 * * TransitionRoutes defined in the 2791 * [transition route 2792 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2793 * with intent specified. 2794 * * TransitionRoutes defined in flow with intent specified. 2795 * * TransitionRoutes defined in the 2796 * [transition route 2797 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2798 * with intent specified. 2799 * * TransitionRoutes defined in the page with only condition specified. 2800 * * TransitionRoutes defined in the 2801 * [transition route 2802 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2803 * with only condition specified. 2804 * </pre> 2805 * 2806 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2807 */ addTransitionRoutesBuilder( int index)2808 public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRoutesBuilder( 2809 int index) { 2810 return getTransitionRoutesFieldBuilder() 2811 .addBuilder( 2812 index, com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance()); 2813 } 2814 /** 2815 * 2816 * 2817 * <pre> 2818 * A list of transitions for the transition rules of this page. 2819 * They route the conversation to another page in the same flow, or another 2820 * flow. 2821 * When we are in a certain page, the TransitionRoutes are evalauted in the 2822 * following order: 2823 * * TransitionRoutes defined in the page with intent specified. 2824 * * TransitionRoutes defined in the 2825 * [transition route 2826 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2827 * with intent specified. 2828 * * TransitionRoutes defined in flow with intent specified. 2829 * * TransitionRoutes defined in the 2830 * [transition route 2831 * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] 2832 * with intent specified. 2833 * * TransitionRoutes defined in the page with only condition specified. 2834 * * TransitionRoutes defined in the 2835 * [transition route 2836 * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] 2837 * with only condition specified. 2838 * </pre> 2839 * 2840 * <code>repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9;</code> 2841 */ 2842 public java.util.List<com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder> getTransitionRoutesBuilderList()2843 getTransitionRoutesBuilderList() { 2844 return getTransitionRoutesFieldBuilder().getBuilderList(); 2845 } 2846 2847 private com.google.protobuf.RepeatedFieldBuilderV3< 2848 com.google.cloud.dialogflow.cx.v3.TransitionRoute, 2849 com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, 2850 com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder> getTransitionRoutesFieldBuilder()2851 getTransitionRoutesFieldBuilder() { 2852 if (transitionRoutesBuilder_ == null) { 2853 transitionRoutesBuilder_ = 2854 new com.google.protobuf.RepeatedFieldBuilderV3< 2855 com.google.cloud.dialogflow.cx.v3.TransitionRoute, 2856 com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, 2857 com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder>( 2858 transitionRoutes_, 2859 ((bitField0_ & 0x00000020) != 0), 2860 getParentForChildren(), 2861 isClean()); 2862 transitionRoutes_ = null; 2863 } 2864 return transitionRoutesBuilder_; 2865 } 2866 2867 private java.util.List<com.google.cloud.dialogflow.cx.v3.EventHandler> eventHandlers_ = 2868 java.util.Collections.emptyList(); 2869 ensureEventHandlersIsMutable()2870 private void ensureEventHandlersIsMutable() { 2871 if (!((bitField0_ & 0x00000040) != 0)) { 2872 eventHandlers_ = 2873 new java.util.ArrayList<com.google.cloud.dialogflow.cx.v3.EventHandler>(eventHandlers_); 2874 bitField0_ |= 0x00000040; 2875 } 2876 } 2877 2878 private com.google.protobuf.RepeatedFieldBuilderV3< 2879 com.google.cloud.dialogflow.cx.v3.EventHandler, 2880 com.google.cloud.dialogflow.cx.v3.EventHandler.Builder, 2881 com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder> 2882 eventHandlersBuilder_; 2883 2884 /** 2885 * 2886 * 2887 * <pre> 2888 * Handlers associated with the page to handle events such as webhook errors, 2889 * no match or no input. 2890 * </pre> 2891 * 2892 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 2893 */ getEventHandlersList()2894 public java.util.List<com.google.cloud.dialogflow.cx.v3.EventHandler> getEventHandlersList() { 2895 if (eventHandlersBuilder_ == null) { 2896 return java.util.Collections.unmodifiableList(eventHandlers_); 2897 } else { 2898 return eventHandlersBuilder_.getMessageList(); 2899 } 2900 } 2901 /** 2902 * 2903 * 2904 * <pre> 2905 * Handlers associated with the page to handle events such as webhook errors, 2906 * no match or no input. 2907 * </pre> 2908 * 2909 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 2910 */ getEventHandlersCount()2911 public int getEventHandlersCount() { 2912 if (eventHandlersBuilder_ == null) { 2913 return eventHandlers_.size(); 2914 } else { 2915 return eventHandlersBuilder_.getCount(); 2916 } 2917 } 2918 /** 2919 * 2920 * 2921 * <pre> 2922 * Handlers associated with the page to handle events such as webhook errors, 2923 * no match or no input. 2924 * </pre> 2925 * 2926 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 2927 */ getEventHandlers(int index)2928 public com.google.cloud.dialogflow.cx.v3.EventHandler getEventHandlers(int index) { 2929 if (eventHandlersBuilder_ == null) { 2930 return eventHandlers_.get(index); 2931 } else { 2932 return eventHandlersBuilder_.getMessage(index); 2933 } 2934 } 2935 /** 2936 * 2937 * 2938 * <pre> 2939 * Handlers associated with the page to handle events such as webhook errors, 2940 * no match or no input. 2941 * </pre> 2942 * 2943 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 2944 */ setEventHandlers( int index, com.google.cloud.dialogflow.cx.v3.EventHandler value)2945 public Builder setEventHandlers( 2946 int index, com.google.cloud.dialogflow.cx.v3.EventHandler value) { 2947 if (eventHandlersBuilder_ == null) { 2948 if (value == null) { 2949 throw new NullPointerException(); 2950 } 2951 ensureEventHandlersIsMutable(); 2952 eventHandlers_.set(index, value); 2953 onChanged(); 2954 } else { 2955 eventHandlersBuilder_.setMessage(index, value); 2956 } 2957 return this; 2958 } 2959 /** 2960 * 2961 * 2962 * <pre> 2963 * Handlers associated with the page to handle events such as webhook errors, 2964 * no match or no input. 2965 * </pre> 2966 * 2967 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 2968 */ setEventHandlers( int index, com.google.cloud.dialogflow.cx.v3.EventHandler.Builder builderForValue)2969 public Builder setEventHandlers( 2970 int index, com.google.cloud.dialogflow.cx.v3.EventHandler.Builder builderForValue) { 2971 if (eventHandlersBuilder_ == null) { 2972 ensureEventHandlersIsMutable(); 2973 eventHandlers_.set(index, builderForValue.build()); 2974 onChanged(); 2975 } else { 2976 eventHandlersBuilder_.setMessage(index, builderForValue.build()); 2977 } 2978 return this; 2979 } 2980 /** 2981 * 2982 * 2983 * <pre> 2984 * Handlers associated with the page to handle events such as webhook errors, 2985 * no match or no input. 2986 * </pre> 2987 * 2988 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 2989 */ addEventHandlers(com.google.cloud.dialogflow.cx.v3.EventHandler value)2990 public Builder addEventHandlers(com.google.cloud.dialogflow.cx.v3.EventHandler value) { 2991 if (eventHandlersBuilder_ == null) { 2992 if (value == null) { 2993 throw new NullPointerException(); 2994 } 2995 ensureEventHandlersIsMutable(); 2996 eventHandlers_.add(value); 2997 onChanged(); 2998 } else { 2999 eventHandlersBuilder_.addMessage(value); 3000 } 3001 return this; 3002 } 3003 /** 3004 * 3005 * 3006 * <pre> 3007 * Handlers associated with the page to handle events such as webhook errors, 3008 * no match or no input. 3009 * </pre> 3010 * 3011 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3012 */ addEventHandlers( int index, com.google.cloud.dialogflow.cx.v3.EventHandler value)3013 public Builder addEventHandlers( 3014 int index, com.google.cloud.dialogflow.cx.v3.EventHandler value) { 3015 if (eventHandlersBuilder_ == null) { 3016 if (value == null) { 3017 throw new NullPointerException(); 3018 } 3019 ensureEventHandlersIsMutable(); 3020 eventHandlers_.add(index, value); 3021 onChanged(); 3022 } else { 3023 eventHandlersBuilder_.addMessage(index, value); 3024 } 3025 return this; 3026 } 3027 /** 3028 * 3029 * 3030 * <pre> 3031 * Handlers associated with the page to handle events such as webhook errors, 3032 * no match or no input. 3033 * </pre> 3034 * 3035 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3036 */ addEventHandlers( com.google.cloud.dialogflow.cx.v3.EventHandler.Builder builderForValue)3037 public Builder addEventHandlers( 3038 com.google.cloud.dialogflow.cx.v3.EventHandler.Builder builderForValue) { 3039 if (eventHandlersBuilder_ == null) { 3040 ensureEventHandlersIsMutable(); 3041 eventHandlers_.add(builderForValue.build()); 3042 onChanged(); 3043 } else { 3044 eventHandlersBuilder_.addMessage(builderForValue.build()); 3045 } 3046 return this; 3047 } 3048 /** 3049 * 3050 * 3051 * <pre> 3052 * Handlers associated with the page to handle events such as webhook errors, 3053 * no match or no input. 3054 * </pre> 3055 * 3056 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3057 */ addEventHandlers( int index, com.google.cloud.dialogflow.cx.v3.EventHandler.Builder builderForValue)3058 public Builder addEventHandlers( 3059 int index, com.google.cloud.dialogflow.cx.v3.EventHandler.Builder builderForValue) { 3060 if (eventHandlersBuilder_ == null) { 3061 ensureEventHandlersIsMutable(); 3062 eventHandlers_.add(index, builderForValue.build()); 3063 onChanged(); 3064 } else { 3065 eventHandlersBuilder_.addMessage(index, builderForValue.build()); 3066 } 3067 return this; 3068 } 3069 /** 3070 * 3071 * 3072 * <pre> 3073 * Handlers associated with the page to handle events such as webhook errors, 3074 * no match or no input. 3075 * </pre> 3076 * 3077 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3078 */ addAllEventHandlers( java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.EventHandler> values)3079 public Builder addAllEventHandlers( 3080 java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.EventHandler> values) { 3081 if (eventHandlersBuilder_ == null) { 3082 ensureEventHandlersIsMutable(); 3083 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventHandlers_); 3084 onChanged(); 3085 } else { 3086 eventHandlersBuilder_.addAllMessages(values); 3087 } 3088 return this; 3089 } 3090 /** 3091 * 3092 * 3093 * <pre> 3094 * Handlers associated with the page to handle events such as webhook errors, 3095 * no match or no input. 3096 * </pre> 3097 * 3098 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3099 */ clearEventHandlers()3100 public Builder clearEventHandlers() { 3101 if (eventHandlersBuilder_ == null) { 3102 eventHandlers_ = java.util.Collections.emptyList(); 3103 bitField0_ = (bitField0_ & ~0x00000040); 3104 onChanged(); 3105 } else { 3106 eventHandlersBuilder_.clear(); 3107 } 3108 return this; 3109 } 3110 /** 3111 * 3112 * 3113 * <pre> 3114 * Handlers associated with the page to handle events such as webhook errors, 3115 * no match or no input. 3116 * </pre> 3117 * 3118 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3119 */ removeEventHandlers(int index)3120 public Builder removeEventHandlers(int index) { 3121 if (eventHandlersBuilder_ == null) { 3122 ensureEventHandlersIsMutable(); 3123 eventHandlers_.remove(index); 3124 onChanged(); 3125 } else { 3126 eventHandlersBuilder_.remove(index); 3127 } 3128 return this; 3129 } 3130 /** 3131 * 3132 * 3133 * <pre> 3134 * Handlers associated with the page to handle events such as webhook errors, 3135 * no match or no input. 3136 * </pre> 3137 * 3138 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3139 */ getEventHandlersBuilder( int index)3140 public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder getEventHandlersBuilder( 3141 int index) { 3142 return getEventHandlersFieldBuilder().getBuilder(index); 3143 } 3144 /** 3145 * 3146 * 3147 * <pre> 3148 * Handlers associated with the page to handle events such as webhook errors, 3149 * no match or no input. 3150 * </pre> 3151 * 3152 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3153 */ getEventHandlersOrBuilder( int index)3154 public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlersOrBuilder( 3155 int index) { 3156 if (eventHandlersBuilder_ == null) { 3157 return eventHandlers_.get(index); 3158 } else { 3159 return eventHandlersBuilder_.getMessageOrBuilder(index); 3160 } 3161 } 3162 /** 3163 * 3164 * 3165 * <pre> 3166 * Handlers associated with the page to handle events such as webhook errors, 3167 * no match or no input. 3168 * </pre> 3169 * 3170 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3171 */ 3172 public java.util.List<? extends com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder> getEventHandlersOrBuilderList()3173 getEventHandlersOrBuilderList() { 3174 if (eventHandlersBuilder_ != null) { 3175 return eventHandlersBuilder_.getMessageOrBuilderList(); 3176 } else { 3177 return java.util.Collections.unmodifiableList(eventHandlers_); 3178 } 3179 } 3180 /** 3181 * 3182 * 3183 * <pre> 3184 * Handlers associated with the page to handle events such as webhook errors, 3185 * no match or no input. 3186 * </pre> 3187 * 3188 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3189 */ addEventHandlersBuilder()3190 public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBuilder() { 3191 return getEventHandlersFieldBuilder() 3192 .addBuilder(com.google.cloud.dialogflow.cx.v3.EventHandler.getDefaultInstance()); 3193 } 3194 /** 3195 * 3196 * 3197 * <pre> 3198 * Handlers associated with the page to handle events such as webhook errors, 3199 * no match or no input. 3200 * </pre> 3201 * 3202 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3203 */ addEventHandlersBuilder( int index)3204 public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBuilder( 3205 int index) { 3206 return getEventHandlersFieldBuilder() 3207 .addBuilder(index, com.google.cloud.dialogflow.cx.v3.EventHandler.getDefaultInstance()); 3208 } 3209 /** 3210 * 3211 * 3212 * <pre> 3213 * Handlers associated with the page to handle events such as webhook errors, 3214 * no match or no input. 3215 * </pre> 3216 * 3217 * <code>repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10;</code> 3218 */ 3219 public java.util.List<com.google.cloud.dialogflow.cx.v3.EventHandler.Builder> getEventHandlersBuilderList()3220 getEventHandlersBuilderList() { 3221 return getEventHandlersFieldBuilder().getBuilderList(); 3222 } 3223 3224 private com.google.protobuf.RepeatedFieldBuilderV3< 3225 com.google.cloud.dialogflow.cx.v3.EventHandler, 3226 com.google.cloud.dialogflow.cx.v3.EventHandler.Builder, 3227 com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder> getEventHandlersFieldBuilder()3228 getEventHandlersFieldBuilder() { 3229 if (eventHandlersBuilder_ == null) { 3230 eventHandlersBuilder_ = 3231 new com.google.protobuf.RepeatedFieldBuilderV3< 3232 com.google.cloud.dialogflow.cx.v3.EventHandler, 3233 com.google.cloud.dialogflow.cx.v3.EventHandler.Builder, 3234 com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder>( 3235 eventHandlers_, 3236 ((bitField0_ & 0x00000040) != 0), 3237 getParentForChildren(), 3238 isClean()); 3239 eventHandlers_ = null; 3240 } 3241 return eventHandlersBuilder_; 3242 } 3243 3244 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3245 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3246 return super.setUnknownFields(unknownFields); 3247 } 3248 3249 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3250 public final Builder mergeUnknownFields( 3251 final com.google.protobuf.UnknownFieldSet unknownFields) { 3252 return super.mergeUnknownFields(unknownFields); 3253 } 3254 3255 // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Page) 3256 } 3257 3258 // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Page) 3259 private static final com.google.cloud.dialogflow.cx.v3.Page DEFAULT_INSTANCE; 3260 3261 static { 3262 DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Page(); 3263 } 3264 getDefaultInstance()3265 public static com.google.cloud.dialogflow.cx.v3.Page getDefaultInstance() { 3266 return DEFAULT_INSTANCE; 3267 } 3268 3269 private static final com.google.protobuf.Parser<Page> PARSER = 3270 new com.google.protobuf.AbstractParser<Page>() { 3271 @java.lang.Override 3272 public Page parsePartialFrom( 3273 com.google.protobuf.CodedInputStream input, 3274 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3275 throws com.google.protobuf.InvalidProtocolBufferException { 3276 Builder builder = newBuilder(); 3277 try { 3278 builder.mergeFrom(input, extensionRegistry); 3279 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3280 throw e.setUnfinishedMessage(builder.buildPartial()); 3281 } catch (com.google.protobuf.UninitializedMessageException e) { 3282 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3283 } catch (java.io.IOException e) { 3284 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3285 .setUnfinishedMessage(builder.buildPartial()); 3286 } 3287 return builder.buildPartial(); 3288 } 3289 }; 3290 parser()3291 public static com.google.protobuf.Parser<Page> parser() { 3292 return PARSER; 3293 } 3294 3295 @java.lang.Override getParserForType()3296 public com.google.protobuf.Parser<Page> getParserForType() { 3297 return PARSER; 3298 } 3299 3300 @java.lang.Override getDefaultInstanceForType()3301 public com.google.cloud.dialogflow.cx.v3.Page getDefaultInstanceForType() { 3302 return DEFAULT_INSTANCE; 3303 } 3304 } 3305