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/v3beta1/transition_route_group.proto 18 19 package com.google.cloud.dialogflow.cx.v3beta1; 20 21 /** 22 * 23 * 24 * <pre> 25 * An TransitionRouteGroup represents a group of 26 * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute] to 27 * be used by a [Page][google.cloud.dialogflow.cx.v3beta1.Page]. 28 * </pre> 29 * 30 * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} 31 */ 32 public final class TransitionRouteGroup extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) 35 TransitionRouteGroupOrBuilder { 36 private static final long serialVersionUID = 0L; 37 // Use TransitionRouteGroup.newBuilder() to construct. TransitionRouteGroup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38 private TransitionRouteGroup(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 TransitionRouteGroup()42 private TransitionRouteGroup() { 43 name_ = ""; 44 displayName_ = ""; 45 transitionRoutes_ = java.util.Collections.emptyList(); 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new TransitionRouteGroup(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupProto 61 .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRouteGroup_descriptor; 62 } 63 64 @java.lang.Override 65 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()66 internalGetFieldAccessorTable() { 67 return com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupProto 68 .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRouteGroup_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.class, 71 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder.class); 72 } 73 74 public static final int NAME_FIELD_NUMBER = 1; 75 76 @SuppressWarnings("serial") 77 private volatile java.lang.Object name_ = ""; 78 /** 79 * 80 * 81 * <pre> 82 * The unique identifier of the transition route group. 83 * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup] 84 * populates the name automatically. Format: `projects/<Project 85 * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 86 * ID>/transitionRouteGroups/<Transition Route Group ID>`. 87 * </pre> 88 * 89 * <code>string name = 1;</code> 90 * 91 * @return The name. 92 */ 93 @java.lang.Override getName()94 public java.lang.String getName() { 95 java.lang.Object ref = name_; 96 if (ref instanceof java.lang.String) { 97 return (java.lang.String) ref; 98 } else { 99 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 100 java.lang.String s = bs.toStringUtf8(); 101 name_ = s; 102 return s; 103 } 104 } 105 /** 106 * 107 * 108 * <pre> 109 * The unique identifier of the transition route group. 110 * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup] 111 * populates the name automatically. Format: `projects/<Project 112 * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 113 * ID>/transitionRouteGroups/<Transition Route Group ID>`. 114 * </pre> 115 * 116 * <code>string name = 1;</code> 117 * 118 * @return The bytes for name. 119 */ 120 @java.lang.Override getNameBytes()121 public com.google.protobuf.ByteString getNameBytes() { 122 java.lang.Object ref = name_; 123 if (ref instanceof java.lang.String) { 124 com.google.protobuf.ByteString b = 125 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 126 name_ = b; 127 return b; 128 } else { 129 return (com.google.protobuf.ByteString) ref; 130 } 131 } 132 133 public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 134 135 @SuppressWarnings("serial") 136 private volatile java.lang.Object displayName_ = ""; 137 /** 138 * 139 * 140 * <pre> 141 * Required. The human-readable name of the transition route group, unique 142 * within the flow. The display name can be no longer than 30 characters. 143 * </pre> 144 * 145 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 146 * 147 * @return The displayName. 148 */ 149 @java.lang.Override getDisplayName()150 public java.lang.String getDisplayName() { 151 java.lang.Object ref = displayName_; 152 if (ref instanceof java.lang.String) { 153 return (java.lang.String) ref; 154 } else { 155 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 156 java.lang.String s = bs.toStringUtf8(); 157 displayName_ = s; 158 return s; 159 } 160 } 161 /** 162 * 163 * 164 * <pre> 165 * Required. The human-readable name of the transition route group, unique 166 * within the flow. The display name can be no longer than 30 characters. 167 * </pre> 168 * 169 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 170 * 171 * @return The bytes for displayName. 172 */ 173 @java.lang.Override getDisplayNameBytes()174 public com.google.protobuf.ByteString getDisplayNameBytes() { 175 java.lang.Object ref = displayName_; 176 if (ref instanceof java.lang.String) { 177 com.google.protobuf.ByteString b = 178 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 179 displayName_ = b; 180 return b; 181 } else { 182 return (com.google.protobuf.ByteString) ref; 183 } 184 } 185 186 public static final int TRANSITION_ROUTES_FIELD_NUMBER = 5; 187 188 @SuppressWarnings("serial") 189 private java.util.List<com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute> transitionRoutes_; 190 /** 191 * 192 * 193 * <pre> 194 * Transition routes associated with the 195 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 196 * </pre> 197 * 198 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 199 * </code> 200 */ 201 @java.lang.Override 202 public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute> getTransitionRoutesList()203 getTransitionRoutesList() { 204 return transitionRoutes_; 205 } 206 /** 207 * 208 * 209 * <pre> 210 * Transition routes associated with the 211 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 212 * </pre> 213 * 214 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 215 * </code> 216 */ 217 @java.lang.Override 218 public java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder> getTransitionRoutesOrBuilderList()219 getTransitionRoutesOrBuilderList() { 220 return transitionRoutes_; 221 } 222 /** 223 * 224 * 225 * <pre> 226 * Transition routes associated with the 227 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 228 * </pre> 229 * 230 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 231 * </code> 232 */ 233 @java.lang.Override getTransitionRoutesCount()234 public int getTransitionRoutesCount() { 235 return transitionRoutes_.size(); 236 } 237 /** 238 * 239 * 240 * <pre> 241 * Transition routes associated with the 242 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 243 * </pre> 244 * 245 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 246 * </code> 247 */ 248 @java.lang.Override getTransitionRoutes(int index)249 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoutes(int index) { 250 return transitionRoutes_.get(index); 251 } 252 /** 253 * 254 * 255 * <pre> 256 * Transition routes associated with the 257 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 258 * </pre> 259 * 260 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 261 * </code> 262 */ 263 @java.lang.Override 264 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRoutesOrBuilder(int index)265 getTransitionRoutesOrBuilder(int index) { 266 return transitionRoutes_.get(index); 267 } 268 269 private byte memoizedIsInitialized = -1; 270 271 @java.lang.Override isInitialized()272 public final boolean isInitialized() { 273 byte isInitialized = memoizedIsInitialized; 274 if (isInitialized == 1) return true; 275 if (isInitialized == 0) return false; 276 277 memoizedIsInitialized = 1; 278 return true; 279 } 280 281 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)282 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 283 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 284 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 285 } 286 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 287 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); 288 } 289 for (int i = 0; i < transitionRoutes_.size(); i++) { 290 output.writeMessage(5, transitionRoutes_.get(i)); 291 } 292 getUnknownFields().writeTo(output); 293 } 294 295 @java.lang.Override getSerializedSize()296 public int getSerializedSize() { 297 int size = memoizedSize; 298 if (size != -1) return size; 299 300 size = 0; 301 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 302 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 303 } 304 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 305 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); 306 } 307 for (int i = 0; i < transitionRoutes_.size(); i++) { 308 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, transitionRoutes_.get(i)); 309 } 310 size += getUnknownFields().getSerializedSize(); 311 memoizedSize = size; 312 return size; 313 } 314 315 @java.lang.Override equals(final java.lang.Object obj)316 public boolean equals(final java.lang.Object obj) { 317 if (obj == this) { 318 return true; 319 } 320 if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup)) { 321 return super.equals(obj); 322 } 323 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup other = 324 (com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) obj; 325 326 if (!getName().equals(other.getName())) return false; 327 if (!getDisplayName().equals(other.getDisplayName())) return false; 328 if (!getTransitionRoutesList().equals(other.getTransitionRoutesList())) return false; 329 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 330 return true; 331 } 332 333 @java.lang.Override hashCode()334 public int hashCode() { 335 if (memoizedHashCode != 0) { 336 return memoizedHashCode; 337 } 338 int hash = 41; 339 hash = (19 * hash) + getDescriptor().hashCode(); 340 hash = (37 * hash) + NAME_FIELD_NUMBER; 341 hash = (53 * hash) + getName().hashCode(); 342 hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; 343 hash = (53 * hash) + getDisplayName().hashCode(); 344 if (getTransitionRoutesCount() > 0) { 345 hash = (37 * hash) + TRANSITION_ROUTES_FIELD_NUMBER; 346 hash = (53 * hash) + getTransitionRoutesList().hashCode(); 347 } 348 hash = (29 * hash) + getUnknownFields().hashCode(); 349 memoizedHashCode = hash; 350 return hash; 351 } 352 parseFrom( java.nio.ByteBuffer data)353 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 354 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 355 return PARSER.parseFrom(data); 356 } 357 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)358 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 359 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 360 throws com.google.protobuf.InvalidProtocolBufferException { 361 return PARSER.parseFrom(data, extensionRegistry); 362 } 363 parseFrom( com.google.protobuf.ByteString data)364 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 365 com.google.protobuf.ByteString data) 366 throws com.google.protobuf.InvalidProtocolBufferException { 367 return PARSER.parseFrom(data); 368 } 369 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)370 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 371 com.google.protobuf.ByteString data, 372 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 373 throws com.google.protobuf.InvalidProtocolBufferException { 374 return PARSER.parseFrom(data, extensionRegistry); 375 } 376 parseFrom(byte[] data)377 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom(byte[] data) 378 throws com.google.protobuf.InvalidProtocolBufferException { 379 return PARSER.parseFrom(data); 380 } 381 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)382 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 383 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 384 throws com.google.protobuf.InvalidProtocolBufferException { 385 return PARSER.parseFrom(data, extensionRegistry); 386 } 387 parseFrom( java.io.InputStream input)388 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 389 java.io.InputStream input) throws java.io.IOException { 390 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 391 } 392 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)393 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 394 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 395 throws java.io.IOException { 396 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 397 PARSER, input, extensionRegistry); 398 } 399 parseDelimitedFrom( java.io.InputStream input)400 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseDelimitedFrom( 401 java.io.InputStream input) throws java.io.IOException { 402 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 403 } 404 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)405 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseDelimitedFrom( 406 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 407 throws java.io.IOException { 408 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 409 PARSER, input, extensionRegistry); 410 } 411 parseFrom( com.google.protobuf.CodedInputStream input)412 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 413 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 414 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 415 } 416 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)417 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup parseFrom( 418 com.google.protobuf.CodedInputStream input, 419 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 420 throws java.io.IOException { 421 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 422 PARSER, input, extensionRegistry); 423 } 424 425 @java.lang.Override newBuilderForType()426 public Builder newBuilderForType() { 427 return newBuilder(); 428 } 429 newBuilder()430 public static Builder newBuilder() { 431 return DEFAULT_INSTANCE.toBuilder(); 432 } 433 newBuilder( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup prototype)434 public static Builder newBuilder( 435 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup prototype) { 436 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 437 } 438 439 @java.lang.Override toBuilder()440 public Builder toBuilder() { 441 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 442 } 443 444 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)445 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 446 Builder builder = new Builder(parent); 447 return builder; 448 } 449 /** 450 * 451 * 452 * <pre> 453 * An TransitionRouteGroup represents a group of 454 * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute] to 455 * be used by a [Page][google.cloud.dialogflow.cx.v3beta1.Page]. 456 * </pre> 457 * 458 * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} 459 */ 460 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 461 implements 462 // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) 463 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupOrBuilder { getDescriptor()464 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 465 return com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupProto 466 .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRouteGroup_descriptor; 467 } 468 469 @java.lang.Override 470 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()471 internalGetFieldAccessorTable() { 472 return com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupProto 473 .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRouteGroup_fieldAccessorTable 474 .ensureFieldAccessorsInitialized( 475 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.class, 476 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder.class); 477 } 478 479 // Construct using com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.newBuilder() Builder()480 private Builder() {} 481 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)482 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 483 super(parent); 484 } 485 486 @java.lang.Override clear()487 public Builder clear() { 488 super.clear(); 489 bitField0_ = 0; 490 name_ = ""; 491 displayName_ = ""; 492 if (transitionRoutesBuilder_ == null) { 493 transitionRoutes_ = java.util.Collections.emptyList(); 494 } else { 495 transitionRoutes_ = null; 496 transitionRoutesBuilder_.clear(); 497 } 498 bitField0_ = (bitField0_ & ~0x00000004); 499 return this; 500 } 501 502 @java.lang.Override getDescriptorForType()503 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 504 return com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupProto 505 .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRouteGroup_descriptor; 506 } 507 508 @java.lang.Override getDefaultInstanceForType()509 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getDefaultInstanceForType() { 510 return com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.getDefaultInstance(); 511 } 512 513 @java.lang.Override build()514 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup build() { 515 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result = buildPartial(); 516 if (!result.isInitialized()) { 517 throw newUninitializedMessageException(result); 518 } 519 return result; 520 } 521 522 @java.lang.Override buildPartial()523 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup buildPartial() { 524 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result = 525 new com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(this); 526 buildPartialRepeatedFields(result); 527 if (bitField0_ != 0) { 528 buildPartial0(result); 529 } 530 onBuilt(); 531 return result; 532 } 533 buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result)534 private void buildPartialRepeatedFields( 535 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result) { 536 if (transitionRoutesBuilder_ == null) { 537 if (((bitField0_ & 0x00000004) != 0)) { 538 transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); 539 bitField0_ = (bitField0_ & ~0x00000004); 540 } 541 result.transitionRoutes_ = transitionRoutes_; 542 } else { 543 result.transitionRoutes_ = transitionRoutesBuilder_.build(); 544 } 545 } 546 buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result)547 private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result) { 548 int from_bitField0_ = bitField0_; 549 if (((from_bitField0_ & 0x00000001) != 0)) { 550 result.name_ = name_; 551 } 552 if (((from_bitField0_ & 0x00000002) != 0)) { 553 result.displayName_ = displayName_; 554 } 555 } 556 557 @java.lang.Override clone()558 public Builder clone() { 559 return super.clone(); 560 } 561 562 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)563 public Builder setField( 564 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 565 return super.setField(field, value); 566 } 567 568 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)569 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 570 return super.clearField(field); 571 } 572 573 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)574 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 575 return super.clearOneof(oneof); 576 } 577 578 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)579 public Builder setRepeatedField( 580 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 581 return super.setRepeatedField(field, index, value); 582 } 583 584 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)585 public Builder addRepeatedField( 586 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 587 return super.addRepeatedField(field, value); 588 } 589 590 @java.lang.Override mergeFrom(com.google.protobuf.Message other)591 public Builder mergeFrom(com.google.protobuf.Message other) { 592 if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) { 593 return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) other); 594 } else { 595 super.mergeFrom(other); 596 return this; 597 } 598 } 599 mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup other)600 public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup other) { 601 if (other == com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.getDefaultInstance()) 602 return this; 603 if (!other.getName().isEmpty()) { 604 name_ = other.name_; 605 bitField0_ |= 0x00000001; 606 onChanged(); 607 } 608 if (!other.getDisplayName().isEmpty()) { 609 displayName_ = other.displayName_; 610 bitField0_ |= 0x00000002; 611 onChanged(); 612 } 613 if (transitionRoutesBuilder_ == null) { 614 if (!other.transitionRoutes_.isEmpty()) { 615 if (transitionRoutes_.isEmpty()) { 616 transitionRoutes_ = other.transitionRoutes_; 617 bitField0_ = (bitField0_ & ~0x00000004); 618 } else { 619 ensureTransitionRoutesIsMutable(); 620 transitionRoutes_.addAll(other.transitionRoutes_); 621 } 622 onChanged(); 623 } 624 } else { 625 if (!other.transitionRoutes_.isEmpty()) { 626 if (transitionRoutesBuilder_.isEmpty()) { 627 transitionRoutesBuilder_.dispose(); 628 transitionRoutesBuilder_ = null; 629 transitionRoutes_ = other.transitionRoutes_; 630 bitField0_ = (bitField0_ & ~0x00000004); 631 transitionRoutesBuilder_ = 632 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 633 ? getTransitionRoutesFieldBuilder() 634 : null; 635 } else { 636 transitionRoutesBuilder_.addAllMessages(other.transitionRoutes_); 637 } 638 } 639 } 640 this.mergeUnknownFields(other.getUnknownFields()); 641 onChanged(); 642 return this; 643 } 644 645 @java.lang.Override isInitialized()646 public final boolean isInitialized() { 647 return true; 648 } 649 650 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)651 public Builder mergeFrom( 652 com.google.protobuf.CodedInputStream input, 653 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 654 throws java.io.IOException { 655 if (extensionRegistry == null) { 656 throw new java.lang.NullPointerException(); 657 } 658 try { 659 boolean done = false; 660 while (!done) { 661 int tag = input.readTag(); 662 switch (tag) { 663 case 0: 664 done = true; 665 break; 666 case 10: 667 { 668 name_ = input.readStringRequireUtf8(); 669 bitField0_ |= 0x00000001; 670 break; 671 } // case 10 672 case 18: 673 { 674 displayName_ = input.readStringRequireUtf8(); 675 bitField0_ |= 0x00000002; 676 break; 677 } // case 18 678 case 42: 679 { 680 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute m = 681 input.readMessage( 682 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.parser(), 683 extensionRegistry); 684 if (transitionRoutesBuilder_ == null) { 685 ensureTransitionRoutesIsMutable(); 686 transitionRoutes_.add(m); 687 } else { 688 transitionRoutesBuilder_.addMessage(m); 689 } 690 break; 691 } // case 42 692 default: 693 { 694 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 695 done = true; // was an endgroup tag 696 } 697 break; 698 } // default: 699 } // switch (tag) 700 } // while (!done) 701 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 702 throw e.unwrapIOException(); 703 } finally { 704 onChanged(); 705 } // finally 706 return this; 707 } 708 709 private int bitField0_; 710 711 private java.lang.Object name_ = ""; 712 /** 713 * 714 * 715 * <pre> 716 * The unique identifier of the transition route group. 717 * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup] 718 * populates the name automatically. Format: `projects/<Project 719 * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 720 * ID>/transitionRouteGroups/<Transition Route Group ID>`. 721 * </pre> 722 * 723 * <code>string name = 1;</code> 724 * 725 * @return The name. 726 */ getName()727 public java.lang.String getName() { 728 java.lang.Object ref = name_; 729 if (!(ref instanceof java.lang.String)) { 730 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 731 java.lang.String s = bs.toStringUtf8(); 732 name_ = s; 733 return s; 734 } else { 735 return (java.lang.String) ref; 736 } 737 } 738 /** 739 * 740 * 741 * <pre> 742 * The unique identifier of the transition route group. 743 * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup] 744 * populates the name automatically. Format: `projects/<Project 745 * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 746 * ID>/transitionRouteGroups/<Transition Route Group ID>`. 747 * </pre> 748 * 749 * <code>string name = 1;</code> 750 * 751 * @return The bytes for name. 752 */ getNameBytes()753 public com.google.protobuf.ByteString getNameBytes() { 754 java.lang.Object ref = name_; 755 if (ref instanceof String) { 756 com.google.protobuf.ByteString b = 757 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 758 name_ = b; 759 return b; 760 } else { 761 return (com.google.protobuf.ByteString) ref; 762 } 763 } 764 /** 765 * 766 * 767 * <pre> 768 * The unique identifier of the transition route group. 769 * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup] 770 * populates the name automatically. Format: `projects/<Project 771 * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 772 * ID>/transitionRouteGroups/<Transition Route Group ID>`. 773 * </pre> 774 * 775 * <code>string name = 1;</code> 776 * 777 * @param value The name to set. 778 * @return This builder for chaining. 779 */ setName(java.lang.String value)780 public Builder setName(java.lang.String value) { 781 if (value == null) { 782 throw new NullPointerException(); 783 } 784 name_ = value; 785 bitField0_ |= 0x00000001; 786 onChanged(); 787 return this; 788 } 789 /** 790 * 791 * 792 * <pre> 793 * The unique identifier of the transition route group. 794 * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup] 795 * populates the name automatically. Format: `projects/<Project 796 * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 797 * ID>/transitionRouteGroups/<Transition Route Group ID>`. 798 * </pre> 799 * 800 * <code>string name = 1;</code> 801 * 802 * @return This builder for chaining. 803 */ clearName()804 public Builder clearName() { 805 name_ = getDefaultInstance().getName(); 806 bitField0_ = (bitField0_ & ~0x00000001); 807 onChanged(); 808 return this; 809 } 810 /** 811 * 812 * 813 * <pre> 814 * The unique identifier of the transition route group. 815 * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup] 816 * populates the name automatically. Format: `projects/<Project 817 * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 818 * ID>/transitionRouteGroups/<Transition Route Group ID>`. 819 * </pre> 820 * 821 * <code>string name = 1;</code> 822 * 823 * @param value The bytes for name to set. 824 * @return This builder for chaining. 825 */ setNameBytes(com.google.protobuf.ByteString value)826 public Builder setNameBytes(com.google.protobuf.ByteString value) { 827 if (value == null) { 828 throw new NullPointerException(); 829 } 830 checkByteStringIsUtf8(value); 831 name_ = value; 832 bitField0_ |= 0x00000001; 833 onChanged(); 834 return this; 835 } 836 837 private java.lang.Object displayName_ = ""; 838 /** 839 * 840 * 841 * <pre> 842 * Required. The human-readable name of the transition route group, unique 843 * within the flow. The display name can be no longer than 30 characters. 844 * </pre> 845 * 846 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 847 * 848 * @return The displayName. 849 */ getDisplayName()850 public java.lang.String getDisplayName() { 851 java.lang.Object ref = displayName_; 852 if (!(ref instanceof java.lang.String)) { 853 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 854 java.lang.String s = bs.toStringUtf8(); 855 displayName_ = s; 856 return s; 857 } else { 858 return (java.lang.String) ref; 859 } 860 } 861 /** 862 * 863 * 864 * <pre> 865 * Required. The human-readable name of the transition route group, unique 866 * within the flow. The display name can be no longer than 30 characters. 867 * </pre> 868 * 869 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 870 * 871 * @return The bytes for displayName. 872 */ getDisplayNameBytes()873 public com.google.protobuf.ByteString getDisplayNameBytes() { 874 java.lang.Object ref = displayName_; 875 if (ref instanceof String) { 876 com.google.protobuf.ByteString b = 877 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 878 displayName_ = b; 879 return b; 880 } else { 881 return (com.google.protobuf.ByteString) ref; 882 } 883 } 884 /** 885 * 886 * 887 * <pre> 888 * Required. The human-readable name of the transition route group, unique 889 * within the flow. The display name can be no longer than 30 characters. 890 * </pre> 891 * 892 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 893 * 894 * @param value The displayName to set. 895 * @return This builder for chaining. 896 */ setDisplayName(java.lang.String value)897 public Builder setDisplayName(java.lang.String value) { 898 if (value == null) { 899 throw new NullPointerException(); 900 } 901 displayName_ = value; 902 bitField0_ |= 0x00000002; 903 onChanged(); 904 return this; 905 } 906 /** 907 * 908 * 909 * <pre> 910 * Required. The human-readable name of the transition route group, unique 911 * within the flow. The display name can be no longer than 30 characters. 912 * </pre> 913 * 914 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 915 * 916 * @return This builder for chaining. 917 */ clearDisplayName()918 public Builder clearDisplayName() { 919 displayName_ = getDefaultInstance().getDisplayName(); 920 bitField0_ = (bitField0_ & ~0x00000002); 921 onChanged(); 922 return this; 923 } 924 /** 925 * 926 * 927 * <pre> 928 * Required. The human-readable name of the transition route group, unique 929 * within the flow. The display name can be no longer than 30 characters. 930 * </pre> 931 * 932 * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code> 933 * 934 * @param value The bytes for displayName to set. 935 * @return This builder for chaining. 936 */ setDisplayNameBytes(com.google.protobuf.ByteString value)937 public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 938 if (value == null) { 939 throw new NullPointerException(); 940 } 941 checkByteStringIsUtf8(value); 942 displayName_ = value; 943 bitField0_ |= 0x00000002; 944 onChanged(); 945 return this; 946 } 947 948 private java.util.List<com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute> 949 transitionRoutes_ = java.util.Collections.emptyList(); 950 ensureTransitionRoutesIsMutable()951 private void ensureTransitionRoutesIsMutable() { 952 if (!((bitField0_ & 0x00000004) != 0)) { 953 transitionRoutes_ = 954 new java.util.ArrayList<com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute>( 955 transitionRoutes_); 956 bitField0_ |= 0x00000004; 957 } 958 } 959 960 private com.google.protobuf.RepeatedFieldBuilderV3< 961 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute, 962 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, 963 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder> 964 transitionRoutesBuilder_; 965 966 /** 967 * 968 * 969 * <pre> 970 * Transition routes associated with the 971 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 972 * </pre> 973 * 974 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 975 * </code> 976 */ 977 public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute> getTransitionRoutesList()978 getTransitionRoutesList() { 979 if (transitionRoutesBuilder_ == null) { 980 return java.util.Collections.unmodifiableList(transitionRoutes_); 981 } else { 982 return transitionRoutesBuilder_.getMessageList(); 983 } 984 } 985 /** 986 * 987 * 988 * <pre> 989 * Transition routes associated with the 990 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 991 * </pre> 992 * 993 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 994 * </code> 995 */ getTransitionRoutesCount()996 public int getTransitionRoutesCount() { 997 if (transitionRoutesBuilder_ == null) { 998 return transitionRoutes_.size(); 999 } else { 1000 return transitionRoutesBuilder_.getCount(); 1001 } 1002 } 1003 /** 1004 * 1005 * 1006 * <pre> 1007 * Transition routes associated with the 1008 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1009 * </pre> 1010 * 1011 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1012 * </code> 1013 */ getTransitionRoutes(int index)1014 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoutes(int index) { 1015 if (transitionRoutesBuilder_ == null) { 1016 return transitionRoutes_.get(index); 1017 } else { 1018 return transitionRoutesBuilder_.getMessage(index); 1019 } 1020 } 1021 /** 1022 * 1023 * 1024 * <pre> 1025 * Transition routes associated with the 1026 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1027 * </pre> 1028 * 1029 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1030 * </code> 1031 */ setTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value)1032 public Builder setTransitionRoutes( 1033 int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) { 1034 if (transitionRoutesBuilder_ == null) { 1035 if (value == null) { 1036 throw new NullPointerException(); 1037 } 1038 ensureTransitionRoutesIsMutable(); 1039 transitionRoutes_.set(index, value); 1040 onChanged(); 1041 } else { 1042 transitionRoutesBuilder_.setMessage(index, value); 1043 } 1044 return this; 1045 } 1046 /** 1047 * 1048 * 1049 * <pre> 1050 * Transition routes associated with the 1051 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1052 * </pre> 1053 * 1054 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1055 * </code> 1056 */ setTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue)1057 public Builder setTransitionRoutes( 1058 int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) { 1059 if (transitionRoutesBuilder_ == null) { 1060 ensureTransitionRoutesIsMutable(); 1061 transitionRoutes_.set(index, builderForValue.build()); 1062 onChanged(); 1063 } else { 1064 transitionRoutesBuilder_.setMessage(index, builderForValue.build()); 1065 } 1066 return this; 1067 } 1068 /** 1069 * 1070 * 1071 * <pre> 1072 * Transition routes associated with the 1073 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1074 * </pre> 1075 * 1076 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1077 * </code> 1078 */ addTransitionRoutes( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value)1079 public Builder addTransitionRoutes( 1080 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) { 1081 if (transitionRoutesBuilder_ == null) { 1082 if (value == null) { 1083 throw new NullPointerException(); 1084 } 1085 ensureTransitionRoutesIsMutable(); 1086 transitionRoutes_.add(value); 1087 onChanged(); 1088 } else { 1089 transitionRoutesBuilder_.addMessage(value); 1090 } 1091 return this; 1092 } 1093 /** 1094 * 1095 * 1096 * <pre> 1097 * Transition routes associated with the 1098 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1099 * </pre> 1100 * 1101 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1102 * </code> 1103 */ addTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value)1104 public Builder addTransitionRoutes( 1105 int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) { 1106 if (transitionRoutesBuilder_ == null) { 1107 if (value == null) { 1108 throw new NullPointerException(); 1109 } 1110 ensureTransitionRoutesIsMutable(); 1111 transitionRoutes_.add(index, value); 1112 onChanged(); 1113 } else { 1114 transitionRoutesBuilder_.addMessage(index, value); 1115 } 1116 return this; 1117 } 1118 /** 1119 * 1120 * 1121 * <pre> 1122 * Transition routes associated with the 1123 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1124 * </pre> 1125 * 1126 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1127 * </code> 1128 */ addTransitionRoutes( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue)1129 public Builder addTransitionRoutes( 1130 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) { 1131 if (transitionRoutesBuilder_ == null) { 1132 ensureTransitionRoutesIsMutable(); 1133 transitionRoutes_.add(builderForValue.build()); 1134 onChanged(); 1135 } else { 1136 transitionRoutesBuilder_.addMessage(builderForValue.build()); 1137 } 1138 return this; 1139 } 1140 /** 1141 * 1142 * 1143 * <pre> 1144 * Transition routes associated with the 1145 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1146 * </pre> 1147 * 1148 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1149 * </code> 1150 */ addTransitionRoutes( int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue)1151 public Builder addTransitionRoutes( 1152 int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) { 1153 if (transitionRoutesBuilder_ == null) { 1154 ensureTransitionRoutesIsMutable(); 1155 transitionRoutes_.add(index, builderForValue.build()); 1156 onChanged(); 1157 } else { 1158 transitionRoutesBuilder_.addMessage(index, builderForValue.build()); 1159 } 1160 return this; 1161 } 1162 /** 1163 * 1164 * 1165 * <pre> 1166 * Transition routes associated with the 1167 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1168 * </pre> 1169 * 1170 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1171 * </code> 1172 */ addAllTransitionRoutes( java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute> values)1173 public Builder addAllTransitionRoutes( 1174 java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute> 1175 values) { 1176 if (transitionRoutesBuilder_ == null) { 1177 ensureTransitionRoutesIsMutable(); 1178 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionRoutes_); 1179 onChanged(); 1180 } else { 1181 transitionRoutesBuilder_.addAllMessages(values); 1182 } 1183 return this; 1184 } 1185 /** 1186 * 1187 * 1188 * <pre> 1189 * Transition routes associated with the 1190 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1191 * </pre> 1192 * 1193 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1194 * </code> 1195 */ clearTransitionRoutes()1196 public Builder clearTransitionRoutes() { 1197 if (transitionRoutesBuilder_ == null) { 1198 transitionRoutes_ = java.util.Collections.emptyList(); 1199 bitField0_ = (bitField0_ & ~0x00000004); 1200 onChanged(); 1201 } else { 1202 transitionRoutesBuilder_.clear(); 1203 } 1204 return this; 1205 } 1206 /** 1207 * 1208 * 1209 * <pre> 1210 * Transition routes associated with the 1211 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1212 * </pre> 1213 * 1214 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1215 * </code> 1216 */ removeTransitionRoutes(int index)1217 public Builder removeTransitionRoutes(int index) { 1218 if (transitionRoutesBuilder_ == null) { 1219 ensureTransitionRoutesIsMutable(); 1220 transitionRoutes_.remove(index); 1221 onChanged(); 1222 } else { 1223 transitionRoutesBuilder_.remove(index); 1224 } 1225 return this; 1226 } 1227 /** 1228 * 1229 * 1230 * <pre> 1231 * Transition routes associated with the 1232 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1233 * </pre> 1234 * 1235 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1236 * </code> 1237 */ 1238 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder getTransitionRoutesBuilder(int index)1239 getTransitionRoutesBuilder(int index) { 1240 return getTransitionRoutesFieldBuilder().getBuilder(index); 1241 } 1242 /** 1243 * 1244 * 1245 * <pre> 1246 * Transition routes associated with the 1247 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1248 * </pre> 1249 * 1250 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1251 * </code> 1252 */ 1253 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRoutesOrBuilder(int index)1254 getTransitionRoutesOrBuilder(int index) { 1255 if (transitionRoutesBuilder_ == null) { 1256 return transitionRoutes_.get(index); 1257 } else { 1258 return transitionRoutesBuilder_.getMessageOrBuilder(index); 1259 } 1260 } 1261 /** 1262 * 1263 * 1264 * <pre> 1265 * Transition routes associated with the 1266 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1267 * </pre> 1268 * 1269 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1270 * </code> 1271 */ 1272 public java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder> getTransitionRoutesOrBuilderList()1273 getTransitionRoutesOrBuilderList() { 1274 if (transitionRoutesBuilder_ != null) { 1275 return transitionRoutesBuilder_.getMessageOrBuilderList(); 1276 } else { 1277 return java.util.Collections.unmodifiableList(transitionRoutes_); 1278 } 1279 } 1280 /** 1281 * 1282 * 1283 * <pre> 1284 * Transition routes associated with the 1285 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1286 * </pre> 1287 * 1288 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1289 * </code> 1290 */ 1291 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder addTransitionRoutesBuilder()1292 addTransitionRoutesBuilder() { 1293 return getTransitionRoutesFieldBuilder() 1294 .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance()); 1295 } 1296 /** 1297 * 1298 * 1299 * <pre> 1300 * Transition routes associated with the 1301 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1302 * </pre> 1303 * 1304 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1305 * </code> 1306 */ 1307 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder addTransitionRoutesBuilder(int index)1308 addTransitionRoutesBuilder(int index) { 1309 return getTransitionRoutesFieldBuilder() 1310 .addBuilder( 1311 index, com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance()); 1312 } 1313 /** 1314 * 1315 * 1316 * <pre> 1317 * Transition routes associated with the 1318 * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. 1319 * </pre> 1320 * 1321 * <code>repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5; 1322 * </code> 1323 */ 1324 public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder> getTransitionRoutesBuilderList()1325 getTransitionRoutesBuilderList() { 1326 return getTransitionRoutesFieldBuilder().getBuilderList(); 1327 } 1328 1329 private com.google.protobuf.RepeatedFieldBuilderV3< 1330 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute, 1331 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, 1332 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder> getTransitionRoutesFieldBuilder()1333 getTransitionRoutesFieldBuilder() { 1334 if (transitionRoutesBuilder_ == null) { 1335 transitionRoutesBuilder_ = 1336 new com.google.protobuf.RepeatedFieldBuilderV3< 1337 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute, 1338 com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, 1339 com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>( 1340 transitionRoutes_, 1341 ((bitField0_ & 0x00000004) != 0), 1342 getParentForChildren(), 1343 isClean()); 1344 transitionRoutes_ = null; 1345 } 1346 return transitionRoutesBuilder_; 1347 } 1348 1349 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1350 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1351 return super.setUnknownFields(unknownFields); 1352 } 1353 1354 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1355 public final Builder mergeUnknownFields( 1356 final com.google.protobuf.UnknownFieldSet unknownFields) { 1357 return super.mergeUnknownFields(unknownFields); 1358 } 1359 1360 // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) 1361 } 1362 1363 // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) 1364 private static final com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup DEFAULT_INSTANCE; 1365 1366 static { 1367 DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); 1368 } 1369 getDefaultInstance()1370 public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getDefaultInstance() { 1371 return DEFAULT_INSTANCE; 1372 } 1373 1374 private static final com.google.protobuf.Parser<TransitionRouteGroup> PARSER = 1375 new com.google.protobuf.AbstractParser<TransitionRouteGroup>() { 1376 @java.lang.Override 1377 public TransitionRouteGroup parsePartialFrom( 1378 com.google.protobuf.CodedInputStream input, 1379 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1380 throws com.google.protobuf.InvalidProtocolBufferException { 1381 Builder builder = newBuilder(); 1382 try { 1383 builder.mergeFrom(input, extensionRegistry); 1384 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1385 throw e.setUnfinishedMessage(builder.buildPartial()); 1386 } catch (com.google.protobuf.UninitializedMessageException e) { 1387 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1388 } catch (java.io.IOException e) { 1389 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1390 .setUnfinishedMessage(builder.buildPartial()); 1391 } 1392 return builder.buildPartial(); 1393 } 1394 }; 1395 parser()1396 public static com.google.protobuf.Parser<TransitionRouteGroup> parser() { 1397 return PARSER; 1398 } 1399 1400 @java.lang.Override getParserForType()1401 public com.google.protobuf.Parser<TransitionRouteGroup> getParserForType() { 1402 return PARSER; 1403 } 1404 1405 @java.lang.Override getDefaultInstanceForType()1406 public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getDefaultInstanceForType() { 1407 return DEFAULT_INSTANCE; 1408 } 1409 } 1410