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/datastream/v1/datastream_resources.proto 18 19 package com.google.cloud.datastream.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A resource representing streaming data from a source to a destination. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.datastream.v1.Stream} 29 */ 30 public final class Stream extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream) 33 StreamOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use Stream.newBuilder() to construct. Stream(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private Stream(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 Stream()40 private Stream() { 41 name_ = ""; 42 displayName_ = ""; 43 state_ = 0; 44 errors_ = java.util.Collections.emptyList(); 45 customerManagedEncryptionKey_ = ""; 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new Stream(); 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.datastream.v1.DatastreamResourcesProto 61 .internal_static_google_cloud_datastream_v1_Stream_descriptor; 62 } 63 64 @SuppressWarnings({"rawtypes"}) 65 @java.lang.Override internalGetMapField(int number)66 protected com.google.protobuf.MapField internalGetMapField(int number) { 67 switch (number) { 68 case 4: 69 return internalGetLabels(); 70 default: 71 throw new RuntimeException("Invalid map field number: " + number); 72 } 73 } 74 75 @java.lang.Override 76 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()77 internalGetFieldAccessorTable() { 78 return com.google.cloud.datastream.v1.DatastreamResourcesProto 79 .internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable 80 .ensureFieldAccessorsInitialized( 81 com.google.cloud.datastream.v1.Stream.class, 82 com.google.cloud.datastream.v1.Stream.Builder.class); 83 } 84 85 /** 86 * 87 * 88 * <pre> 89 * Stream state. 90 * </pre> 91 * 92 * Protobuf enum {@code google.cloud.datastream.v1.Stream.State} 93 */ 94 public enum State implements com.google.protobuf.ProtocolMessageEnum { 95 /** 96 * 97 * 98 * <pre> 99 * Unspecified stream state. 100 * </pre> 101 * 102 * <code>STATE_UNSPECIFIED = 0;</code> 103 */ 104 STATE_UNSPECIFIED(0), 105 /** 106 * 107 * 108 * <pre> 109 * The stream has been created but has not yet started streaming data. 110 * </pre> 111 * 112 * <code>NOT_STARTED = 1;</code> 113 */ 114 NOT_STARTED(1), 115 /** 116 * 117 * 118 * <pre> 119 * The stream is running. 120 * </pre> 121 * 122 * <code>RUNNING = 2;</code> 123 */ 124 RUNNING(2), 125 /** 126 * 127 * 128 * <pre> 129 * The stream is paused. 130 * </pre> 131 * 132 * <code>PAUSED = 3;</code> 133 */ 134 PAUSED(3), 135 /** 136 * 137 * 138 * <pre> 139 * The stream is in maintenance mode. 140 * Updates are rejected on the resource in this state. 141 * </pre> 142 * 143 * <code>MAINTENANCE = 4;</code> 144 */ 145 MAINTENANCE(4), 146 /** 147 * 148 * 149 * <pre> 150 * The stream is experiencing an error that is preventing data from being 151 * streamed. 152 * </pre> 153 * 154 * <code>FAILED = 5;</code> 155 */ 156 FAILED(5), 157 /** 158 * 159 * 160 * <pre> 161 * The stream has experienced a terminal failure. 162 * </pre> 163 * 164 * <code>FAILED_PERMANENTLY = 6;</code> 165 */ 166 FAILED_PERMANENTLY(6), 167 /** 168 * 169 * 170 * <pre> 171 * The stream is starting, but not yet running. 172 * </pre> 173 * 174 * <code>STARTING = 7;</code> 175 */ 176 STARTING(7), 177 /** 178 * 179 * 180 * <pre> 181 * The Stream is no longer reading new events, but still writing events in 182 * the buffer. 183 * </pre> 184 * 185 * <code>DRAINING = 8;</code> 186 */ 187 DRAINING(8), 188 UNRECOGNIZED(-1), 189 ; 190 191 /** 192 * 193 * 194 * <pre> 195 * Unspecified stream state. 196 * </pre> 197 * 198 * <code>STATE_UNSPECIFIED = 0;</code> 199 */ 200 public static final int STATE_UNSPECIFIED_VALUE = 0; 201 /** 202 * 203 * 204 * <pre> 205 * The stream has been created but has not yet started streaming data. 206 * </pre> 207 * 208 * <code>NOT_STARTED = 1;</code> 209 */ 210 public static final int NOT_STARTED_VALUE = 1; 211 /** 212 * 213 * 214 * <pre> 215 * The stream is running. 216 * </pre> 217 * 218 * <code>RUNNING = 2;</code> 219 */ 220 public static final int RUNNING_VALUE = 2; 221 /** 222 * 223 * 224 * <pre> 225 * The stream is paused. 226 * </pre> 227 * 228 * <code>PAUSED = 3;</code> 229 */ 230 public static final int PAUSED_VALUE = 3; 231 /** 232 * 233 * 234 * <pre> 235 * The stream is in maintenance mode. 236 * Updates are rejected on the resource in this state. 237 * </pre> 238 * 239 * <code>MAINTENANCE = 4;</code> 240 */ 241 public static final int MAINTENANCE_VALUE = 4; 242 /** 243 * 244 * 245 * <pre> 246 * The stream is experiencing an error that is preventing data from being 247 * streamed. 248 * </pre> 249 * 250 * <code>FAILED = 5;</code> 251 */ 252 public static final int FAILED_VALUE = 5; 253 /** 254 * 255 * 256 * <pre> 257 * The stream has experienced a terminal failure. 258 * </pre> 259 * 260 * <code>FAILED_PERMANENTLY = 6;</code> 261 */ 262 public static final int FAILED_PERMANENTLY_VALUE = 6; 263 /** 264 * 265 * 266 * <pre> 267 * The stream is starting, but not yet running. 268 * </pre> 269 * 270 * <code>STARTING = 7;</code> 271 */ 272 public static final int STARTING_VALUE = 7; 273 /** 274 * 275 * 276 * <pre> 277 * The Stream is no longer reading new events, but still writing events in 278 * the buffer. 279 * </pre> 280 * 281 * <code>DRAINING = 8;</code> 282 */ 283 public static final int DRAINING_VALUE = 8; 284 getNumber()285 public final int getNumber() { 286 if (this == UNRECOGNIZED) { 287 throw new java.lang.IllegalArgumentException( 288 "Can't get the number of an unknown enum value."); 289 } 290 return value; 291 } 292 293 /** 294 * @param value The numeric wire value of the corresponding enum entry. 295 * @return The enum associated with the given numeric wire value. 296 * @deprecated Use {@link #forNumber(int)} instead. 297 */ 298 @java.lang.Deprecated valueOf(int value)299 public static State valueOf(int value) { 300 return forNumber(value); 301 } 302 303 /** 304 * @param value The numeric wire value of the corresponding enum entry. 305 * @return The enum associated with the given numeric wire value. 306 */ forNumber(int value)307 public static State forNumber(int value) { 308 switch (value) { 309 case 0: 310 return STATE_UNSPECIFIED; 311 case 1: 312 return NOT_STARTED; 313 case 2: 314 return RUNNING; 315 case 3: 316 return PAUSED; 317 case 4: 318 return MAINTENANCE; 319 case 5: 320 return FAILED; 321 case 6: 322 return FAILED_PERMANENTLY; 323 case 7: 324 return STARTING; 325 case 8: 326 return DRAINING; 327 default: 328 return null; 329 } 330 } 331 internalGetValueMap()332 public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { 333 return internalValueMap; 334 } 335 336 private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = 337 new com.google.protobuf.Internal.EnumLiteMap<State>() { 338 public State findValueByNumber(int number) { 339 return State.forNumber(number); 340 } 341 }; 342 getValueDescriptor()343 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 344 if (this == UNRECOGNIZED) { 345 throw new java.lang.IllegalStateException( 346 "Can't get the descriptor of an unrecognized enum value."); 347 } 348 return getDescriptor().getValues().get(ordinal()); 349 } 350 getDescriptorForType()351 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 352 return getDescriptor(); 353 } 354 getDescriptor()355 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 356 return com.google.cloud.datastream.v1.Stream.getDescriptor().getEnumTypes().get(0); 357 } 358 359 private static final State[] VALUES = values(); 360 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)361 public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 362 if (desc.getType() != getDescriptor()) { 363 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 364 } 365 if (desc.getIndex() == -1) { 366 return UNRECOGNIZED; 367 } 368 return VALUES[desc.getIndex()]; 369 } 370 371 private final int value; 372 State(int value)373 private State(int value) { 374 this.value = value; 375 } 376 377 // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.Stream.State) 378 } 379 380 public interface BackfillAllStrategyOrBuilder 381 extends 382 // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillAllStrategy) 383 com.google.protobuf.MessageOrBuilder { 384 385 /** 386 * 387 * 388 * <pre> 389 * Oracle data source objects to avoid backfilling. 390 * </pre> 391 * 392 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 393 * 394 * @return Whether the oracleExcludedObjects field is set. 395 */ hasOracleExcludedObjects()396 boolean hasOracleExcludedObjects(); 397 /** 398 * 399 * 400 * <pre> 401 * Oracle data source objects to avoid backfilling. 402 * </pre> 403 * 404 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 405 * 406 * @return The oracleExcludedObjects. 407 */ getOracleExcludedObjects()408 com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects(); 409 /** 410 * 411 * 412 * <pre> 413 * Oracle data source objects to avoid backfilling. 414 * </pre> 415 * 416 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 417 */ getOracleExcludedObjectsOrBuilder()418 com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder(); 419 420 /** 421 * 422 * 423 * <pre> 424 * MySQL data source objects to avoid backfilling. 425 * </pre> 426 * 427 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 428 * 429 * @return Whether the mysqlExcludedObjects field is set. 430 */ hasMysqlExcludedObjects()431 boolean hasMysqlExcludedObjects(); 432 /** 433 * 434 * 435 * <pre> 436 * MySQL data source objects to avoid backfilling. 437 * </pre> 438 * 439 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 440 * 441 * @return The mysqlExcludedObjects. 442 */ getMysqlExcludedObjects()443 com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects(); 444 /** 445 * 446 * 447 * <pre> 448 * MySQL data source objects to avoid backfilling. 449 * </pre> 450 * 451 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 452 */ getMysqlExcludedObjectsOrBuilder()453 com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); 454 455 /** 456 * 457 * 458 * <pre> 459 * PostgreSQL data source objects to avoid backfilling. 460 * </pre> 461 * 462 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 463 * 464 * @return Whether the postgresqlExcludedObjects field is set. 465 */ hasPostgresqlExcludedObjects()466 boolean hasPostgresqlExcludedObjects(); 467 /** 468 * 469 * 470 * <pre> 471 * PostgreSQL data source objects to avoid backfilling. 472 * </pre> 473 * 474 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 475 * 476 * @return The postgresqlExcludedObjects. 477 */ getPostgresqlExcludedObjects()478 com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects(); 479 /** 480 * 481 * 482 * <pre> 483 * PostgreSQL data source objects to avoid backfilling. 484 * </pre> 485 * 486 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 487 */ getPostgresqlExcludedObjectsOrBuilder()488 com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder(); 489 490 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase()491 getExcludedObjectsCase(); 492 } 493 /** 494 * 495 * 496 * <pre> 497 * Backfill strategy to automatically backfill the Stream's objects. 498 * Specific objects can be excluded. 499 * </pre> 500 * 501 * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy} 502 */ 503 public static final class BackfillAllStrategy extends com.google.protobuf.GeneratedMessageV3 504 implements 505 // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillAllStrategy) 506 BackfillAllStrategyOrBuilder { 507 private static final long serialVersionUID = 0L; 508 // Use BackfillAllStrategy.newBuilder() to construct. BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)509 private BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 510 super(builder); 511 } 512 BackfillAllStrategy()513 private BackfillAllStrategy() {} 514 515 @java.lang.Override 516 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)517 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 518 return new BackfillAllStrategy(); 519 } 520 521 @java.lang.Override getUnknownFields()522 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 523 return this.unknownFields; 524 } 525 getDescriptor()526 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 527 return com.google.cloud.datastream.v1.DatastreamResourcesProto 528 .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; 529 } 530 531 @java.lang.Override 532 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()533 internalGetFieldAccessorTable() { 534 return com.google.cloud.datastream.v1.DatastreamResourcesProto 535 .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable 536 .ensureFieldAccessorsInitialized( 537 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class, 538 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class); 539 } 540 541 private int excludedObjectsCase_ = 0; 542 private java.lang.Object excludedObjects_; 543 544 public enum ExcludedObjectsCase 545 implements 546 com.google.protobuf.Internal.EnumLite, 547 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 548 ORACLE_EXCLUDED_OBJECTS(1), 549 MYSQL_EXCLUDED_OBJECTS(2), 550 POSTGRESQL_EXCLUDED_OBJECTS(3), 551 EXCLUDEDOBJECTS_NOT_SET(0); 552 private final int value; 553 ExcludedObjectsCase(int value)554 private ExcludedObjectsCase(int value) { 555 this.value = value; 556 } 557 /** 558 * @param value The number of the enum to look for. 559 * @return The enum associated with the given number. 560 * @deprecated Use {@link #forNumber(int)} instead. 561 */ 562 @java.lang.Deprecated valueOf(int value)563 public static ExcludedObjectsCase valueOf(int value) { 564 return forNumber(value); 565 } 566 forNumber(int value)567 public static ExcludedObjectsCase forNumber(int value) { 568 switch (value) { 569 case 1: 570 return ORACLE_EXCLUDED_OBJECTS; 571 case 2: 572 return MYSQL_EXCLUDED_OBJECTS; 573 case 3: 574 return POSTGRESQL_EXCLUDED_OBJECTS; 575 case 0: 576 return EXCLUDEDOBJECTS_NOT_SET; 577 default: 578 return null; 579 } 580 } 581 getNumber()582 public int getNumber() { 583 return this.value; 584 } 585 }; 586 getExcludedObjectsCase()587 public ExcludedObjectsCase getExcludedObjectsCase() { 588 return ExcludedObjectsCase.forNumber(excludedObjectsCase_); 589 } 590 591 public static final int ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER = 1; 592 /** 593 * 594 * 595 * <pre> 596 * Oracle data source objects to avoid backfilling. 597 * </pre> 598 * 599 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 600 * 601 * @return Whether the oracleExcludedObjects field is set. 602 */ 603 @java.lang.Override hasOracleExcludedObjects()604 public boolean hasOracleExcludedObjects() { 605 return excludedObjectsCase_ == 1; 606 } 607 /** 608 * 609 * 610 * <pre> 611 * Oracle data source objects to avoid backfilling. 612 * </pre> 613 * 614 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 615 * 616 * @return The oracleExcludedObjects. 617 */ 618 @java.lang.Override getOracleExcludedObjects()619 public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { 620 if (excludedObjectsCase_ == 1) { 621 return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; 622 } 623 return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); 624 } 625 /** 626 * 627 * 628 * <pre> 629 * Oracle data source objects to avoid backfilling. 630 * </pre> 631 * 632 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 633 */ 634 @java.lang.Override getOracleExcludedObjectsOrBuilder()635 public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { 636 if (excludedObjectsCase_ == 1) { 637 return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; 638 } 639 return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); 640 } 641 642 public static final int MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 2; 643 /** 644 * 645 * 646 * <pre> 647 * MySQL data source objects to avoid backfilling. 648 * </pre> 649 * 650 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 651 * 652 * @return Whether the mysqlExcludedObjects field is set. 653 */ 654 @java.lang.Override hasMysqlExcludedObjects()655 public boolean hasMysqlExcludedObjects() { 656 return excludedObjectsCase_ == 2; 657 } 658 /** 659 * 660 * 661 * <pre> 662 * MySQL data source objects to avoid backfilling. 663 * </pre> 664 * 665 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 666 * 667 * @return The mysqlExcludedObjects. 668 */ 669 @java.lang.Override getMysqlExcludedObjects()670 public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { 671 if (excludedObjectsCase_ == 2) { 672 return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; 673 } 674 return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); 675 } 676 /** 677 * 678 * 679 * <pre> 680 * MySQL data source objects to avoid backfilling. 681 * </pre> 682 * 683 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 684 */ 685 @java.lang.Override getMysqlExcludedObjectsOrBuilder()686 public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { 687 if (excludedObjectsCase_ == 2) { 688 return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; 689 } 690 return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); 691 } 692 693 public static final int POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 3; 694 /** 695 * 696 * 697 * <pre> 698 * PostgreSQL data source objects to avoid backfilling. 699 * </pre> 700 * 701 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 702 * 703 * @return Whether the postgresqlExcludedObjects field is set. 704 */ 705 @java.lang.Override hasPostgresqlExcludedObjects()706 public boolean hasPostgresqlExcludedObjects() { 707 return excludedObjectsCase_ == 3; 708 } 709 /** 710 * 711 * 712 * <pre> 713 * PostgreSQL data source objects to avoid backfilling. 714 * </pre> 715 * 716 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 717 * 718 * @return The postgresqlExcludedObjects. 719 */ 720 @java.lang.Override getPostgresqlExcludedObjects()721 public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { 722 if (excludedObjectsCase_ == 3) { 723 return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; 724 } 725 return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); 726 } 727 /** 728 * 729 * 730 * <pre> 731 * PostgreSQL data source objects to avoid backfilling. 732 * </pre> 733 * 734 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 735 */ 736 @java.lang.Override 737 public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder()738 getPostgresqlExcludedObjectsOrBuilder() { 739 if (excludedObjectsCase_ == 3) { 740 return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; 741 } 742 return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); 743 } 744 745 private byte memoizedIsInitialized = -1; 746 747 @java.lang.Override isInitialized()748 public final boolean isInitialized() { 749 byte isInitialized = memoizedIsInitialized; 750 if (isInitialized == 1) return true; 751 if (isInitialized == 0) return false; 752 753 memoizedIsInitialized = 1; 754 return true; 755 } 756 757 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)758 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 759 if (excludedObjectsCase_ == 1) { 760 output.writeMessage(1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); 761 } 762 if (excludedObjectsCase_ == 2) { 763 output.writeMessage(2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); 764 } 765 if (excludedObjectsCase_ == 3) { 766 output.writeMessage(3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); 767 } 768 getUnknownFields().writeTo(output); 769 } 770 771 @java.lang.Override getSerializedSize()772 public int getSerializedSize() { 773 int size = memoizedSize; 774 if (size != -1) return size; 775 776 size = 0; 777 if (excludedObjectsCase_ == 1) { 778 size += 779 com.google.protobuf.CodedOutputStream.computeMessageSize( 780 1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); 781 } 782 if (excludedObjectsCase_ == 2) { 783 size += 784 com.google.protobuf.CodedOutputStream.computeMessageSize( 785 2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); 786 } 787 if (excludedObjectsCase_ == 3) { 788 size += 789 com.google.protobuf.CodedOutputStream.computeMessageSize( 790 3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); 791 } 792 size += getUnknownFields().getSerializedSize(); 793 memoizedSize = size; 794 return size; 795 } 796 797 @java.lang.Override equals(final java.lang.Object obj)798 public boolean equals(final java.lang.Object obj) { 799 if (obj == this) { 800 return true; 801 } 802 if (!(obj instanceof com.google.cloud.datastream.v1.Stream.BackfillAllStrategy)) { 803 return super.equals(obj); 804 } 805 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other = 806 (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) obj; 807 808 if (!getExcludedObjectsCase().equals(other.getExcludedObjectsCase())) return false; 809 switch (excludedObjectsCase_) { 810 case 1: 811 if (!getOracleExcludedObjects().equals(other.getOracleExcludedObjects())) return false; 812 break; 813 case 2: 814 if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; 815 break; 816 case 3: 817 if (!getPostgresqlExcludedObjects().equals(other.getPostgresqlExcludedObjects())) 818 return false; 819 break; 820 case 0: 821 default: 822 } 823 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 824 return true; 825 } 826 827 @java.lang.Override hashCode()828 public int hashCode() { 829 if (memoizedHashCode != 0) { 830 return memoizedHashCode; 831 } 832 int hash = 41; 833 hash = (19 * hash) + getDescriptor().hashCode(); 834 switch (excludedObjectsCase_) { 835 case 1: 836 hash = (37 * hash) + ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER; 837 hash = (53 * hash) + getOracleExcludedObjects().hashCode(); 838 break; 839 case 2: 840 hash = (37 * hash) + MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER; 841 hash = (53 * hash) + getMysqlExcludedObjects().hashCode(); 842 break; 843 case 3: 844 hash = (37 * hash) + POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER; 845 hash = (53 * hash) + getPostgresqlExcludedObjects().hashCode(); 846 break; 847 case 0: 848 default: 849 } 850 hash = (29 * hash) + getUnknownFields().hashCode(); 851 memoizedHashCode = hash; 852 return hash; 853 } 854 parseFrom( java.nio.ByteBuffer data)855 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 856 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 857 return PARSER.parseFrom(data); 858 } 859 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)860 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 861 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 862 throws com.google.protobuf.InvalidProtocolBufferException { 863 return PARSER.parseFrom(data, extensionRegistry); 864 } 865 parseFrom( com.google.protobuf.ByteString data)866 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 867 com.google.protobuf.ByteString data) 868 throws com.google.protobuf.InvalidProtocolBufferException { 869 return PARSER.parseFrom(data); 870 } 871 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)872 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 873 com.google.protobuf.ByteString data, 874 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 875 throws com.google.protobuf.InvalidProtocolBufferException { 876 return PARSER.parseFrom(data, extensionRegistry); 877 } 878 parseFrom(byte[] data)879 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom(byte[] data) 880 throws com.google.protobuf.InvalidProtocolBufferException { 881 return PARSER.parseFrom(data); 882 } 883 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)884 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 885 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 886 throws com.google.protobuf.InvalidProtocolBufferException { 887 return PARSER.parseFrom(data, extensionRegistry); 888 } 889 parseFrom( java.io.InputStream input)890 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 891 java.io.InputStream input) throws java.io.IOException { 892 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 893 } 894 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)895 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 896 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 897 throws java.io.IOException { 898 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 899 PARSER, input, extensionRegistry); 900 } 901 parseDelimitedFrom( java.io.InputStream input)902 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom( 903 java.io.InputStream input) throws java.io.IOException { 904 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 905 } 906 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)907 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom( 908 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 909 throws java.io.IOException { 910 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 911 PARSER, input, extensionRegistry); 912 } 913 parseFrom( com.google.protobuf.CodedInputStream input)914 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 915 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 916 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 917 } 918 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)919 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( 920 com.google.protobuf.CodedInputStream input, 921 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 922 throws java.io.IOException { 923 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 924 PARSER, input, extensionRegistry); 925 } 926 927 @java.lang.Override newBuilderForType()928 public Builder newBuilderForType() { 929 return newBuilder(); 930 } 931 newBuilder()932 public static Builder newBuilder() { 933 return DEFAULT_INSTANCE.toBuilder(); 934 } 935 newBuilder( com.google.cloud.datastream.v1.Stream.BackfillAllStrategy prototype)936 public static Builder newBuilder( 937 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy prototype) { 938 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 939 } 940 941 @java.lang.Override toBuilder()942 public Builder toBuilder() { 943 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 944 } 945 946 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)947 protected Builder newBuilderForType( 948 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 949 Builder builder = new Builder(parent); 950 return builder; 951 } 952 /** 953 * 954 * 955 * <pre> 956 * Backfill strategy to automatically backfill the Stream's objects. 957 * Specific objects can be excluded. 958 * </pre> 959 * 960 * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy} 961 */ 962 public static final class Builder 963 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 964 implements 965 // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillAllStrategy) 966 com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder { getDescriptor()967 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 968 return com.google.cloud.datastream.v1.DatastreamResourcesProto 969 .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; 970 } 971 972 @java.lang.Override 973 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()974 internalGetFieldAccessorTable() { 975 return com.google.cloud.datastream.v1.DatastreamResourcesProto 976 .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable 977 .ensureFieldAccessorsInitialized( 978 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class, 979 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class); 980 } 981 982 // Construct using com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder() Builder()983 private Builder() {} 984 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)985 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 986 super(parent); 987 } 988 989 @java.lang.Override clear()990 public Builder clear() { 991 super.clear(); 992 bitField0_ = 0; 993 if (oracleExcludedObjectsBuilder_ != null) { 994 oracleExcludedObjectsBuilder_.clear(); 995 } 996 if (mysqlExcludedObjectsBuilder_ != null) { 997 mysqlExcludedObjectsBuilder_.clear(); 998 } 999 if (postgresqlExcludedObjectsBuilder_ != null) { 1000 postgresqlExcludedObjectsBuilder_.clear(); 1001 } 1002 excludedObjectsCase_ = 0; 1003 excludedObjects_ = null; 1004 return this; 1005 } 1006 1007 @java.lang.Override getDescriptorForType()1008 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1009 return com.google.cloud.datastream.v1.DatastreamResourcesProto 1010 .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; 1011 } 1012 1013 @java.lang.Override getDefaultInstanceForType()1014 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { 1015 return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); 1016 } 1017 1018 @java.lang.Override build()1019 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy build() { 1020 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result = buildPartial(); 1021 if (!result.isInitialized()) { 1022 throw newUninitializedMessageException(result); 1023 } 1024 return result; 1025 } 1026 1027 @java.lang.Override buildPartial()1028 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy buildPartial() { 1029 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result = 1030 new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(this); 1031 if (bitField0_ != 0) { 1032 buildPartial0(result); 1033 } 1034 buildPartialOneofs(result); 1035 onBuilt(); 1036 return result; 1037 } 1038 buildPartial0(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result)1039 private void buildPartial0(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result) { 1040 int from_bitField0_ = bitField0_; 1041 } 1042 buildPartialOneofs( com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result)1043 private void buildPartialOneofs( 1044 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result) { 1045 result.excludedObjectsCase_ = excludedObjectsCase_; 1046 result.excludedObjects_ = this.excludedObjects_; 1047 if (excludedObjectsCase_ == 1 && oracleExcludedObjectsBuilder_ != null) { 1048 result.excludedObjects_ = oracleExcludedObjectsBuilder_.build(); 1049 } 1050 if (excludedObjectsCase_ == 2 && mysqlExcludedObjectsBuilder_ != null) { 1051 result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build(); 1052 } 1053 if (excludedObjectsCase_ == 3 && postgresqlExcludedObjectsBuilder_ != null) { 1054 result.excludedObjects_ = postgresqlExcludedObjectsBuilder_.build(); 1055 } 1056 } 1057 1058 @java.lang.Override clone()1059 public Builder clone() { 1060 return super.clone(); 1061 } 1062 1063 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1064 public Builder setField( 1065 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1066 return super.setField(field, value); 1067 } 1068 1069 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1070 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1071 return super.clearField(field); 1072 } 1073 1074 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1075 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1076 return super.clearOneof(oneof); 1077 } 1078 1079 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1080 public Builder setRepeatedField( 1081 com.google.protobuf.Descriptors.FieldDescriptor field, 1082 int index, 1083 java.lang.Object value) { 1084 return super.setRepeatedField(field, index, value); 1085 } 1086 1087 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1088 public Builder addRepeatedField( 1089 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1090 return super.addRepeatedField(field, value); 1091 } 1092 1093 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1094 public Builder mergeFrom(com.google.protobuf.Message other) { 1095 if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) { 1096 return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) other); 1097 } else { 1098 super.mergeFrom(other); 1099 return this; 1100 } 1101 } 1102 mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other)1103 public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other) { 1104 if (other == com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) 1105 return this; 1106 switch (other.getExcludedObjectsCase()) { 1107 case ORACLE_EXCLUDED_OBJECTS: 1108 { 1109 mergeOracleExcludedObjects(other.getOracleExcludedObjects()); 1110 break; 1111 } 1112 case MYSQL_EXCLUDED_OBJECTS: 1113 { 1114 mergeMysqlExcludedObjects(other.getMysqlExcludedObjects()); 1115 break; 1116 } 1117 case POSTGRESQL_EXCLUDED_OBJECTS: 1118 { 1119 mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects()); 1120 break; 1121 } 1122 case EXCLUDEDOBJECTS_NOT_SET: 1123 { 1124 break; 1125 } 1126 } 1127 this.mergeUnknownFields(other.getUnknownFields()); 1128 onChanged(); 1129 return this; 1130 } 1131 1132 @java.lang.Override isInitialized()1133 public final boolean isInitialized() { 1134 return true; 1135 } 1136 1137 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1138 public Builder mergeFrom( 1139 com.google.protobuf.CodedInputStream input, 1140 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1141 throws java.io.IOException { 1142 if (extensionRegistry == null) { 1143 throw new java.lang.NullPointerException(); 1144 } 1145 try { 1146 boolean done = false; 1147 while (!done) { 1148 int tag = input.readTag(); 1149 switch (tag) { 1150 case 0: 1151 done = true; 1152 break; 1153 case 10: 1154 { 1155 input.readMessage( 1156 getOracleExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry); 1157 excludedObjectsCase_ = 1; 1158 break; 1159 } // case 10 1160 case 18: 1161 { 1162 input.readMessage( 1163 getMysqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry); 1164 excludedObjectsCase_ = 2; 1165 break; 1166 } // case 18 1167 case 26: 1168 { 1169 input.readMessage( 1170 getPostgresqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry); 1171 excludedObjectsCase_ = 3; 1172 break; 1173 } // case 26 1174 default: 1175 { 1176 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1177 done = true; // was an endgroup tag 1178 } 1179 break; 1180 } // default: 1181 } // switch (tag) 1182 } // while (!done) 1183 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1184 throw e.unwrapIOException(); 1185 } finally { 1186 onChanged(); 1187 } // finally 1188 return this; 1189 } 1190 1191 private int excludedObjectsCase_ = 0; 1192 private java.lang.Object excludedObjects_; 1193 getExcludedObjectsCase()1194 public ExcludedObjectsCase getExcludedObjectsCase() { 1195 return ExcludedObjectsCase.forNumber(excludedObjectsCase_); 1196 } 1197 clearExcludedObjects()1198 public Builder clearExcludedObjects() { 1199 excludedObjectsCase_ = 0; 1200 excludedObjects_ = null; 1201 onChanged(); 1202 return this; 1203 } 1204 1205 private int bitField0_; 1206 1207 private com.google.protobuf.SingleFieldBuilderV3< 1208 com.google.cloud.datastream.v1.OracleRdbms, 1209 com.google.cloud.datastream.v1.OracleRdbms.Builder, 1210 com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> 1211 oracleExcludedObjectsBuilder_; 1212 /** 1213 * 1214 * 1215 * <pre> 1216 * Oracle data source objects to avoid backfilling. 1217 * </pre> 1218 * 1219 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1220 * 1221 * @return Whether the oracleExcludedObjects field is set. 1222 */ 1223 @java.lang.Override hasOracleExcludedObjects()1224 public boolean hasOracleExcludedObjects() { 1225 return excludedObjectsCase_ == 1; 1226 } 1227 /** 1228 * 1229 * 1230 * <pre> 1231 * Oracle data source objects to avoid backfilling. 1232 * </pre> 1233 * 1234 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1235 * 1236 * @return The oracleExcludedObjects. 1237 */ 1238 @java.lang.Override getOracleExcludedObjects()1239 public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { 1240 if (oracleExcludedObjectsBuilder_ == null) { 1241 if (excludedObjectsCase_ == 1) { 1242 return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; 1243 } 1244 return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); 1245 } else { 1246 if (excludedObjectsCase_ == 1) { 1247 return oracleExcludedObjectsBuilder_.getMessage(); 1248 } 1249 return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); 1250 } 1251 } 1252 /** 1253 * 1254 * 1255 * <pre> 1256 * Oracle data source objects to avoid backfilling. 1257 * </pre> 1258 * 1259 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1260 */ setOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdbms value)1261 public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdbms value) { 1262 if (oracleExcludedObjectsBuilder_ == null) { 1263 if (value == null) { 1264 throw new NullPointerException(); 1265 } 1266 excludedObjects_ = value; 1267 onChanged(); 1268 } else { 1269 oracleExcludedObjectsBuilder_.setMessage(value); 1270 } 1271 excludedObjectsCase_ = 1; 1272 return this; 1273 } 1274 /** 1275 * 1276 * 1277 * <pre> 1278 * Oracle data source objects to avoid backfilling. 1279 * </pre> 1280 * 1281 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1282 */ setOracleExcludedObjects( com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue)1283 public Builder setOracleExcludedObjects( 1284 com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { 1285 if (oracleExcludedObjectsBuilder_ == null) { 1286 excludedObjects_ = builderForValue.build(); 1287 onChanged(); 1288 } else { 1289 oracleExcludedObjectsBuilder_.setMessage(builderForValue.build()); 1290 } 1291 excludedObjectsCase_ = 1; 1292 return this; 1293 } 1294 /** 1295 * 1296 * 1297 * <pre> 1298 * Oracle data source objects to avoid backfilling. 1299 * </pre> 1300 * 1301 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1302 */ mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdbms value)1303 public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdbms value) { 1304 if (oracleExcludedObjectsBuilder_ == null) { 1305 if (excludedObjectsCase_ == 1 1306 && excludedObjects_ 1307 != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { 1308 excludedObjects_ = 1309 com.google.cloud.datastream.v1.OracleRdbms.newBuilder( 1310 (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_) 1311 .mergeFrom(value) 1312 .buildPartial(); 1313 } else { 1314 excludedObjects_ = value; 1315 } 1316 onChanged(); 1317 } else { 1318 if (excludedObjectsCase_ == 1) { 1319 oracleExcludedObjectsBuilder_.mergeFrom(value); 1320 } else { 1321 oracleExcludedObjectsBuilder_.setMessage(value); 1322 } 1323 } 1324 excludedObjectsCase_ = 1; 1325 return this; 1326 } 1327 /** 1328 * 1329 * 1330 * <pre> 1331 * Oracle data source objects to avoid backfilling. 1332 * </pre> 1333 * 1334 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1335 */ clearOracleExcludedObjects()1336 public Builder clearOracleExcludedObjects() { 1337 if (oracleExcludedObjectsBuilder_ == null) { 1338 if (excludedObjectsCase_ == 1) { 1339 excludedObjectsCase_ = 0; 1340 excludedObjects_ = null; 1341 onChanged(); 1342 } 1343 } else { 1344 if (excludedObjectsCase_ == 1) { 1345 excludedObjectsCase_ = 0; 1346 excludedObjects_ = null; 1347 } 1348 oracleExcludedObjectsBuilder_.clear(); 1349 } 1350 return this; 1351 } 1352 /** 1353 * 1354 * 1355 * <pre> 1356 * Oracle data source objects to avoid backfilling. 1357 * </pre> 1358 * 1359 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1360 */ getOracleExcludedObjectsBuilder()1361 public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjectsBuilder() { 1362 return getOracleExcludedObjectsFieldBuilder().getBuilder(); 1363 } 1364 /** 1365 * 1366 * 1367 * <pre> 1368 * Oracle data source objects to avoid backfilling. 1369 * </pre> 1370 * 1371 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1372 */ 1373 @java.lang.Override 1374 public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder()1375 getOracleExcludedObjectsOrBuilder() { 1376 if ((excludedObjectsCase_ == 1) && (oracleExcludedObjectsBuilder_ != null)) { 1377 return oracleExcludedObjectsBuilder_.getMessageOrBuilder(); 1378 } else { 1379 if (excludedObjectsCase_ == 1) { 1380 return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; 1381 } 1382 return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); 1383 } 1384 } 1385 /** 1386 * 1387 * 1388 * <pre> 1389 * Oracle data source objects to avoid backfilling. 1390 * </pre> 1391 * 1392 * <code>.google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1;</code> 1393 */ 1394 private com.google.protobuf.SingleFieldBuilderV3< 1395 com.google.cloud.datastream.v1.OracleRdbms, 1396 com.google.cloud.datastream.v1.OracleRdbms.Builder, 1397 com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleExcludedObjectsFieldBuilder()1398 getOracleExcludedObjectsFieldBuilder() { 1399 if (oracleExcludedObjectsBuilder_ == null) { 1400 if (!(excludedObjectsCase_ == 1)) { 1401 excludedObjects_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); 1402 } 1403 oracleExcludedObjectsBuilder_ = 1404 new com.google.protobuf.SingleFieldBuilderV3< 1405 com.google.cloud.datastream.v1.OracleRdbms, 1406 com.google.cloud.datastream.v1.OracleRdbms.Builder, 1407 com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( 1408 (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_, 1409 getParentForChildren(), 1410 isClean()); 1411 excludedObjects_ = null; 1412 } 1413 excludedObjectsCase_ = 1; 1414 onChanged(); 1415 return oracleExcludedObjectsBuilder_; 1416 } 1417 1418 private com.google.protobuf.SingleFieldBuilderV3< 1419 com.google.cloud.datastream.v1.MysqlRdbms, 1420 com.google.cloud.datastream.v1.MysqlRdbms.Builder, 1421 com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> 1422 mysqlExcludedObjectsBuilder_; 1423 /** 1424 * 1425 * 1426 * <pre> 1427 * MySQL data source objects to avoid backfilling. 1428 * </pre> 1429 * 1430 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1431 * 1432 * @return Whether the mysqlExcludedObjects field is set. 1433 */ 1434 @java.lang.Override hasMysqlExcludedObjects()1435 public boolean hasMysqlExcludedObjects() { 1436 return excludedObjectsCase_ == 2; 1437 } 1438 /** 1439 * 1440 * 1441 * <pre> 1442 * MySQL data source objects to avoid backfilling. 1443 * </pre> 1444 * 1445 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1446 * 1447 * @return The mysqlExcludedObjects. 1448 */ 1449 @java.lang.Override getMysqlExcludedObjects()1450 public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { 1451 if (mysqlExcludedObjectsBuilder_ == null) { 1452 if (excludedObjectsCase_ == 2) { 1453 return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; 1454 } 1455 return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); 1456 } else { 1457 if (excludedObjectsCase_ == 2) { 1458 return mysqlExcludedObjectsBuilder_.getMessage(); 1459 } 1460 return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); 1461 } 1462 } 1463 /** 1464 * 1465 * 1466 * <pre> 1467 * MySQL data source objects to avoid backfilling. 1468 * </pre> 1469 * 1470 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1471 */ setMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms value)1472 public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { 1473 if (mysqlExcludedObjectsBuilder_ == null) { 1474 if (value == null) { 1475 throw new NullPointerException(); 1476 } 1477 excludedObjects_ = value; 1478 onChanged(); 1479 } else { 1480 mysqlExcludedObjectsBuilder_.setMessage(value); 1481 } 1482 excludedObjectsCase_ = 2; 1483 return this; 1484 } 1485 /** 1486 * 1487 * 1488 * <pre> 1489 * MySQL data source objects to avoid backfilling. 1490 * </pre> 1491 * 1492 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1493 */ setMysqlExcludedObjects( com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue)1494 public Builder setMysqlExcludedObjects( 1495 com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { 1496 if (mysqlExcludedObjectsBuilder_ == null) { 1497 excludedObjects_ = builderForValue.build(); 1498 onChanged(); 1499 } else { 1500 mysqlExcludedObjectsBuilder_.setMessage(builderForValue.build()); 1501 } 1502 excludedObjectsCase_ = 2; 1503 return this; 1504 } 1505 /** 1506 * 1507 * 1508 * <pre> 1509 * MySQL data source objects to avoid backfilling. 1510 * </pre> 1511 * 1512 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1513 */ mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms value)1514 public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { 1515 if (mysqlExcludedObjectsBuilder_ == null) { 1516 if (excludedObjectsCase_ == 2 1517 && excludedObjects_ 1518 != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { 1519 excludedObjects_ = 1520 com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( 1521 (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_) 1522 .mergeFrom(value) 1523 .buildPartial(); 1524 } else { 1525 excludedObjects_ = value; 1526 } 1527 onChanged(); 1528 } else { 1529 if (excludedObjectsCase_ == 2) { 1530 mysqlExcludedObjectsBuilder_.mergeFrom(value); 1531 } else { 1532 mysqlExcludedObjectsBuilder_.setMessage(value); 1533 } 1534 } 1535 excludedObjectsCase_ = 2; 1536 return this; 1537 } 1538 /** 1539 * 1540 * 1541 * <pre> 1542 * MySQL data source objects to avoid backfilling. 1543 * </pre> 1544 * 1545 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1546 */ clearMysqlExcludedObjects()1547 public Builder clearMysqlExcludedObjects() { 1548 if (mysqlExcludedObjectsBuilder_ == null) { 1549 if (excludedObjectsCase_ == 2) { 1550 excludedObjectsCase_ = 0; 1551 excludedObjects_ = null; 1552 onChanged(); 1553 } 1554 } else { 1555 if (excludedObjectsCase_ == 2) { 1556 excludedObjectsCase_ = 0; 1557 excludedObjects_ = null; 1558 } 1559 mysqlExcludedObjectsBuilder_.clear(); 1560 } 1561 return this; 1562 } 1563 /** 1564 * 1565 * 1566 * <pre> 1567 * MySQL data source objects to avoid backfilling. 1568 * </pre> 1569 * 1570 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1571 */ getMysqlExcludedObjectsBuilder()1572 public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlExcludedObjectsBuilder() { 1573 return getMysqlExcludedObjectsFieldBuilder().getBuilder(); 1574 } 1575 /** 1576 * 1577 * 1578 * <pre> 1579 * MySQL data source objects to avoid backfilling. 1580 * </pre> 1581 * 1582 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1583 */ 1584 @java.lang.Override getMysqlExcludedObjectsOrBuilder()1585 public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { 1586 if ((excludedObjectsCase_ == 2) && (mysqlExcludedObjectsBuilder_ != null)) { 1587 return mysqlExcludedObjectsBuilder_.getMessageOrBuilder(); 1588 } else { 1589 if (excludedObjectsCase_ == 2) { 1590 return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; 1591 } 1592 return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); 1593 } 1594 } 1595 /** 1596 * 1597 * 1598 * <pre> 1599 * MySQL data source objects to avoid backfilling. 1600 * </pre> 1601 * 1602 * <code>.google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2;</code> 1603 */ 1604 private com.google.protobuf.SingleFieldBuilderV3< 1605 com.google.cloud.datastream.v1.MysqlRdbms, 1606 com.google.cloud.datastream.v1.MysqlRdbms.Builder, 1607 com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlExcludedObjectsFieldBuilder()1608 getMysqlExcludedObjectsFieldBuilder() { 1609 if (mysqlExcludedObjectsBuilder_ == null) { 1610 if (!(excludedObjectsCase_ == 2)) { 1611 excludedObjects_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); 1612 } 1613 mysqlExcludedObjectsBuilder_ = 1614 new com.google.protobuf.SingleFieldBuilderV3< 1615 com.google.cloud.datastream.v1.MysqlRdbms, 1616 com.google.cloud.datastream.v1.MysqlRdbms.Builder, 1617 com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( 1618 (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_, 1619 getParentForChildren(), 1620 isClean()); 1621 excludedObjects_ = null; 1622 } 1623 excludedObjectsCase_ = 2; 1624 onChanged(); 1625 return mysqlExcludedObjectsBuilder_; 1626 } 1627 1628 private com.google.protobuf.SingleFieldBuilderV3< 1629 com.google.cloud.datastream.v1.PostgresqlRdbms, 1630 com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, 1631 com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> 1632 postgresqlExcludedObjectsBuilder_; 1633 /** 1634 * 1635 * 1636 * <pre> 1637 * PostgreSQL data source objects to avoid backfilling. 1638 * </pre> 1639 * 1640 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1641 * 1642 * @return Whether the postgresqlExcludedObjects field is set. 1643 */ 1644 @java.lang.Override hasPostgresqlExcludedObjects()1645 public boolean hasPostgresqlExcludedObjects() { 1646 return excludedObjectsCase_ == 3; 1647 } 1648 /** 1649 * 1650 * 1651 * <pre> 1652 * PostgreSQL data source objects to avoid backfilling. 1653 * </pre> 1654 * 1655 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1656 * 1657 * @return The postgresqlExcludedObjects. 1658 */ 1659 @java.lang.Override getPostgresqlExcludedObjects()1660 public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { 1661 if (postgresqlExcludedObjectsBuilder_ == null) { 1662 if (excludedObjectsCase_ == 3) { 1663 return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; 1664 } 1665 return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); 1666 } else { 1667 if (excludedObjectsCase_ == 3) { 1668 return postgresqlExcludedObjectsBuilder_.getMessage(); 1669 } 1670 return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); 1671 } 1672 } 1673 /** 1674 * 1675 * 1676 * <pre> 1677 * PostgreSQL data source objects to avoid backfilling. 1678 * </pre> 1679 * 1680 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1681 */ setPostgresqlExcludedObjects( com.google.cloud.datastream.v1.PostgresqlRdbms value)1682 public Builder setPostgresqlExcludedObjects( 1683 com.google.cloud.datastream.v1.PostgresqlRdbms value) { 1684 if (postgresqlExcludedObjectsBuilder_ == null) { 1685 if (value == null) { 1686 throw new NullPointerException(); 1687 } 1688 excludedObjects_ = value; 1689 onChanged(); 1690 } else { 1691 postgresqlExcludedObjectsBuilder_.setMessage(value); 1692 } 1693 excludedObjectsCase_ = 3; 1694 return this; 1695 } 1696 /** 1697 * 1698 * 1699 * <pre> 1700 * PostgreSQL data source objects to avoid backfilling. 1701 * </pre> 1702 * 1703 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1704 */ setPostgresqlExcludedObjects( com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue)1705 public Builder setPostgresqlExcludedObjects( 1706 com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { 1707 if (postgresqlExcludedObjectsBuilder_ == null) { 1708 excludedObjects_ = builderForValue.build(); 1709 onChanged(); 1710 } else { 1711 postgresqlExcludedObjectsBuilder_.setMessage(builderForValue.build()); 1712 } 1713 excludedObjectsCase_ = 3; 1714 return this; 1715 } 1716 /** 1717 * 1718 * 1719 * <pre> 1720 * PostgreSQL data source objects to avoid backfilling. 1721 * </pre> 1722 * 1723 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1724 */ mergePostgresqlExcludedObjects( com.google.cloud.datastream.v1.PostgresqlRdbms value)1725 public Builder mergePostgresqlExcludedObjects( 1726 com.google.cloud.datastream.v1.PostgresqlRdbms value) { 1727 if (postgresqlExcludedObjectsBuilder_ == null) { 1728 if (excludedObjectsCase_ == 3 1729 && excludedObjects_ 1730 != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { 1731 excludedObjects_ = 1732 com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( 1733 (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) 1734 .mergeFrom(value) 1735 .buildPartial(); 1736 } else { 1737 excludedObjects_ = value; 1738 } 1739 onChanged(); 1740 } else { 1741 if (excludedObjectsCase_ == 3) { 1742 postgresqlExcludedObjectsBuilder_.mergeFrom(value); 1743 } else { 1744 postgresqlExcludedObjectsBuilder_.setMessage(value); 1745 } 1746 } 1747 excludedObjectsCase_ = 3; 1748 return this; 1749 } 1750 /** 1751 * 1752 * 1753 * <pre> 1754 * PostgreSQL data source objects to avoid backfilling. 1755 * </pre> 1756 * 1757 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1758 */ clearPostgresqlExcludedObjects()1759 public Builder clearPostgresqlExcludedObjects() { 1760 if (postgresqlExcludedObjectsBuilder_ == null) { 1761 if (excludedObjectsCase_ == 3) { 1762 excludedObjectsCase_ = 0; 1763 excludedObjects_ = null; 1764 onChanged(); 1765 } 1766 } else { 1767 if (excludedObjectsCase_ == 3) { 1768 excludedObjectsCase_ = 0; 1769 excludedObjects_ = null; 1770 } 1771 postgresqlExcludedObjectsBuilder_.clear(); 1772 } 1773 return this; 1774 } 1775 /** 1776 * 1777 * 1778 * <pre> 1779 * PostgreSQL data source objects to avoid backfilling. 1780 * </pre> 1781 * 1782 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1783 */ 1784 public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlExcludedObjectsBuilder()1785 getPostgresqlExcludedObjectsBuilder() { 1786 return getPostgresqlExcludedObjectsFieldBuilder().getBuilder(); 1787 } 1788 /** 1789 * 1790 * 1791 * <pre> 1792 * PostgreSQL data source objects to avoid backfilling. 1793 * </pre> 1794 * 1795 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1796 */ 1797 @java.lang.Override 1798 public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder()1799 getPostgresqlExcludedObjectsOrBuilder() { 1800 if ((excludedObjectsCase_ == 3) && (postgresqlExcludedObjectsBuilder_ != null)) { 1801 return postgresqlExcludedObjectsBuilder_.getMessageOrBuilder(); 1802 } else { 1803 if (excludedObjectsCase_ == 3) { 1804 return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; 1805 } 1806 return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); 1807 } 1808 } 1809 /** 1810 * 1811 * 1812 * <pre> 1813 * PostgreSQL data source objects to avoid backfilling. 1814 * </pre> 1815 * 1816 * <code>.google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3;</code> 1817 */ 1818 private com.google.protobuf.SingleFieldBuilderV3< 1819 com.google.cloud.datastream.v1.PostgresqlRdbms, 1820 com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, 1821 com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getPostgresqlExcludedObjectsFieldBuilder()1822 getPostgresqlExcludedObjectsFieldBuilder() { 1823 if (postgresqlExcludedObjectsBuilder_ == null) { 1824 if (!(excludedObjectsCase_ == 3)) { 1825 excludedObjects_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); 1826 } 1827 postgresqlExcludedObjectsBuilder_ = 1828 new com.google.protobuf.SingleFieldBuilderV3< 1829 com.google.cloud.datastream.v1.PostgresqlRdbms, 1830 com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, 1831 com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( 1832 (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_, 1833 getParentForChildren(), 1834 isClean()); 1835 excludedObjects_ = null; 1836 } 1837 excludedObjectsCase_ = 3; 1838 onChanged(); 1839 return postgresqlExcludedObjectsBuilder_; 1840 } 1841 1842 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1843 public final Builder setUnknownFields( 1844 final com.google.protobuf.UnknownFieldSet unknownFields) { 1845 return super.setUnknownFields(unknownFields); 1846 } 1847 1848 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1849 public final Builder mergeUnknownFields( 1850 final com.google.protobuf.UnknownFieldSet unknownFields) { 1851 return super.mergeUnknownFields(unknownFields); 1852 } 1853 1854 // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) 1855 } 1856 1857 // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) 1858 private static final com.google.cloud.datastream.v1.Stream.BackfillAllStrategy DEFAULT_INSTANCE; 1859 1860 static { 1861 DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(); 1862 } 1863 getDefaultInstance()1864 public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstance() { 1865 return DEFAULT_INSTANCE; 1866 } 1867 1868 private static final com.google.protobuf.Parser<BackfillAllStrategy> PARSER = 1869 new com.google.protobuf.AbstractParser<BackfillAllStrategy>() { 1870 @java.lang.Override 1871 public BackfillAllStrategy parsePartialFrom( 1872 com.google.protobuf.CodedInputStream input, 1873 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1874 throws com.google.protobuf.InvalidProtocolBufferException { 1875 Builder builder = newBuilder(); 1876 try { 1877 builder.mergeFrom(input, extensionRegistry); 1878 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1879 throw e.setUnfinishedMessage(builder.buildPartial()); 1880 } catch (com.google.protobuf.UninitializedMessageException e) { 1881 throw e.asInvalidProtocolBufferException() 1882 .setUnfinishedMessage(builder.buildPartial()); 1883 } catch (java.io.IOException e) { 1884 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1885 .setUnfinishedMessage(builder.buildPartial()); 1886 } 1887 return builder.buildPartial(); 1888 } 1889 }; 1890 parser()1891 public static com.google.protobuf.Parser<BackfillAllStrategy> parser() { 1892 return PARSER; 1893 } 1894 1895 @java.lang.Override getParserForType()1896 public com.google.protobuf.Parser<BackfillAllStrategy> getParserForType() { 1897 return PARSER; 1898 } 1899 1900 @java.lang.Override getDefaultInstanceForType()1901 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { 1902 return DEFAULT_INSTANCE; 1903 } 1904 } 1905 1906 public interface BackfillNoneStrategyOrBuilder 1907 extends 1908 // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) 1909 com.google.protobuf.MessageOrBuilder {} 1910 /** 1911 * 1912 * 1913 * <pre> 1914 * Backfill strategy to disable automatic backfill for the Stream's objects. 1915 * </pre> 1916 * 1917 * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} 1918 */ 1919 public static final class BackfillNoneStrategy extends com.google.protobuf.GeneratedMessageV3 1920 implements 1921 // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) 1922 BackfillNoneStrategyOrBuilder { 1923 private static final long serialVersionUID = 0L; 1924 // Use BackfillNoneStrategy.newBuilder() to construct. BackfillNoneStrategy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1925 private BackfillNoneStrategy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 1926 super(builder); 1927 } 1928 BackfillNoneStrategy()1929 private BackfillNoneStrategy() {} 1930 1931 @java.lang.Override 1932 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)1933 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 1934 return new BackfillNoneStrategy(); 1935 } 1936 1937 @java.lang.Override getUnknownFields()1938 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 1939 return this.unknownFields; 1940 } 1941 getDescriptor()1942 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1943 return com.google.cloud.datastream.v1.DatastreamResourcesProto 1944 .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; 1945 } 1946 1947 @java.lang.Override 1948 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1949 internalGetFieldAccessorTable() { 1950 return com.google.cloud.datastream.v1.DatastreamResourcesProto 1951 .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable 1952 .ensureFieldAccessorsInitialized( 1953 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, 1954 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); 1955 } 1956 1957 private byte memoizedIsInitialized = -1; 1958 1959 @java.lang.Override isInitialized()1960 public final boolean isInitialized() { 1961 byte isInitialized = memoizedIsInitialized; 1962 if (isInitialized == 1) return true; 1963 if (isInitialized == 0) return false; 1964 1965 memoizedIsInitialized = 1; 1966 return true; 1967 } 1968 1969 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1970 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1971 getUnknownFields().writeTo(output); 1972 } 1973 1974 @java.lang.Override getSerializedSize()1975 public int getSerializedSize() { 1976 int size = memoizedSize; 1977 if (size != -1) return size; 1978 1979 size = 0; 1980 size += getUnknownFields().getSerializedSize(); 1981 memoizedSize = size; 1982 return size; 1983 } 1984 1985 @java.lang.Override equals(final java.lang.Object obj)1986 public boolean equals(final java.lang.Object obj) { 1987 if (obj == this) { 1988 return true; 1989 } 1990 if (!(obj instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy)) { 1991 return super.equals(obj); 1992 } 1993 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other = 1994 (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) obj; 1995 1996 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1997 return true; 1998 } 1999 2000 @java.lang.Override hashCode()2001 public int hashCode() { 2002 if (memoizedHashCode != 0) { 2003 return memoizedHashCode; 2004 } 2005 int hash = 41; 2006 hash = (19 * hash) + getDescriptor().hashCode(); 2007 hash = (29 * hash) + getUnknownFields().hashCode(); 2008 memoizedHashCode = hash; 2009 return hash; 2010 } 2011 parseFrom( java.nio.ByteBuffer data)2012 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2013 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 2014 return PARSER.parseFrom(data); 2015 } 2016 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2017 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2018 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2019 throws com.google.protobuf.InvalidProtocolBufferException { 2020 return PARSER.parseFrom(data, extensionRegistry); 2021 } 2022 parseFrom( com.google.protobuf.ByteString data)2023 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2024 com.google.protobuf.ByteString data) 2025 throws com.google.protobuf.InvalidProtocolBufferException { 2026 return PARSER.parseFrom(data); 2027 } 2028 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2029 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2030 com.google.protobuf.ByteString data, 2031 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2032 throws com.google.protobuf.InvalidProtocolBufferException { 2033 return PARSER.parseFrom(data, extensionRegistry); 2034 } 2035 parseFrom(byte[] data)2036 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom(byte[] data) 2037 throws com.google.protobuf.InvalidProtocolBufferException { 2038 return PARSER.parseFrom(data); 2039 } 2040 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2041 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2042 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2043 throws com.google.protobuf.InvalidProtocolBufferException { 2044 return PARSER.parseFrom(data, extensionRegistry); 2045 } 2046 parseFrom( java.io.InputStream input)2047 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2048 java.io.InputStream input) throws java.io.IOException { 2049 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2050 } 2051 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2052 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2053 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2054 throws java.io.IOException { 2055 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2056 PARSER, input, extensionRegistry); 2057 } 2058 parseDelimitedFrom( java.io.InputStream input)2059 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( 2060 java.io.InputStream input) throws java.io.IOException { 2061 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2062 } 2063 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2064 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( 2065 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2066 throws java.io.IOException { 2067 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2068 PARSER, input, extensionRegistry); 2069 } 2070 parseFrom( com.google.protobuf.CodedInputStream input)2071 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2072 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2073 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2074 } 2075 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2076 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( 2077 com.google.protobuf.CodedInputStream input, 2078 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2079 throws java.io.IOException { 2080 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2081 PARSER, input, extensionRegistry); 2082 } 2083 2084 @java.lang.Override newBuilderForType()2085 public Builder newBuilderForType() { 2086 return newBuilder(); 2087 } 2088 newBuilder()2089 public static Builder newBuilder() { 2090 return DEFAULT_INSTANCE.toBuilder(); 2091 } 2092 newBuilder( com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy prototype)2093 public static Builder newBuilder( 2094 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy prototype) { 2095 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2096 } 2097 2098 @java.lang.Override toBuilder()2099 public Builder toBuilder() { 2100 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2101 } 2102 2103 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2104 protected Builder newBuilderForType( 2105 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2106 Builder builder = new Builder(parent); 2107 return builder; 2108 } 2109 /** 2110 * 2111 * 2112 * <pre> 2113 * Backfill strategy to disable automatic backfill for the Stream's objects. 2114 * </pre> 2115 * 2116 * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} 2117 */ 2118 public static final class Builder 2119 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2120 implements 2121 // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) 2122 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder { getDescriptor()2123 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2124 return com.google.cloud.datastream.v1.DatastreamResourcesProto 2125 .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; 2126 } 2127 2128 @java.lang.Override 2129 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2130 internalGetFieldAccessorTable() { 2131 return com.google.cloud.datastream.v1.DatastreamResourcesProto 2132 .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable 2133 .ensureFieldAccessorsInitialized( 2134 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, 2135 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); 2136 } 2137 2138 // Construct using com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder() Builder()2139 private Builder() {} 2140 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2141 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2142 super(parent); 2143 } 2144 2145 @java.lang.Override clear()2146 public Builder clear() { 2147 super.clear(); 2148 return this; 2149 } 2150 2151 @java.lang.Override getDescriptorForType()2152 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2153 return com.google.cloud.datastream.v1.DatastreamResourcesProto 2154 .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; 2155 } 2156 2157 @java.lang.Override 2158 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType()2159 getDefaultInstanceForType() { 2160 return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); 2161 } 2162 2163 @java.lang.Override build()2164 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy build() { 2165 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = buildPartial(); 2166 if (!result.isInitialized()) { 2167 throw newUninitializedMessageException(result); 2168 } 2169 return result; 2170 } 2171 2172 @java.lang.Override buildPartial()2173 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy buildPartial() { 2174 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = 2175 new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(this); 2176 onBuilt(); 2177 return result; 2178 } 2179 2180 @java.lang.Override clone()2181 public Builder clone() { 2182 return super.clone(); 2183 } 2184 2185 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2186 public Builder setField( 2187 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2188 return super.setField(field, value); 2189 } 2190 2191 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2192 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2193 return super.clearField(field); 2194 } 2195 2196 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2197 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2198 return super.clearOneof(oneof); 2199 } 2200 2201 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2202 public Builder setRepeatedField( 2203 com.google.protobuf.Descriptors.FieldDescriptor field, 2204 int index, 2205 java.lang.Object value) { 2206 return super.setRepeatedField(field, index, value); 2207 } 2208 2209 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2210 public Builder addRepeatedField( 2211 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2212 return super.addRepeatedField(field, value); 2213 } 2214 2215 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2216 public Builder mergeFrom(com.google.protobuf.Message other) { 2217 if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) { 2218 return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) other); 2219 } else { 2220 super.mergeFrom(other); 2221 return this; 2222 } 2223 } 2224 mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other)2225 public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other) { 2226 if (other 2227 == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) 2228 return this; 2229 this.mergeUnknownFields(other.getUnknownFields()); 2230 onChanged(); 2231 return this; 2232 } 2233 2234 @java.lang.Override isInitialized()2235 public final boolean isInitialized() { 2236 return true; 2237 } 2238 2239 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2240 public Builder mergeFrom( 2241 com.google.protobuf.CodedInputStream input, 2242 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2243 throws java.io.IOException { 2244 if (extensionRegistry == null) { 2245 throw new java.lang.NullPointerException(); 2246 } 2247 try { 2248 boolean done = false; 2249 while (!done) { 2250 int tag = input.readTag(); 2251 switch (tag) { 2252 case 0: 2253 done = true; 2254 break; 2255 default: 2256 { 2257 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2258 done = true; // was an endgroup tag 2259 } 2260 break; 2261 } // default: 2262 } // switch (tag) 2263 } // while (!done) 2264 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2265 throw e.unwrapIOException(); 2266 } finally { 2267 onChanged(); 2268 } // finally 2269 return this; 2270 } 2271 2272 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2273 public final Builder setUnknownFields( 2274 final com.google.protobuf.UnknownFieldSet unknownFields) { 2275 return super.setUnknownFields(unknownFields); 2276 } 2277 2278 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2279 public final Builder mergeUnknownFields( 2280 final com.google.protobuf.UnknownFieldSet unknownFields) { 2281 return super.mergeUnknownFields(unknownFields); 2282 } 2283 2284 // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) 2285 } 2286 2287 // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) 2288 private static final com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy 2289 DEFAULT_INSTANCE; 2290 2291 static { 2292 DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(); 2293 } 2294 getDefaultInstance()2295 public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstance() { 2296 return DEFAULT_INSTANCE; 2297 } 2298 2299 private static final com.google.protobuf.Parser<BackfillNoneStrategy> PARSER = 2300 new com.google.protobuf.AbstractParser<BackfillNoneStrategy>() { 2301 @java.lang.Override 2302 public BackfillNoneStrategy parsePartialFrom( 2303 com.google.protobuf.CodedInputStream input, 2304 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2305 throws com.google.protobuf.InvalidProtocolBufferException { 2306 Builder builder = newBuilder(); 2307 try { 2308 builder.mergeFrom(input, extensionRegistry); 2309 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2310 throw e.setUnfinishedMessage(builder.buildPartial()); 2311 } catch (com.google.protobuf.UninitializedMessageException e) { 2312 throw e.asInvalidProtocolBufferException() 2313 .setUnfinishedMessage(builder.buildPartial()); 2314 } catch (java.io.IOException e) { 2315 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2316 .setUnfinishedMessage(builder.buildPartial()); 2317 } 2318 return builder.buildPartial(); 2319 } 2320 }; 2321 parser()2322 public static com.google.protobuf.Parser<BackfillNoneStrategy> parser() { 2323 return PARSER; 2324 } 2325 2326 @java.lang.Override getParserForType()2327 public com.google.protobuf.Parser<BackfillNoneStrategy> getParserForType() { 2328 return PARSER; 2329 } 2330 2331 @java.lang.Override getDefaultInstanceForType()2332 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { 2333 return DEFAULT_INSTANCE; 2334 } 2335 } 2336 2337 private int bitField0_; 2338 private int backfillStrategyCase_ = 0; 2339 private java.lang.Object backfillStrategy_; 2340 2341 public enum BackfillStrategyCase 2342 implements 2343 com.google.protobuf.Internal.EnumLite, 2344 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 2345 BACKFILL_ALL(101), 2346 BACKFILL_NONE(102), 2347 BACKFILLSTRATEGY_NOT_SET(0); 2348 private final int value; 2349 BackfillStrategyCase(int value)2350 private BackfillStrategyCase(int value) { 2351 this.value = value; 2352 } 2353 /** 2354 * @param value The number of the enum to look for. 2355 * @return The enum associated with the given number. 2356 * @deprecated Use {@link #forNumber(int)} instead. 2357 */ 2358 @java.lang.Deprecated valueOf(int value)2359 public static BackfillStrategyCase valueOf(int value) { 2360 return forNumber(value); 2361 } 2362 forNumber(int value)2363 public static BackfillStrategyCase forNumber(int value) { 2364 switch (value) { 2365 case 101: 2366 return BACKFILL_ALL; 2367 case 102: 2368 return BACKFILL_NONE; 2369 case 0: 2370 return BACKFILLSTRATEGY_NOT_SET; 2371 default: 2372 return null; 2373 } 2374 } 2375 getNumber()2376 public int getNumber() { 2377 return this.value; 2378 } 2379 }; 2380 getBackfillStrategyCase()2381 public BackfillStrategyCase getBackfillStrategyCase() { 2382 return BackfillStrategyCase.forNumber(backfillStrategyCase_); 2383 } 2384 2385 public static final int NAME_FIELD_NUMBER = 1; 2386 2387 @SuppressWarnings("serial") 2388 private volatile java.lang.Object name_ = ""; 2389 /** 2390 * 2391 * 2392 * <pre> 2393 * Output only. The stream's name. 2394 * </pre> 2395 * 2396 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2397 * 2398 * @return The name. 2399 */ 2400 @java.lang.Override getName()2401 public java.lang.String getName() { 2402 java.lang.Object ref = name_; 2403 if (ref instanceof java.lang.String) { 2404 return (java.lang.String) ref; 2405 } else { 2406 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2407 java.lang.String s = bs.toStringUtf8(); 2408 name_ = s; 2409 return s; 2410 } 2411 } 2412 /** 2413 * 2414 * 2415 * <pre> 2416 * Output only. The stream's name. 2417 * </pre> 2418 * 2419 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2420 * 2421 * @return The bytes for name. 2422 */ 2423 @java.lang.Override getNameBytes()2424 public com.google.protobuf.ByteString getNameBytes() { 2425 java.lang.Object ref = name_; 2426 if (ref instanceof java.lang.String) { 2427 com.google.protobuf.ByteString b = 2428 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2429 name_ = b; 2430 return b; 2431 } else { 2432 return (com.google.protobuf.ByteString) ref; 2433 } 2434 } 2435 2436 public static final int CREATE_TIME_FIELD_NUMBER = 2; 2437 private com.google.protobuf.Timestamp createTime_; 2438 /** 2439 * 2440 * 2441 * <pre> 2442 * Output only. The creation time of the stream. 2443 * </pre> 2444 * 2445 * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2446 * </code> 2447 * 2448 * @return Whether the createTime field is set. 2449 */ 2450 @java.lang.Override hasCreateTime()2451 public boolean hasCreateTime() { 2452 return createTime_ != null; 2453 } 2454 /** 2455 * 2456 * 2457 * <pre> 2458 * Output only. The creation time of the stream. 2459 * </pre> 2460 * 2461 * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2462 * </code> 2463 * 2464 * @return The createTime. 2465 */ 2466 @java.lang.Override getCreateTime()2467 public com.google.protobuf.Timestamp getCreateTime() { 2468 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 2469 } 2470 /** 2471 * 2472 * 2473 * <pre> 2474 * Output only. The creation time of the stream. 2475 * </pre> 2476 * 2477 * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2478 * </code> 2479 */ 2480 @java.lang.Override getCreateTimeOrBuilder()2481 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 2482 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 2483 } 2484 2485 public static final int UPDATE_TIME_FIELD_NUMBER = 3; 2486 private com.google.protobuf.Timestamp updateTime_; 2487 /** 2488 * 2489 * 2490 * <pre> 2491 * Output only. The last update time of the stream. 2492 * </pre> 2493 * 2494 * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2495 * </code> 2496 * 2497 * @return Whether the updateTime field is set. 2498 */ 2499 @java.lang.Override hasUpdateTime()2500 public boolean hasUpdateTime() { 2501 return updateTime_ != null; 2502 } 2503 /** 2504 * 2505 * 2506 * <pre> 2507 * Output only. The last update time of the stream. 2508 * </pre> 2509 * 2510 * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2511 * </code> 2512 * 2513 * @return The updateTime. 2514 */ 2515 @java.lang.Override getUpdateTime()2516 public com.google.protobuf.Timestamp getUpdateTime() { 2517 return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; 2518 } 2519 /** 2520 * 2521 * 2522 * <pre> 2523 * Output only. The last update time of the stream. 2524 * </pre> 2525 * 2526 * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2527 * </code> 2528 */ 2529 @java.lang.Override getUpdateTimeOrBuilder()2530 public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 2531 return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; 2532 } 2533 2534 public static final int LABELS_FIELD_NUMBER = 4; 2535 2536 private static final class LabelsDefaultEntryHolder { 2537 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 2538 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 2539 com.google.cloud.datastream.v1.DatastreamResourcesProto 2540 .internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, 2541 com.google.protobuf.WireFormat.FieldType.STRING, 2542 "", 2543 com.google.protobuf.WireFormat.FieldType.STRING, 2544 ""); 2545 } 2546 2547 @SuppressWarnings("serial") 2548 private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; 2549 internalGetLabels()2550 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { 2551 if (labels_ == null) { 2552 return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); 2553 } 2554 return labels_; 2555 } 2556 getLabelsCount()2557 public int getLabelsCount() { 2558 return internalGetLabels().getMap().size(); 2559 } 2560 /** 2561 * 2562 * 2563 * <pre> 2564 * Labels. 2565 * </pre> 2566 * 2567 * <code>map<string, string> labels = 4;</code> 2568 */ 2569 @java.lang.Override containsLabels(java.lang.String key)2570 public boolean containsLabels(java.lang.String key) { 2571 if (key == null) { 2572 throw new NullPointerException("map key"); 2573 } 2574 return internalGetLabels().getMap().containsKey(key); 2575 } 2576 /** Use {@link #getLabelsMap()} instead. */ 2577 @java.lang.Override 2578 @java.lang.Deprecated getLabels()2579 public java.util.Map<java.lang.String, java.lang.String> getLabels() { 2580 return getLabelsMap(); 2581 } 2582 /** 2583 * 2584 * 2585 * <pre> 2586 * Labels. 2587 * </pre> 2588 * 2589 * <code>map<string, string> labels = 4;</code> 2590 */ 2591 @java.lang.Override getLabelsMap()2592 public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { 2593 return internalGetLabels().getMap(); 2594 } 2595 /** 2596 * 2597 * 2598 * <pre> 2599 * Labels. 2600 * </pre> 2601 * 2602 * <code>map<string, string> labels = 4;</code> 2603 */ 2604 @java.lang.Override getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)2605 public /* nullable */ java.lang.String getLabelsOrDefault( 2606 java.lang.String key, 2607 /* nullable */ 2608 java.lang.String defaultValue) { 2609 if (key == null) { 2610 throw new NullPointerException("map key"); 2611 } 2612 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 2613 return map.containsKey(key) ? map.get(key) : defaultValue; 2614 } 2615 /** 2616 * 2617 * 2618 * <pre> 2619 * Labels. 2620 * </pre> 2621 * 2622 * <code>map<string, string> labels = 4;</code> 2623 */ 2624 @java.lang.Override getLabelsOrThrow(java.lang.String key)2625 public java.lang.String getLabelsOrThrow(java.lang.String key) { 2626 if (key == null) { 2627 throw new NullPointerException("map key"); 2628 } 2629 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 2630 if (!map.containsKey(key)) { 2631 throw new java.lang.IllegalArgumentException(); 2632 } 2633 return map.get(key); 2634 } 2635 2636 public static final int DISPLAY_NAME_FIELD_NUMBER = 5; 2637 2638 @SuppressWarnings("serial") 2639 private volatile java.lang.Object displayName_ = ""; 2640 /** 2641 * 2642 * 2643 * <pre> 2644 * Required. Display name. 2645 * </pre> 2646 * 2647 * <code>string display_name = 5 [(.google.api.field_behavior) = REQUIRED];</code> 2648 * 2649 * @return The displayName. 2650 */ 2651 @java.lang.Override getDisplayName()2652 public java.lang.String getDisplayName() { 2653 java.lang.Object ref = displayName_; 2654 if (ref instanceof java.lang.String) { 2655 return (java.lang.String) ref; 2656 } else { 2657 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2658 java.lang.String s = bs.toStringUtf8(); 2659 displayName_ = s; 2660 return s; 2661 } 2662 } 2663 /** 2664 * 2665 * 2666 * <pre> 2667 * Required. Display name. 2668 * </pre> 2669 * 2670 * <code>string display_name = 5 [(.google.api.field_behavior) = REQUIRED];</code> 2671 * 2672 * @return The bytes for displayName. 2673 */ 2674 @java.lang.Override getDisplayNameBytes()2675 public com.google.protobuf.ByteString getDisplayNameBytes() { 2676 java.lang.Object ref = displayName_; 2677 if (ref instanceof java.lang.String) { 2678 com.google.protobuf.ByteString b = 2679 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2680 displayName_ = b; 2681 return b; 2682 } else { 2683 return (com.google.protobuf.ByteString) ref; 2684 } 2685 } 2686 2687 public static final int SOURCE_CONFIG_FIELD_NUMBER = 6; 2688 private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; 2689 /** 2690 * 2691 * 2692 * <pre> 2693 * Required. Source connection profile configuration. 2694 * </pre> 2695 * 2696 * <code> 2697 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 2698 * </code> 2699 * 2700 * @return Whether the sourceConfig field is set. 2701 */ 2702 @java.lang.Override hasSourceConfig()2703 public boolean hasSourceConfig() { 2704 return sourceConfig_ != null; 2705 } 2706 /** 2707 * 2708 * 2709 * <pre> 2710 * Required. Source connection profile configuration. 2711 * </pre> 2712 * 2713 * <code> 2714 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 2715 * </code> 2716 * 2717 * @return The sourceConfig. 2718 */ 2719 @java.lang.Override getSourceConfig()2720 public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { 2721 return sourceConfig_ == null 2722 ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() 2723 : sourceConfig_; 2724 } 2725 /** 2726 * 2727 * 2728 * <pre> 2729 * Required. Source connection profile configuration. 2730 * </pre> 2731 * 2732 * <code> 2733 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 2734 * </code> 2735 */ 2736 @java.lang.Override getSourceConfigOrBuilder()2737 public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { 2738 return sourceConfig_ == null 2739 ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() 2740 : sourceConfig_; 2741 } 2742 2743 public static final int DESTINATION_CONFIG_FIELD_NUMBER = 7; 2744 private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; 2745 /** 2746 * 2747 * 2748 * <pre> 2749 * Required. Destination connection profile configuration. 2750 * </pre> 2751 * 2752 * <code> 2753 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 2754 * </code> 2755 * 2756 * @return Whether the destinationConfig field is set. 2757 */ 2758 @java.lang.Override hasDestinationConfig()2759 public boolean hasDestinationConfig() { 2760 return destinationConfig_ != null; 2761 } 2762 /** 2763 * 2764 * 2765 * <pre> 2766 * Required. Destination connection profile configuration. 2767 * </pre> 2768 * 2769 * <code> 2770 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 2771 * </code> 2772 * 2773 * @return The destinationConfig. 2774 */ 2775 @java.lang.Override getDestinationConfig()2776 public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { 2777 return destinationConfig_ == null 2778 ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() 2779 : destinationConfig_; 2780 } 2781 /** 2782 * 2783 * 2784 * <pre> 2785 * Required. Destination connection profile configuration. 2786 * </pre> 2787 * 2788 * <code> 2789 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 2790 * </code> 2791 */ 2792 @java.lang.Override getDestinationConfigOrBuilder()2793 public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { 2794 return destinationConfig_ == null 2795 ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() 2796 : destinationConfig_; 2797 } 2798 2799 public static final int STATE_FIELD_NUMBER = 8; 2800 private int state_ = 0; 2801 /** 2802 * 2803 * 2804 * <pre> 2805 * The state of the stream. 2806 * </pre> 2807 * 2808 * <code>.google.cloud.datastream.v1.Stream.State state = 8;</code> 2809 * 2810 * @return The enum numeric value on the wire for state. 2811 */ 2812 @java.lang.Override getStateValue()2813 public int getStateValue() { 2814 return state_; 2815 } 2816 /** 2817 * 2818 * 2819 * <pre> 2820 * The state of the stream. 2821 * </pre> 2822 * 2823 * <code>.google.cloud.datastream.v1.Stream.State state = 8;</code> 2824 * 2825 * @return The state. 2826 */ 2827 @java.lang.Override getState()2828 public com.google.cloud.datastream.v1.Stream.State getState() { 2829 com.google.cloud.datastream.v1.Stream.State result = 2830 com.google.cloud.datastream.v1.Stream.State.forNumber(state_); 2831 return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; 2832 } 2833 2834 public static final int BACKFILL_ALL_FIELD_NUMBER = 101; 2835 /** 2836 * 2837 * 2838 * <pre> 2839 * Automatically backfill objects included in the stream source 2840 * configuration. Specific objects can be excluded. 2841 * </pre> 2842 * 2843 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 2844 * 2845 * @return Whether the backfillAll field is set. 2846 */ 2847 @java.lang.Override hasBackfillAll()2848 public boolean hasBackfillAll() { 2849 return backfillStrategyCase_ == 101; 2850 } 2851 /** 2852 * 2853 * 2854 * <pre> 2855 * Automatically backfill objects included in the stream source 2856 * configuration. Specific objects can be excluded. 2857 * </pre> 2858 * 2859 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 2860 * 2861 * @return The backfillAll. 2862 */ 2863 @java.lang.Override getBackfillAll()2864 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll() { 2865 if (backfillStrategyCase_ == 101) { 2866 return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; 2867 } 2868 return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); 2869 } 2870 /** 2871 * 2872 * 2873 * <pre> 2874 * Automatically backfill objects included in the stream source 2875 * configuration. Specific objects can be excluded. 2876 * </pre> 2877 * 2878 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 2879 */ 2880 @java.lang.Override 2881 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder()2882 getBackfillAllOrBuilder() { 2883 if (backfillStrategyCase_ == 101) { 2884 return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; 2885 } 2886 return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); 2887 } 2888 2889 public static final int BACKFILL_NONE_FIELD_NUMBER = 102; 2890 /** 2891 * 2892 * 2893 * <pre> 2894 * Do not automatically backfill any objects. 2895 * </pre> 2896 * 2897 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 2898 * 2899 * @return Whether the backfillNone field is set. 2900 */ 2901 @java.lang.Override hasBackfillNone()2902 public boolean hasBackfillNone() { 2903 return backfillStrategyCase_ == 102; 2904 } 2905 /** 2906 * 2907 * 2908 * <pre> 2909 * Do not automatically backfill any objects. 2910 * </pre> 2911 * 2912 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 2913 * 2914 * @return The backfillNone. 2915 */ 2916 @java.lang.Override getBackfillNone()2917 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone() { 2918 if (backfillStrategyCase_ == 102) { 2919 return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; 2920 } 2921 return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); 2922 } 2923 /** 2924 * 2925 * 2926 * <pre> 2927 * Do not automatically backfill any objects. 2928 * </pre> 2929 * 2930 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 2931 */ 2932 @java.lang.Override 2933 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder()2934 getBackfillNoneOrBuilder() { 2935 if (backfillStrategyCase_ == 102) { 2936 return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; 2937 } 2938 return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); 2939 } 2940 2941 public static final int ERRORS_FIELD_NUMBER = 9; 2942 2943 @SuppressWarnings("serial") 2944 private java.util.List<com.google.cloud.datastream.v1.Error> errors_; 2945 /** 2946 * 2947 * 2948 * <pre> 2949 * Output only. Errors on the Stream. 2950 * </pre> 2951 * 2952 * <code> 2953 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2954 * </code> 2955 */ 2956 @java.lang.Override getErrorsList()2957 public java.util.List<com.google.cloud.datastream.v1.Error> getErrorsList() { 2958 return errors_; 2959 } 2960 /** 2961 * 2962 * 2963 * <pre> 2964 * Output only. Errors on the Stream. 2965 * </pre> 2966 * 2967 * <code> 2968 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2969 * </code> 2970 */ 2971 @java.lang.Override 2972 public java.util.List<? extends com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsOrBuilderList()2973 getErrorsOrBuilderList() { 2974 return errors_; 2975 } 2976 /** 2977 * 2978 * 2979 * <pre> 2980 * Output only. Errors on the Stream. 2981 * </pre> 2982 * 2983 * <code> 2984 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2985 * </code> 2986 */ 2987 @java.lang.Override getErrorsCount()2988 public int getErrorsCount() { 2989 return errors_.size(); 2990 } 2991 /** 2992 * 2993 * 2994 * <pre> 2995 * Output only. Errors on the Stream. 2996 * </pre> 2997 * 2998 * <code> 2999 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3000 * </code> 3001 */ 3002 @java.lang.Override getErrors(int index)3003 public com.google.cloud.datastream.v1.Error getErrors(int index) { 3004 return errors_.get(index); 3005 } 3006 /** 3007 * 3008 * 3009 * <pre> 3010 * Output only. Errors on the Stream. 3011 * </pre> 3012 * 3013 * <code> 3014 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3015 * </code> 3016 */ 3017 @java.lang.Override getErrorsOrBuilder(int index)3018 public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { 3019 return errors_.get(index); 3020 } 3021 3022 public static final int CUSTOMER_MANAGED_ENCRYPTION_KEY_FIELD_NUMBER = 10; 3023 3024 @SuppressWarnings("serial") 3025 private volatile java.lang.Object customerManagedEncryptionKey_ = ""; 3026 /** 3027 * 3028 * 3029 * <pre> 3030 * Immutable. A reference to a KMS encryption key. 3031 * If provided, it will be used to encrypt the data. 3032 * If left blank, data will be encrypted using an internal Stream-specific 3033 * encryption key provisioned through KMS. 3034 * </pre> 3035 * 3036 * <code> 3037 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 3038 * </code> 3039 * 3040 * @return Whether the customerManagedEncryptionKey field is set. 3041 */ 3042 @java.lang.Override hasCustomerManagedEncryptionKey()3043 public boolean hasCustomerManagedEncryptionKey() { 3044 return ((bitField0_ & 0x00000001) != 0); 3045 } 3046 /** 3047 * 3048 * 3049 * <pre> 3050 * Immutable. A reference to a KMS encryption key. 3051 * If provided, it will be used to encrypt the data. 3052 * If left blank, data will be encrypted using an internal Stream-specific 3053 * encryption key provisioned through KMS. 3054 * </pre> 3055 * 3056 * <code> 3057 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 3058 * </code> 3059 * 3060 * @return The customerManagedEncryptionKey. 3061 */ 3062 @java.lang.Override getCustomerManagedEncryptionKey()3063 public java.lang.String getCustomerManagedEncryptionKey() { 3064 java.lang.Object ref = customerManagedEncryptionKey_; 3065 if (ref instanceof java.lang.String) { 3066 return (java.lang.String) ref; 3067 } else { 3068 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3069 java.lang.String s = bs.toStringUtf8(); 3070 customerManagedEncryptionKey_ = s; 3071 return s; 3072 } 3073 } 3074 /** 3075 * 3076 * 3077 * <pre> 3078 * Immutable. A reference to a KMS encryption key. 3079 * If provided, it will be used to encrypt the data. 3080 * If left blank, data will be encrypted using an internal Stream-specific 3081 * encryption key provisioned through KMS. 3082 * </pre> 3083 * 3084 * <code> 3085 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 3086 * </code> 3087 * 3088 * @return The bytes for customerManagedEncryptionKey. 3089 */ 3090 @java.lang.Override getCustomerManagedEncryptionKeyBytes()3091 public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { 3092 java.lang.Object ref = customerManagedEncryptionKey_; 3093 if (ref instanceof java.lang.String) { 3094 com.google.protobuf.ByteString b = 3095 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3096 customerManagedEncryptionKey_ = b; 3097 return b; 3098 } else { 3099 return (com.google.protobuf.ByteString) ref; 3100 } 3101 } 3102 3103 private byte memoizedIsInitialized = -1; 3104 3105 @java.lang.Override isInitialized()3106 public final boolean isInitialized() { 3107 byte isInitialized = memoizedIsInitialized; 3108 if (isInitialized == 1) return true; 3109 if (isInitialized == 0) return false; 3110 3111 memoizedIsInitialized = 1; 3112 return true; 3113 } 3114 3115 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)3116 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 3117 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 3118 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 3119 } 3120 if (createTime_ != null) { 3121 output.writeMessage(2, getCreateTime()); 3122 } 3123 if (updateTime_ != null) { 3124 output.writeMessage(3, getUpdateTime()); 3125 } 3126 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 3127 output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); 3128 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 3129 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); 3130 } 3131 if (sourceConfig_ != null) { 3132 output.writeMessage(6, getSourceConfig()); 3133 } 3134 if (destinationConfig_ != null) { 3135 output.writeMessage(7, getDestinationConfig()); 3136 } 3137 if (state_ != com.google.cloud.datastream.v1.Stream.State.STATE_UNSPECIFIED.getNumber()) { 3138 output.writeEnum(8, state_); 3139 } 3140 for (int i = 0; i < errors_.size(); i++) { 3141 output.writeMessage(9, errors_.get(i)); 3142 } 3143 if (((bitField0_ & 0x00000001) != 0)) { 3144 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customerManagedEncryptionKey_); 3145 } 3146 if (backfillStrategyCase_ == 101) { 3147 output.writeMessage( 3148 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); 3149 } 3150 if (backfillStrategyCase_ == 102) { 3151 output.writeMessage( 3152 102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); 3153 } 3154 getUnknownFields().writeTo(output); 3155 } 3156 3157 @java.lang.Override getSerializedSize()3158 public int getSerializedSize() { 3159 int size = memoizedSize; 3160 if (size != -1) return size; 3161 3162 size = 0; 3163 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 3164 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 3165 } 3166 if (createTime_ != null) { 3167 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); 3168 } 3169 if (updateTime_ != null) { 3170 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); 3171 } 3172 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 3173 internalGetLabels().getMap().entrySet()) { 3174 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = 3175 LabelsDefaultEntryHolder.defaultEntry 3176 .newBuilderForType() 3177 .setKey(entry.getKey()) 3178 .setValue(entry.getValue()) 3179 .build(); 3180 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); 3181 } 3182 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 3183 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); 3184 } 3185 if (sourceConfig_ != null) { 3186 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceConfig()); 3187 } 3188 if (destinationConfig_ != null) { 3189 size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDestinationConfig()); 3190 } 3191 if (state_ != com.google.cloud.datastream.v1.Stream.State.STATE_UNSPECIFIED.getNumber()) { 3192 size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); 3193 } 3194 for (int i = 0; i < errors_.size(); i++) { 3195 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, errors_.get(i)); 3196 } 3197 if (((bitField0_ & 0x00000001) != 0)) { 3198 size += 3199 com.google.protobuf.GeneratedMessageV3.computeStringSize( 3200 10, customerManagedEncryptionKey_); 3201 } 3202 if (backfillStrategyCase_ == 101) { 3203 size += 3204 com.google.protobuf.CodedOutputStream.computeMessageSize( 3205 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); 3206 } 3207 if (backfillStrategyCase_ == 102) { 3208 size += 3209 com.google.protobuf.CodedOutputStream.computeMessageSize( 3210 102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); 3211 } 3212 size += getUnknownFields().getSerializedSize(); 3213 memoizedSize = size; 3214 return size; 3215 } 3216 3217 @java.lang.Override equals(final java.lang.Object obj)3218 public boolean equals(final java.lang.Object obj) { 3219 if (obj == this) { 3220 return true; 3221 } 3222 if (!(obj instanceof com.google.cloud.datastream.v1.Stream)) { 3223 return super.equals(obj); 3224 } 3225 com.google.cloud.datastream.v1.Stream other = (com.google.cloud.datastream.v1.Stream) obj; 3226 3227 if (!getName().equals(other.getName())) return false; 3228 if (hasCreateTime() != other.hasCreateTime()) return false; 3229 if (hasCreateTime()) { 3230 if (!getCreateTime().equals(other.getCreateTime())) return false; 3231 } 3232 if (hasUpdateTime() != other.hasUpdateTime()) return false; 3233 if (hasUpdateTime()) { 3234 if (!getUpdateTime().equals(other.getUpdateTime())) return false; 3235 } 3236 if (!internalGetLabels().equals(other.internalGetLabels())) return false; 3237 if (!getDisplayName().equals(other.getDisplayName())) return false; 3238 if (hasSourceConfig() != other.hasSourceConfig()) return false; 3239 if (hasSourceConfig()) { 3240 if (!getSourceConfig().equals(other.getSourceConfig())) return false; 3241 } 3242 if (hasDestinationConfig() != other.hasDestinationConfig()) return false; 3243 if (hasDestinationConfig()) { 3244 if (!getDestinationConfig().equals(other.getDestinationConfig())) return false; 3245 } 3246 if (state_ != other.state_) return false; 3247 if (!getErrorsList().equals(other.getErrorsList())) return false; 3248 if (hasCustomerManagedEncryptionKey() != other.hasCustomerManagedEncryptionKey()) return false; 3249 if (hasCustomerManagedEncryptionKey()) { 3250 if (!getCustomerManagedEncryptionKey().equals(other.getCustomerManagedEncryptionKey())) 3251 return false; 3252 } 3253 if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; 3254 switch (backfillStrategyCase_) { 3255 case 101: 3256 if (!getBackfillAll().equals(other.getBackfillAll())) return false; 3257 break; 3258 case 102: 3259 if (!getBackfillNone().equals(other.getBackfillNone())) return false; 3260 break; 3261 case 0: 3262 default: 3263 } 3264 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 3265 return true; 3266 } 3267 3268 @java.lang.Override hashCode()3269 public int hashCode() { 3270 if (memoizedHashCode != 0) { 3271 return memoizedHashCode; 3272 } 3273 int hash = 41; 3274 hash = (19 * hash) + getDescriptor().hashCode(); 3275 hash = (37 * hash) + NAME_FIELD_NUMBER; 3276 hash = (53 * hash) + getName().hashCode(); 3277 if (hasCreateTime()) { 3278 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 3279 hash = (53 * hash) + getCreateTime().hashCode(); 3280 } 3281 if (hasUpdateTime()) { 3282 hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; 3283 hash = (53 * hash) + getUpdateTime().hashCode(); 3284 } 3285 if (!internalGetLabels().getMap().isEmpty()) { 3286 hash = (37 * hash) + LABELS_FIELD_NUMBER; 3287 hash = (53 * hash) + internalGetLabels().hashCode(); 3288 } 3289 hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; 3290 hash = (53 * hash) + getDisplayName().hashCode(); 3291 if (hasSourceConfig()) { 3292 hash = (37 * hash) + SOURCE_CONFIG_FIELD_NUMBER; 3293 hash = (53 * hash) + getSourceConfig().hashCode(); 3294 } 3295 if (hasDestinationConfig()) { 3296 hash = (37 * hash) + DESTINATION_CONFIG_FIELD_NUMBER; 3297 hash = (53 * hash) + getDestinationConfig().hashCode(); 3298 } 3299 hash = (37 * hash) + STATE_FIELD_NUMBER; 3300 hash = (53 * hash) + state_; 3301 if (getErrorsCount() > 0) { 3302 hash = (37 * hash) + ERRORS_FIELD_NUMBER; 3303 hash = (53 * hash) + getErrorsList().hashCode(); 3304 } 3305 if (hasCustomerManagedEncryptionKey()) { 3306 hash = (37 * hash) + CUSTOMER_MANAGED_ENCRYPTION_KEY_FIELD_NUMBER; 3307 hash = (53 * hash) + getCustomerManagedEncryptionKey().hashCode(); 3308 } 3309 switch (backfillStrategyCase_) { 3310 case 101: 3311 hash = (37 * hash) + BACKFILL_ALL_FIELD_NUMBER; 3312 hash = (53 * hash) + getBackfillAll().hashCode(); 3313 break; 3314 case 102: 3315 hash = (37 * hash) + BACKFILL_NONE_FIELD_NUMBER; 3316 hash = (53 * hash) + getBackfillNone().hashCode(); 3317 break; 3318 case 0: 3319 default: 3320 } 3321 hash = (29 * hash) + getUnknownFields().hashCode(); 3322 memoizedHashCode = hash; 3323 return hash; 3324 } 3325 parseFrom(java.nio.ByteBuffer data)3326 public static com.google.cloud.datastream.v1.Stream parseFrom(java.nio.ByteBuffer data) 3327 throws com.google.protobuf.InvalidProtocolBufferException { 3328 return PARSER.parseFrom(data); 3329 } 3330 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3331 public static com.google.cloud.datastream.v1.Stream parseFrom( 3332 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3333 throws com.google.protobuf.InvalidProtocolBufferException { 3334 return PARSER.parseFrom(data, extensionRegistry); 3335 } 3336 parseFrom(com.google.protobuf.ByteString data)3337 public static com.google.cloud.datastream.v1.Stream parseFrom(com.google.protobuf.ByteString data) 3338 throws com.google.protobuf.InvalidProtocolBufferException { 3339 return PARSER.parseFrom(data); 3340 } 3341 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3342 public static com.google.cloud.datastream.v1.Stream parseFrom( 3343 com.google.protobuf.ByteString data, 3344 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3345 throws com.google.protobuf.InvalidProtocolBufferException { 3346 return PARSER.parseFrom(data, extensionRegistry); 3347 } 3348 parseFrom(byte[] data)3349 public static com.google.cloud.datastream.v1.Stream parseFrom(byte[] data) 3350 throws com.google.protobuf.InvalidProtocolBufferException { 3351 return PARSER.parseFrom(data); 3352 } 3353 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3354 public static com.google.cloud.datastream.v1.Stream parseFrom( 3355 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3356 throws com.google.protobuf.InvalidProtocolBufferException { 3357 return PARSER.parseFrom(data, extensionRegistry); 3358 } 3359 parseFrom(java.io.InputStream input)3360 public static com.google.cloud.datastream.v1.Stream parseFrom(java.io.InputStream input) 3361 throws java.io.IOException { 3362 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3363 } 3364 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3365 public static com.google.cloud.datastream.v1.Stream parseFrom( 3366 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3367 throws java.io.IOException { 3368 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3369 PARSER, input, extensionRegistry); 3370 } 3371 parseDelimitedFrom(java.io.InputStream input)3372 public static com.google.cloud.datastream.v1.Stream parseDelimitedFrom(java.io.InputStream input) 3373 throws java.io.IOException { 3374 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 3375 } 3376 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3377 public static com.google.cloud.datastream.v1.Stream parseDelimitedFrom( 3378 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3379 throws java.io.IOException { 3380 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 3381 PARSER, input, extensionRegistry); 3382 } 3383 parseFrom( com.google.protobuf.CodedInputStream input)3384 public static com.google.cloud.datastream.v1.Stream parseFrom( 3385 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 3386 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 3387 } 3388 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3389 public static com.google.cloud.datastream.v1.Stream parseFrom( 3390 com.google.protobuf.CodedInputStream input, 3391 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3392 throws java.io.IOException { 3393 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 3394 PARSER, input, extensionRegistry); 3395 } 3396 3397 @java.lang.Override newBuilderForType()3398 public Builder newBuilderForType() { 3399 return newBuilder(); 3400 } 3401 newBuilder()3402 public static Builder newBuilder() { 3403 return DEFAULT_INSTANCE.toBuilder(); 3404 } 3405 newBuilder(com.google.cloud.datastream.v1.Stream prototype)3406 public static Builder newBuilder(com.google.cloud.datastream.v1.Stream prototype) { 3407 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3408 } 3409 3410 @java.lang.Override toBuilder()3411 public Builder toBuilder() { 3412 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 3413 } 3414 3415 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3416 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3417 Builder builder = new Builder(parent); 3418 return builder; 3419 } 3420 /** 3421 * 3422 * 3423 * <pre> 3424 * A resource representing streaming data from a source to a destination. 3425 * </pre> 3426 * 3427 * Protobuf type {@code google.cloud.datastream.v1.Stream} 3428 */ 3429 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 3430 implements 3431 // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream) 3432 com.google.cloud.datastream.v1.StreamOrBuilder { getDescriptor()3433 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 3434 return com.google.cloud.datastream.v1.DatastreamResourcesProto 3435 .internal_static_google_cloud_datastream_v1_Stream_descriptor; 3436 } 3437 3438 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)3439 protected com.google.protobuf.MapField internalGetMapField(int number) { 3440 switch (number) { 3441 case 4: 3442 return internalGetLabels(); 3443 default: 3444 throw new RuntimeException("Invalid map field number: " + number); 3445 } 3446 } 3447 3448 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)3449 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 3450 switch (number) { 3451 case 4: 3452 return internalGetMutableLabels(); 3453 default: 3454 throw new RuntimeException("Invalid map field number: " + number); 3455 } 3456 } 3457 3458 @java.lang.Override 3459 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()3460 internalGetFieldAccessorTable() { 3461 return com.google.cloud.datastream.v1.DatastreamResourcesProto 3462 .internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable 3463 .ensureFieldAccessorsInitialized( 3464 com.google.cloud.datastream.v1.Stream.class, 3465 com.google.cloud.datastream.v1.Stream.Builder.class); 3466 } 3467 3468 // Construct using com.google.cloud.datastream.v1.Stream.newBuilder() Builder()3469 private Builder() {} 3470 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3471 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 3472 super(parent); 3473 } 3474 3475 @java.lang.Override clear()3476 public Builder clear() { 3477 super.clear(); 3478 bitField0_ = 0; 3479 name_ = ""; 3480 createTime_ = null; 3481 if (createTimeBuilder_ != null) { 3482 createTimeBuilder_.dispose(); 3483 createTimeBuilder_ = null; 3484 } 3485 updateTime_ = null; 3486 if (updateTimeBuilder_ != null) { 3487 updateTimeBuilder_.dispose(); 3488 updateTimeBuilder_ = null; 3489 } 3490 internalGetMutableLabels().clear(); 3491 displayName_ = ""; 3492 sourceConfig_ = null; 3493 if (sourceConfigBuilder_ != null) { 3494 sourceConfigBuilder_.dispose(); 3495 sourceConfigBuilder_ = null; 3496 } 3497 destinationConfig_ = null; 3498 if (destinationConfigBuilder_ != null) { 3499 destinationConfigBuilder_.dispose(); 3500 destinationConfigBuilder_ = null; 3501 } 3502 state_ = 0; 3503 if (backfillAllBuilder_ != null) { 3504 backfillAllBuilder_.clear(); 3505 } 3506 if (backfillNoneBuilder_ != null) { 3507 backfillNoneBuilder_.clear(); 3508 } 3509 if (errorsBuilder_ == null) { 3510 errors_ = java.util.Collections.emptyList(); 3511 } else { 3512 errors_ = null; 3513 errorsBuilder_.clear(); 3514 } 3515 bitField0_ = (bitField0_ & ~0x00000400); 3516 customerManagedEncryptionKey_ = ""; 3517 backfillStrategyCase_ = 0; 3518 backfillStrategy_ = null; 3519 return this; 3520 } 3521 3522 @java.lang.Override getDescriptorForType()3523 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 3524 return com.google.cloud.datastream.v1.DatastreamResourcesProto 3525 .internal_static_google_cloud_datastream_v1_Stream_descriptor; 3526 } 3527 3528 @java.lang.Override getDefaultInstanceForType()3529 public com.google.cloud.datastream.v1.Stream getDefaultInstanceForType() { 3530 return com.google.cloud.datastream.v1.Stream.getDefaultInstance(); 3531 } 3532 3533 @java.lang.Override build()3534 public com.google.cloud.datastream.v1.Stream build() { 3535 com.google.cloud.datastream.v1.Stream result = buildPartial(); 3536 if (!result.isInitialized()) { 3537 throw newUninitializedMessageException(result); 3538 } 3539 return result; 3540 } 3541 3542 @java.lang.Override buildPartial()3543 public com.google.cloud.datastream.v1.Stream buildPartial() { 3544 com.google.cloud.datastream.v1.Stream result = 3545 new com.google.cloud.datastream.v1.Stream(this); 3546 buildPartialRepeatedFields(result); 3547 if (bitField0_ != 0) { 3548 buildPartial0(result); 3549 } 3550 buildPartialOneofs(result); 3551 onBuilt(); 3552 return result; 3553 } 3554 buildPartialRepeatedFields(com.google.cloud.datastream.v1.Stream result)3555 private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.Stream result) { 3556 if (errorsBuilder_ == null) { 3557 if (((bitField0_ & 0x00000400) != 0)) { 3558 errors_ = java.util.Collections.unmodifiableList(errors_); 3559 bitField0_ = (bitField0_ & ~0x00000400); 3560 } 3561 result.errors_ = errors_; 3562 } else { 3563 result.errors_ = errorsBuilder_.build(); 3564 } 3565 } 3566 buildPartial0(com.google.cloud.datastream.v1.Stream result)3567 private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { 3568 int from_bitField0_ = bitField0_; 3569 if (((from_bitField0_ & 0x00000001) != 0)) { 3570 result.name_ = name_; 3571 } 3572 if (((from_bitField0_ & 0x00000002) != 0)) { 3573 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 3574 } 3575 if (((from_bitField0_ & 0x00000004) != 0)) { 3576 result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); 3577 } 3578 if (((from_bitField0_ & 0x00000008) != 0)) { 3579 result.labels_ = internalGetLabels(); 3580 result.labels_.makeImmutable(); 3581 } 3582 if (((from_bitField0_ & 0x00000010) != 0)) { 3583 result.displayName_ = displayName_; 3584 } 3585 if (((from_bitField0_ & 0x00000020) != 0)) { 3586 result.sourceConfig_ = 3587 sourceConfigBuilder_ == null ? sourceConfig_ : sourceConfigBuilder_.build(); 3588 } 3589 if (((from_bitField0_ & 0x00000040) != 0)) { 3590 result.destinationConfig_ = 3591 destinationConfigBuilder_ == null 3592 ? destinationConfig_ 3593 : destinationConfigBuilder_.build(); 3594 } 3595 if (((from_bitField0_ & 0x00000080) != 0)) { 3596 result.state_ = state_; 3597 } 3598 int to_bitField0_ = 0; 3599 if (((from_bitField0_ & 0x00000800) != 0)) { 3600 result.customerManagedEncryptionKey_ = customerManagedEncryptionKey_; 3601 to_bitField0_ |= 0x00000001; 3602 } 3603 result.bitField0_ |= to_bitField0_; 3604 } 3605 buildPartialOneofs(com.google.cloud.datastream.v1.Stream result)3606 private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream result) { 3607 result.backfillStrategyCase_ = backfillStrategyCase_; 3608 result.backfillStrategy_ = this.backfillStrategy_; 3609 if (backfillStrategyCase_ == 101 && backfillAllBuilder_ != null) { 3610 result.backfillStrategy_ = backfillAllBuilder_.build(); 3611 } 3612 if (backfillStrategyCase_ == 102 && backfillNoneBuilder_ != null) { 3613 result.backfillStrategy_ = backfillNoneBuilder_.build(); 3614 } 3615 } 3616 3617 @java.lang.Override clone()3618 public Builder clone() { 3619 return super.clone(); 3620 } 3621 3622 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3623 public Builder setField( 3624 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3625 return super.setField(field, value); 3626 } 3627 3628 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3629 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 3630 return super.clearField(field); 3631 } 3632 3633 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3634 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 3635 return super.clearOneof(oneof); 3636 } 3637 3638 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3639 public Builder setRepeatedField( 3640 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 3641 return super.setRepeatedField(field, index, value); 3642 } 3643 3644 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3645 public Builder addRepeatedField( 3646 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 3647 return super.addRepeatedField(field, value); 3648 } 3649 3650 @java.lang.Override mergeFrom(com.google.protobuf.Message other)3651 public Builder mergeFrom(com.google.protobuf.Message other) { 3652 if (other instanceof com.google.cloud.datastream.v1.Stream) { 3653 return mergeFrom((com.google.cloud.datastream.v1.Stream) other); 3654 } else { 3655 super.mergeFrom(other); 3656 return this; 3657 } 3658 } 3659 mergeFrom(com.google.cloud.datastream.v1.Stream other)3660 public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { 3661 if (other == com.google.cloud.datastream.v1.Stream.getDefaultInstance()) return this; 3662 if (!other.getName().isEmpty()) { 3663 name_ = other.name_; 3664 bitField0_ |= 0x00000001; 3665 onChanged(); 3666 } 3667 if (other.hasCreateTime()) { 3668 mergeCreateTime(other.getCreateTime()); 3669 } 3670 if (other.hasUpdateTime()) { 3671 mergeUpdateTime(other.getUpdateTime()); 3672 } 3673 internalGetMutableLabels().mergeFrom(other.internalGetLabels()); 3674 bitField0_ |= 0x00000008; 3675 if (!other.getDisplayName().isEmpty()) { 3676 displayName_ = other.displayName_; 3677 bitField0_ |= 0x00000010; 3678 onChanged(); 3679 } 3680 if (other.hasSourceConfig()) { 3681 mergeSourceConfig(other.getSourceConfig()); 3682 } 3683 if (other.hasDestinationConfig()) { 3684 mergeDestinationConfig(other.getDestinationConfig()); 3685 } 3686 if (other.state_ != 0) { 3687 setStateValue(other.getStateValue()); 3688 } 3689 if (errorsBuilder_ == null) { 3690 if (!other.errors_.isEmpty()) { 3691 if (errors_.isEmpty()) { 3692 errors_ = other.errors_; 3693 bitField0_ = (bitField0_ & ~0x00000400); 3694 } else { 3695 ensureErrorsIsMutable(); 3696 errors_.addAll(other.errors_); 3697 } 3698 onChanged(); 3699 } 3700 } else { 3701 if (!other.errors_.isEmpty()) { 3702 if (errorsBuilder_.isEmpty()) { 3703 errorsBuilder_.dispose(); 3704 errorsBuilder_ = null; 3705 errors_ = other.errors_; 3706 bitField0_ = (bitField0_ & ~0x00000400); 3707 errorsBuilder_ = 3708 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 3709 ? getErrorsFieldBuilder() 3710 : null; 3711 } else { 3712 errorsBuilder_.addAllMessages(other.errors_); 3713 } 3714 } 3715 } 3716 if (other.hasCustomerManagedEncryptionKey()) { 3717 customerManagedEncryptionKey_ = other.customerManagedEncryptionKey_; 3718 bitField0_ |= 0x00000800; 3719 onChanged(); 3720 } 3721 switch (other.getBackfillStrategyCase()) { 3722 case BACKFILL_ALL: 3723 { 3724 mergeBackfillAll(other.getBackfillAll()); 3725 break; 3726 } 3727 case BACKFILL_NONE: 3728 { 3729 mergeBackfillNone(other.getBackfillNone()); 3730 break; 3731 } 3732 case BACKFILLSTRATEGY_NOT_SET: 3733 { 3734 break; 3735 } 3736 } 3737 this.mergeUnknownFields(other.getUnknownFields()); 3738 onChanged(); 3739 return this; 3740 } 3741 3742 @java.lang.Override isInitialized()3743 public final boolean isInitialized() { 3744 return true; 3745 } 3746 3747 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3748 public Builder mergeFrom( 3749 com.google.protobuf.CodedInputStream input, 3750 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3751 throws java.io.IOException { 3752 if (extensionRegistry == null) { 3753 throw new java.lang.NullPointerException(); 3754 } 3755 try { 3756 boolean done = false; 3757 while (!done) { 3758 int tag = input.readTag(); 3759 switch (tag) { 3760 case 0: 3761 done = true; 3762 break; 3763 case 10: 3764 { 3765 name_ = input.readStringRequireUtf8(); 3766 bitField0_ |= 0x00000001; 3767 break; 3768 } // case 10 3769 case 18: 3770 { 3771 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 3772 bitField0_ |= 0x00000002; 3773 break; 3774 } // case 18 3775 case 26: 3776 { 3777 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); 3778 bitField0_ |= 0x00000004; 3779 break; 3780 } // case 26 3781 case 34: 3782 { 3783 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ = 3784 input.readMessage( 3785 LabelsDefaultEntryHolder.defaultEntry.getParserForType(), 3786 extensionRegistry); 3787 internalGetMutableLabels() 3788 .getMutableMap() 3789 .put(labels__.getKey(), labels__.getValue()); 3790 bitField0_ |= 0x00000008; 3791 break; 3792 } // case 34 3793 case 42: 3794 { 3795 displayName_ = input.readStringRequireUtf8(); 3796 bitField0_ |= 0x00000010; 3797 break; 3798 } // case 42 3799 case 50: 3800 { 3801 input.readMessage(getSourceConfigFieldBuilder().getBuilder(), extensionRegistry); 3802 bitField0_ |= 0x00000020; 3803 break; 3804 } // case 50 3805 case 58: 3806 { 3807 input.readMessage( 3808 getDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); 3809 bitField0_ |= 0x00000040; 3810 break; 3811 } // case 58 3812 case 64: 3813 { 3814 state_ = input.readEnum(); 3815 bitField0_ |= 0x00000080; 3816 break; 3817 } // case 64 3818 case 74: 3819 { 3820 com.google.cloud.datastream.v1.Error m = 3821 input.readMessage( 3822 com.google.cloud.datastream.v1.Error.parser(), extensionRegistry); 3823 if (errorsBuilder_ == null) { 3824 ensureErrorsIsMutable(); 3825 errors_.add(m); 3826 } else { 3827 errorsBuilder_.addMessage(m); 3828 } 3829 break; 3830 } // case 74 3831 case 82: 3832 { 3833 customerManagedEncryptionKey_ = input.readStringRequireUtf8(); 3834 bitField0_ |= 0x00000800; 3835 break; 3836 } // case 82 3837 case 810: 3838 { 3839 input.readMessage(getBackfillAllFieldBuilder().getBuilder(), extensionRegistry); 3840 backfillStrategyCase_ = 101; 3841 break; 3842 } // case 810 3843 case 818: 3844 { 3845 input.readMessage(getBackfillNoneFieldBuilder().getBuilder(), extensionRegistry); 3846 backfillStrategyCase_ = 102; 3847 break; 3848 } // case 818 3849 default: 3850 { 3851 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 3852 done = true; // was an endgroup tag 3853 } 3854 break; 3855 } // default: 3856 } // switch (tag) 3857 } // while (!done) 3858 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3859 throw e.unwrapIOException(); 3860 } finally { 3861 onChanged(); 3862 } // finally 3863 return this; 3864 } 3865 3866 private int backfillStrategyCase_ = 0; 3867 private java.lang.Object backfillStrategy_; 3868 getBackfillStrategyCase()3869 public BackfillStrategyCase getBackfillStrategyCase() { 3870 return BackfillStrategyCase.forNumber(backfillStrategyCase_); 3871 } 3872 clearBackfillStrategy()3873 public Builder clearBackfillStrategy() { 3874 backfillStrategyCase_ = 0; 3875 backfillStrategy_ = null; 3876 onChanged(); 3877 return this; 3878 } 3879 3880 private int bitField0_; 3881 3882 private java.lang.Object name_ = ""; 3883 /** 3884 * 3885 * 3886 * <pre> 3887 * Output only. The stream's name. 3888 * </pre> 3889 * 3890 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3891 * 3892 * @return The name. 3893 */ getName()3894 public java.lang.String getName() { 3895 java.lang.Object ref = name_; 3896 if (!(ref instanceof java.lang.String)) { 3897 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3898 java.lang.String s = bs.toStringUtf8(); 3899 name_ = s; 3900 return s; 3901 } else { 3902 return (java.lang.String) ref; 3903 } 3904 } 3905 /** 3906 * 3907 * 3908 * <pre> 3909 * Output only. The stream's name. 3910 * </pre> 3911 * 3912 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3913 * 3914 * @return The bytes for name. 3915 */ getNameBytes()3916 public com.google.protobuf.ByteString getNameBytes() { 3917 java.lang.Object ref = name_; 3918 if (ref instanceof String) { 3919 com.google.protobuf.ByteString b = 3920 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3921 name_ = b; 3922 return b; 3923 } else { 3924 return (com.google.protobuf.ByteString) ref; 3925 } 3926 } 3927 /** 3928 * 3929 * 3930 * <pre> 3931 * Output only. The stream's name. 3932 * </pre> 3933 * 3934 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3935 * 3936 * @param value The name to set. 3937 * @return This builder for chaining. 3938 */ setName(java.lang.String value)3939 public Builder setName(java.lang.String value) { 3940 if (value == null) { 3941 throw new NullPointerException(); 3942 } 3943 name_ = value; 3944 bitField0_ |= 0x00000001; 3945 onChanged(); 3946 return this; 3947 } 3948 /** 3949 * 3950 * 3951 * <pre> 3952 * Output only. The stream's name. 3953 * </pre> 3954 * 3955 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3956 * 3957 * @return This builder for chaining. 3958 */ clearName()3959 public Builder clearName() { 3960 name_ = getDefaultInstance().getName(); 3961 bitField0_ = (bitField0_ & ~0x00000001); 3962 onChanged(); 3963 return this; 3964 } 3965 /** 3966 * 3967 * 3968 * <pre> 3969 * Output only. The stream's name. 3970 * </pre> 3971 * 3972 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3973 * 3974 * @param value The bytes for name to set. 3975 * @return This builder for chaining. 3976 */ setNameBytes(com.google.protobuf.ByteString value)3977 public Builder setNameBytes(com.google.protobuf.ByteString value) { 3978 if (value == null) { 3979 throw new NullPointerException(); 3980 } 3981 checkByteStringIsUtf8(value); 3982 name_ = value; 3983 bitField0_ |= 0x00000001; 3984 onChanged(); 3985 return this; 3986 } 3987 3988 private com.google.protobuf.Timestamp createTime_; 3989 private com.google.protobuf.SingleFieldBuilderV3< 3990 com.google.protobuf.Timestamp, 3991 com.google.protobuf.Timestamp.Builder, 3992 com.google.protobuf.TimestampOrBuilder> 3993 createTimeBuilder_; 3994 /** 3995 * 3996 * 3997 * <pre> 3998 * Output only. The creation time of the stream. 3999 * </pre> 4000 * 4001 * <code> 4002 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4003 * </code> 4004 * 4005 * @return Whether the createTime field is set. 4006 */ hasCreateTime()4007 public boolean hasCreateTime() { 4008 return ((bitField0_ & 0x00000002) != 0); 4009 } 4010 /** 4011 * 4012 * 4013 * <pre> 4014 * Output only. The creation time of the stream. 4015 * </pre> 4016 * 4017 * <code> 4018 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4019 * </code> 4020 * 4021 * @return The createTime. 4022 */ getCreateTime()4023 public com.google.protobuf.Timestamp getCreateTime() { 4024 if (createTimeBuilder_ == null) { 4025 return createTime_ == null 4026 ? com.google.protobuf.Timestamp.getDefaultInstance() 4027 : createTime_; 4028 } else { 4029 return createTimeBuilder_.getMessage(); 4030 } 4031 } 4032 /** 4033 * 4034 * 4035 * <pre> 4036 * Output only. The creation time of the stream. 4037 * </pre> 4038 * 4039 * <code> 4040 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4041 * </code> 4042 */ setCreateTime(com.google.protobuf.Timestamp value)4043 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 4044 if (createTimeBuilder_ == null) { 4045 if (value == null) { 4046 throw new NullPointerException(); 4047 } 4048 createTime_ = value; 4049 } else { 4050 createTimeBuilder_.setMessage(value); 4051 } 4052 bitField0_ |= 0x00000002; 4053 onChanged(); 4054 return this; 4055 } 4056 /** 4057 * 4058 * 4059 * <pre> 4060 * Output only. The creation time of the stream. 4061 * </pre> 4062 * 4063 * <code> 4064 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4065 * </code> 4066 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)4067 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 4068 if (createTimeBuilder_ == null) { 4069 createTime_ = builderForValue.build(); 4070 } else { 4071 createTimeBuilder_.setMessage(builderForValue.build()); 4072 } 4073 bitField0_ |= 0x00000002; 4074 onChanged(); 4075 return this; 4076 } 4077 /** 4078 * 4079 * 4080 * <pre> 4081 * Output only. The creation time of the stream. 4082 * </pre> 4083 * 4084 * <code> 4085 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4086 * </code> 4087 */ mergeCreateTime(com.google.protobuf.Timestamp value)4088 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 4089 if (createTimeBuilder_ == null) { 4090 if (((bitField0_ & 0x00000002) != 0) 4091 && createTime_ != null 4092 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 4093 getCreateTimeBuilder().mergeFrom(value); 4094 } else { 4095 createTime_ = value; 4096 } 4097 } else { 4098 createTimeBuilder_.mergeFrom(value); 4099 } 4100 bitField0_ |= 0x00000002; 4101 onChanged(); 4102 return this; 4103 } 4104 /** 4105 * 4106 * 4107 * <pre> 4108 * Output only. The creation time of the stream. 4109 * </pre> 4110 * 4111 * <code> 4112 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4113 * </code> 4114 */ clearCreateTime()4115 public Builder clearCreateTime() { 4116 bitField0_ = (bitField0_ & ~0x00000002); 4117 createTime_ = null; 4118 if (createTimeBuilder_ != null) { 4119 createTimeBuilder_.dispose(); 4120 createTimeBuilder_ = null; 4121 } 4122 onChanged(); 4123 return this; 4124 } 4125 /** 4126 * 4127 * 4128 * <pre> 4129 * Output only. The creation time of the stream. 4130 * </pre> 4131 * 4132 * <code> 4133 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4134 * </code> 4135 */ getCreateTimeBuilder()4136 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 4137 bitField0_ |= 0x00000002; 4138 onChanged(); 4139 return getCreateTimeFieldBuilder().getBuilder(); 4140 } 4141 /** 4142 * 4143 * 4144 * <pre> 4145 * Output only. The creation time of the stream. 4146 * </pre> 4147 * 4148 * <code> 4149 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4150 * </code> 4151 */ getCreateTimeOrBuilder()4152 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 4153 if (createTimeBuilder_ != null) { 4154 return createTimeBuilder_.getMessageOrBuilder(); 4155 } else { 4156 return createTime_ == null 4157 ? com.google.protobuf.Timestamp.getDefaultInstance() 4158 : createTime_; 4159 } 4160 } 4161 /** 4162 * 4163 * 4164 * <pre> 4165 * Output only. The creation time of the stream. 4166 * </pre> 4167 * 4168 * <code> 4169 * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4170 * </code> 4171 */ 4172 private com.google.protobuf.SingleFieldBuilderV3< 4173 com.google.protobuf.Timestamp, 4174 com.google.protobuf.Timestamp.Builder, 4175 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()4176 getCreateTimeFieldBuilder() { 4177 if (createTimeBuilder_ == null) { 4178 createTimeBuilder_ = 4179 new com.google.protobuf.SingleFieldBuilderV3< 4180 com.google.protobuf.Timestamp, 4181 com.google.protobuf.Timestamp.Builder, 4182 com.google.protobuf.TimestampOrBuilder>( 4183 getCreateTime(), getParentForChildren(), isClean()); 4184 createTime_ = null; 4185 } 4186 return createTimeBuilder_; 4187 } 4188 4189 private com.google.protobuf.Timestamp updateTime_; 4190 private com.google.protobuf.SingleFieldBuilderV3< 4191 com.google.protobuf.Timestamp, 4192 com.google.protobuf.Timestamp.Builder, 4193 com.google.protobuf.TimestampOrBuilder> 4194 updateTimeBuilder_; 4195 /** 4196 * 4197 * 4198 * <pre> 4199 * Output only. The last update time of the stream. 4200 * </pre> 4201 * 4202 * <code> 4203 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4204 * </code> 4205 * 4206 * @return Whether the updateTime field is set. 4207 */ hasUpdateTime()4208 public boolean hasUpdateTime() { 4209 return ((bitField0_ & 0x00000004) != 0); 4210 } 4211 /** 4212 * 4213 * 4214 * <pre> 4215 * Output only. The last update time of the stream. 4216 * </pre> 4217 * 4218 * <code> 4219 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4220 * </code> 4221 * 4222 * @return The updateTime. 4223 */ getUpdateTime()4224 public com.google.protobuf.Timestamp getUpdateTime() { 4225 if (updateTimeBuilder_ == null) { 4226 return updateTime_ == null 4227 ? com.google.protobuf.Timestamp.getDefaultInstance() 4228 : updateTime_; 4229 } else { 4230 return updateTimeBuilder_.getMessage(); 4231 } 4232 } 4233 /** 4234 * 4235 * 4236 * <pre> 4237 * Output only. The last update time of the stream. 4238 * </pre> 4239 * 4240 * <code> 4241 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4242 * </code> 4243 */ setUpdateTime(com.google.protobuf.Timestamp value)4244 public Builder setUpdateTime(com.google.protobuf.Timestamp value) { 4245 if (updateTimeBuilder_ == null) { 4246 if (value == null) { 4247 throw new NullPointerException(); 4248 } 4249 updateTime_ = value; 4250 } else { 4251 updateTimeBuilder_.setMessage(value); 4252 } 4253 bitField0_ |= 0x00000004; 4254 onChanged(); 4255 return this; 4256 } 4257 /** 4258 * 4259 * 4260 * <pre> 4261 * Output only. The last update time of the stream. 4262 * </pre> 4263 * 4264 * <code> 4265 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4266 * </code> 4267 */ setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)4268 public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 4269 if (updateTimeBuilder_ == null) { 4270 updateTime_ = builderForValue.build(); 4271 } else { 4272 updateTimeBuilder_.setMessage(builderForValue.build()); 4273 } 4274 bitField0_ |= 0x00000004; 4275 onChanged(); 4276 return this; 4277 } 4278 /** 4279 * 4280 * 4281 * <pre> 4282 * Output only. The last update time of the stream. 4283 * </pre> 4284 * 4285 * <code> 4286 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4287 * </code> 4288 */ mergeUpdateTime(com.google.protobuf.Timestamp value)4289 public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { 4290 if (updateTimeBuilder_ == null) { 4291 if (((bitField0_ & 0x00000004) != 0) 4292 && updateTime_ != null 4293 && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 4294 getUpdateTimeBuilder().mergeFrom(value); 4295 } else { 4296 updateTime_ = value; 4297 } 4298 } else { 4299 updateTimeBuilder_.mergeFrom(value); 4300 } 4301 bitField0_ |= 0x00000004; 4302 onChanged(); 4303 return this; 4304 } 4305 /** 4306 * 4307 * 4308 * <pre> 4309 * Output only. The last update time of the stream. 4310 * </pre> 4311 * 4312 * <code> 4313 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4314 * </code> 4315 */ clearUpdateTime()4316 public Builder clearUpdateTime() { 4317 bitField0_ = (bitField0_ & ~0x00000004); 4318 updateTime_ = null; 4319 if (updateTimeBuilder_ != null) { 4320 updateTimeBuilder_.dispose(); 4321 updateTimeBuilder_ = null; 4322 } 4323 onChanged(); 4324 return this; 4325 } 4326 /** 4327 * 4328 * 4329 * <pre> 4330 * Output only. The last update time of the stream. 4331 * </pre> 4332 * 4333 * <code> 4334 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4335 * </code> 4336 */ getUpdateTimeBuilder()4337 public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { 4338 bitField0_ |= 0x00000004; 4339 onChanged(); 4340 return getUpdateTimeFieldBuilder().getBuilder(); 4341 } 4342 /** 4343 * 4344 * 4345 * <pre> 4346 * Output only. The last update time of the stream. 4347 * </pre> 4348 * 4349 * <code> 4350 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4351 * </code> 4352 */ getUpdateTimeOrBuilder()4353 public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 4354 if (updateTimeBuilder_ != null) { 4355 return updateTimeBuilder_.getMessageOrBuilder(); 4356 } else { 4357 return updateTime_ == null 4358 ? com.google.protobuf.Timestamp.getDefaultInstance() 4359 : updateTime_; 4360 } 4361 } 4362 /** 4363 * 4364 * 4365 * <pre> 4366 * Output only. The last update time of the stream. 4367 * </pre> 4368 * 4369 * <code> 4370 * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4371 * </code> 4372 */ 4373 private com.google.protobuf.SingleFieldBuilderV3< 4374 com.google.protobuf.Timestamp, 4375 com.google.protobuf.Timestamp.Builder, 4376 com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder()4377 getUpdateTimeFieldBuilder() { 4378 if (updateTimeBuilder_ == null) { 4379 updateTimeBuilder_ = 4380 new com.google.protobuf.SingleFieldBuilderV3< 4381 com.google.protobuf.Timestamp, 4382 com.google.protobuf.Timestamp.Builder, 4383 com.google.protobuf.TimestampOrBuilder>( 4384 getUpdateTime(), getParentForChildren(), isClean()); 4385 updateTime_ = null; 4386 } 4387 return updateTimeBuilder_; 4388 } 4389 4390 private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_; 4391 internalGetLabels()4392 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() { 4393 if (labels_ == null) { 4394 return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); 4395 } 4396 return labels_; 4397 } 4398 4399 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableLabels()4400 internalGetMutableLabels() { 4401 if (labels_ == null) { 4402 labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); 4403 } 4404 if (!labels_.isMutable()) { 4405 labels_ = labels_.copy(); 4406 } 4407 bitField0_ |= 0x00000008; 4408 onChanged(); 4409 return labels_; 4410 } 4411 getLabelsCount()4412 public int getLabelsCount() { 4413 return internalGetLabels().getMap().size(); 4414 } 4415 /** 4416 * 4417 * 4418 * <pre> 4419 * Labels. 4420 * </pre> 4421 * 4422 * <code>map<string, string> labels = 4;</code> 4423 */ 4424 @java.lang.Override containsLabels(java.lang.String key)4425 public boolean containsLabels(java.lang.String key) { 4426 if (key == null) { 4427 throw new NullPointerException("map key"); 4428 } 4429 return internalGetLabels().getMap().containsKey(key); 4430 } 4431 /** Use {@link #getLabelsMap()} instead. */ 4432 @java.lang.Override 4433 @java.lang.Deprecated getLabels()4434 public java.util.Map<java.lang.String, java.lang.String> getLabels() { 4435 return getLabelsMap(); 4436 } 4437 /** 4438 * 4439 * 4440 * <pre> 4441 * Labels. 4442 * </pre> 4443 * 4444 * <code>map<string, string> labels = 4;</code> 4445 */ 4446 @java.lang.Override getLabelsMap()4447 public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { 4448 return internalGetLabels().getMap(); 4449 } 4450 /** 4451 * 4452 * 4453 * <pre> 4454 * Labels. 4455 * </pre> 4456 * 4457 * <code>map<string, string> labels = 4;</code> 4458 */ 4459 @java.lang.Override getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)4460 public /* nullable */ java.lang.String getLabelsOrDefault( 4461 java.lang.String key, 4462 /* nullable */ 4463 java.lang.String defaultValue) { 4464 if (key == null) { 4465 throw new NullPointerException("map key"); 4466 } 4467 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 4468 return map.containsKey(key) ? map.get(key) : defaultValue; 4469 } 4470 /** 4471 * 4472 * 4473 * <pre> 4474 * Labels. 4475 * </pre> 4476 * 4477 * <code>map<string, string> labels = 4;</code> 4478 */ 4479 @java.lang.Override getLabelsOrThrow(java.lang.String key)4480 public java.lang.String getLabelsOrThrow(java.lang.String key) { 4481 if (key == null) { 4482 throw new NullPointerException("map key"); 4483 } 4484 java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); 4485 if (!map.containsKey(key)) { 4486 throw new java.lang.IllegalArgumentException(); 4487 } 4488 return map.get(key); 4489 } 4490 clearLabels()4491 public Builder clearLabels() { 4492 bitField0_ = (bitField0_ & ~0x00000008); 4493 internalGetMutableLabels().getMutableMap().clear(); 4494 return this; 4495 } 4496 /** 4497 * 4498 * 4499 * <pre> 4500 * Labels. 4501 * </pre> 4502 * 4503 * <code>map<string, string> labels = 4;</code> 4504 */ removeLabels(java.lang.String key)4505 public Builder removeLabels(java.lang.String key) { 4506 if (key == null) { 4507 throw new NullPointerException("map key"); 4508 } 4509 internalGetMutableLabels().getMutableMap().remove(key); 4510 return this; 4511 } 4512 /** Use alternate mutation accessors instead. */ 4513 @java.lang.Deprecated getMutableLabels()4514 public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { 4515 bitField0_ |= 0x00000008; 4516 return internalGetMutableLabels().getMutableMap(); 4517 } 4518 /** 4519 * 4520 * 4521 * <pre> 4522 * Labels. 4523 * </pre> 4524 * 4525 * <code>map<string, string> labels = 4;</code> 4526 */ putLabels(java.lang.String key, java.lang.String value)4527 public Builder putLabels(java.lang.String key, java.lang.String value) { 4528 if (key == null) { 4529 throw new NullPointerException("map key"); 4530 } 4531 if (value == null) { 4532 throw new NullPointerException("map value"); 4533 } 4534 internalGetMutableLabels().getMutableMap().put(key, value); 4535 bitField0_ |= 0x00000008; 4536 return this; 4537 } 4538 /** 4539 * 4540 * 4541 * <pre> 4542 * Labels. 4543 * </pre> 4544 * 4545 * <code>map<string, string> labels = 4;</code> 4546 */ putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)4547 public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) { 4548 internalGetMutableLabels().getMutableMap().putAll(values); 4549 bitField0_ |= 0x00000008; 4550 return this; 4551 } 4552 4553 private java.lang.Object displayName_ = ""; 4554 /** 4555 * 4556 * 4557 * <pre> 4558 * Required. Display name. 4559 * </pre> 4560 * 4561 * <code>string display_name = 5 [(.google.api.field_behavior) = REQUIRED];</code> 4562 * 4563 * @return The displayName. 4564 */ getDisplayName()4565 public java.lang.String getDisplayName() { 4566 java.lang.Object ref = displayName_; 4567 if (!(ref instanceof java.lang.String)) { 4568 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4569 java.lang.String s = bs.toStringUtf8(); 4570 displayName_ = s; 4571 return s; 4572 } else { 4573 return (java.lang.String) ref; 4574 } 4575 } 4576 /** 4577 * 4578 * 4579 * <pre> 4580 * Required. Display name. 4581 * </pre> 4582 * 4583 * <code>string display_name = 5 [(.google.api.field_behavior) = REQUIRED];</code> 4584 * 4585 * @return The bytes for displayName. 4586 */ getDisplayNameBytes()4587 public com.google.protobuf.ByteString getDisplayNameBytes() { 4588 java.lang.Object ref = displayName_; 4589 if (ref instanceof String) { 4590 com.google.protobuf.ByteString b = 4591 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4592 displayName_ = b; 4593 return b; 4594 } else { 4595 return (com.google.protobuf.ByteString) ref; 4596 } 4597 } 4598 /** 4599 * 4600 * 4601 * <pre> 4602 * Required. Display name. 4603 * </pre> 4604 * 4605 * <code>string display_name = 5 [(.google.api.field_behavior) = REQUIRED];</code> 4606 * 4607 * @param value The displayName to set. 4608 * @return This builder for chaining. 4609 */ setDisplayName(java.lang.String value)4610 public Builder setDisplayName(java.lang.String value) { 4611 if (value == null) { 4612 throw new NullPointerException(); 4613 } 4614 displayName_ = value; 4615 bitField0_ |= 0x00000010; 4616 onChanged(); 4617 return this; 4618 } 4619 /** 4620 * 4621 * 4622 * <pre> 4623 * Required. Display name. 4624 * </pre> 4625 * 4626 * <code>string display_name = 5 [(.google.api.field_behavior) = REQUIRED];</code> 4627 * 4628 * @return This builder for chaining. 4629 */ clearDisplayName()4630 public Builder clearDisplayName() { 4631 displayName_ = getDefaultInstance().getDisplayName(); 4632 bitField0_ = (bitField0_ & ~0x00000010); 4633 onChanged(); 4634 return this; 4635 } 4636 /** 4637 * 4638 * 4639 * <pre> 4640 * Required. Display name. 4641 * </pre> 4642 * 4643 * <code>string display_name = 5 [(.google.api.field_behavior) = REQUIRED];</code> 4644 * 4645 * @param value The bytes for displayName to set. 4646 * @return This builder for chaining. 4647 */ setDisplayNameBytes(com.google.protobuf.ByteString value)4648 public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 4649 if (value == null) { 4650 throw new NullPointerException(); 4651 } 4652 checkByteStringIsUtf8(value); 4653 displayName_ = value; 4654 bitField0_ |= 0x00000010; 4655 onChanged(); 4656 return this; 4657 } 4658 4659 private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; 4660 private com.google.protobuf.SingleFieldBuilderV3< 4661 com.google.cloud.datastream.v1.SourceConfig, 4662 com.google.cloud.datastream.v1.SourceConfig.Builder, 4663 com.google.cloud.datastream.v1.SourceConfigOrBuilder> 4664 sourceConfigBuilder_; 4665 /** 4666 * 4667 * 4668 * <pre> 4669 * Required. Source connection profile configuration. 4670 * </pre> 4671 * 4672 * <code> 4673 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4674 * </code> 4675 * 4676 * @return Whether the sourceConfig field is set. 4677 */ hasSourceConfig()4678 public boolean hasSourceConfig() { 4679 return ((bitField0_ & 0x00000020) != 0); 4680 } 4681 /** 4682 * 4683 * 4684 * <pre> 4685 * Required. Source connection profile configuration. 4686 * </pre> 4687 * 4688 * <code> 4689 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4690 * </code> 4691 * 4692 * @return The sourceConfig. 4693 */ getSourceConfig()4694 public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { 4695 if (sourceConfigBuilder_ == null) { 4696 return sourceConfig_ == null 4697 ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() 4698 : sourceConfig_; 4699 } else { 4700 return sourceConfigBuilder_.getMessage(); 4701 } 4702 } 4703 /** 4704 * 4705 * 4706 * <pre> 4707 * Required. Source connection profile configuration. 4708 * </pre> 4709 * 4710 * <code> 4711 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4712 * </code> 4713 */ setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value)4714 public Builder setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { 4715 if (sourceConfigBuilder_ == null) { 4716 if (value == null) { 4717 throw new NullPointerException(); 4718 } 4719 sourceConfig_ = value; 4720 } else { 4721 sourceConfigBuilder_.setMessage(value); 4722 } 4723 bitField0_ |= 0x00000020; 4724 onChanged(); 4725 return this; 4726 } 4727 /** 4728 * 4729 * 4730 * <pre> 4731 * Required. Source connection profile configuration. 4732 * </pre> 4733 * 4734 * <code> 4735 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4736 * </code> 4737 */ setSourceConfig( com.google.cloud.datastream.v1.SourceConfig.Builder builderForValue)4738 public Builder setSourceConfig( 4739 com.google.cloud.datastream.v1.SourceConfig.Builder builderForValue) { 4740 if (sourceConfigBuilder_ == null) { 4741 sourceConfig_ = builderForValue.build(); 4742 } else { 4743 sourceConfigBuilder_.setMessage(builderForValue.build()); 4744 } 4745 bitField0_ |= 0x00000020; 4746 onChanged(); 4747 return this; 4748 } 4749 /** 4750 * 4751 * 4752 * <pre> 4753 * Required. Source connection profile configuration. 4754 * </pre> 4755 * 4756 * <code> 4757 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4758 * </code> 4759 */ mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig value)4760 public Builder mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { 4761 if (sourceConfigBuilder_ == null) { 4762 if (((bitField0_ & 0x00000020) != 0) 4763 && sourceConfig_ != null 4764 && sourceConfig_ != com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) { 4765 getSourceConfigBuilder().mergeFrom(value); 4766 } else { 4767 sourceConfig_ = value; 4768 } 4769 } else { 4770 sourceConfigBuilder_.mergeFrom(value); 4771 } 4772 bitField0_ |= 0x00000020; 4773 onChanged(); 4774 return this; 4775 } 4776 /** 4777 * 4778 * 4779 * <pre> 4780 * Required. Source connection profile configuration. 4781 * </pre> 4782 * 4783 * <code> 4784 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4785 * </code> 4786 */ clearSourceConfig()4787 public Builder clearSourceConfig() { 4788 bitField0_ = (bitField0_ & ~0x00000020); 4789 sourceConfig_ = null; 4790 if (sourceConfigBuilder_ != null) { 4791 sourceConfigBuilder_.dispose(); 4792 sourceConfigBuilder_ = null; 4793 } 4794 onChanged(); 4795 return this; 4796 } 4797 /** 4798 * 4799 * 4800 * <pre> 4801 * Required. Source connection profile configuration. 4802 * </pre> 4803 * 4804 * <code> 4805 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4806 * </code> 4807 */ getSourceConfigBuilder()4808 public com.google.cloud.datastream.v1.SourceConfig.Builder getSourceConfigBuilder() { 4809 bitField0_ |= 0x00000020; 4810 onChanged(); 4811 return getSourceConfigFieldBuilder().getBuilder(); 4812 } 4813 /** 4814 * 4815 * 4816 * <pre> 4817 * Required. Source connection profile configuration. 4818 * </pre> 4819 * 4820 * <code> 4821 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4822 * </code> 4823 */ getSourceConfigOrBuilder()4824 public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { 4825 if (sourceConfigBuilder_ != null) { 4826 return sourceConfigBuilder_.getMessageOrBuilder(); 4827 } else { 4828 return sourceConfig_ == null 4829 ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() 4830 : sourceConfig_; 4831 } 4832 } 4833 /** 4834 * 4835 * 4836 * <pre> 4837 * Required. Source connection profile configuration. 4838 * </pre> 4839 * 4840 * <code> 4841 * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; 4842 * </code> 4843 */ 4844 private com.google.protobuf.SingleFieldBuilderV3< 4845 com.google.cloud.datastream.v1.SourceConfig, 4846 com.google.cloud.datastream.v1.SourceConfig.Builder, 4847 com.google.cloud.datastream.v1.SourceConfigOrBuilder> getSourceConfigFieldBuilder()4848 getSourceConfigFieldBuilder() { 4849 if (sourceConfigBuilder_ == null) { 4850 sourceConfigBuilder_ = 4851 new com.google.protobuf.SingleFieldBuilderV3< 4852 com.google.cloud.datastream.v1.SourceConfig, 4853 com.google.cloud.datastream.v1.SourceConfig.Builder, 4854 com.google.cloud.datastream.v1.SourceConfigOrBuilder>( 4855 getSourceConfig(), getParentForChildren(), isClean()); 4856 sourceConfig_ = null; 4857 } 4858 return sourceConfigBuilder_; 4859 } 4860 4861 private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; 4862 private com.google.protobuf.SingleFieldBuilderV3< 4863 com.google.cloud.datastream.v1.DestinationConfig, 4864 com.google.cloud.datastream.v1.DestinationConfig.Builder, 4865 com.google.cloud.datastream.v1.DestinationConfigOrBuilder> 4866 destinationConfigBuilder_; 4867 /** 4868 * 4869 * 4870 * <pre> 4871 * Required. Destination connection profile configuration. 4872 * </pre> 4873 * 4874 * <code> 4875 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 4876 * </code> 4877 * 4878 * @return Whether the destinationConfig field is set. 4879 */ hasDestinationConfig()4880 public boolean hasDestinationConfig() { 4881 return ((bitField0_ & 0x00000040) != 0); 4882 } 4883 /** 4884 * 4885 * 4886 * <pre> 4887 * Required. Destination connection profile configuration. 4888 * </pre> 4889 * 4890 * <code> 4891 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 4892 * </code> 4893 * 4894 * @return The destinationConfig. 4895 */ getDestinationConfig()4896 public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { 4897 if (destinationConfigBuilder_ == null) { 4898 return destinationConfig_ == null 4899 ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() 4900 : destinationConfig_; 4901 } else { 4902 return destinationConfigBuilder_.getMessage(); 4903 } 4904 } 4905 /** 4906 * 4907 * 4908 * <pre> 4909 * Required. Destination connection profile configuration. 4910 * </pre> 4911 * 4912 * <code> 4913 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 4914 * </code> 4915 */ setDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value)4916 public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { 4917 if (destinationConfigBuilder_ == null) { 4918 if (value == null) { 4919 throw new NullPointerException(); 4920 } 4921 destinationConfig_ = value; 4922 } else { 4923 destinationConfigBuilder_.setMessage(value); 4924 } 4925 bitField0_ |= 0x00000040; 4926 onChanged(); 4927 return this; 4928 } 4929 /** 4930 * 4931 * 4932 * <pre> 4933 * Required. Destination connection profile configuration. 4934 * </pre> 4935 * 4936 * <code> 4937 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 4938 * </code> 4939 */ setDestinationConfig( com.google.cloud.datastream.v1.DestinationConfig.Builder builderForValue)4940 public Builder setDestinationConfig( 4941 com.google.cloud.datastream.v1.DestinationConfig.Builder builderForValue) { 4942 if (destinationConfigBuilder_ == null) { 4943 destinationConfig_ = builderForValue.build(); 4944 } else { 4945 destinationConfigBuilder_.setMessage(builderForValue.build()); 4946 } 4947 bitField0_ |= 0x00000040; 4948 onChanged(); 4949 return this; 4950 } 4951 /** 4952 * 4953 * 4954 * <pre> 4955 * Required. Destination connection profile configuration. 4956 * </pre> 4957 * 4958 * <code> 4959 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 4960 * </code> 4961 */ mergeDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value)4962 public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { 4963 if (destinationConfigBuilder_ == null) { 4964 if (((bitField0_ & 0x00000040) != 0) 4965 && destinationConfig_ != null 4966 && destinationConfig_ 4967 != com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) { 4968 getDestinationConfigBuilder().mergeFrom(value); 4969 } else { 4970 destinationConfig_ = value; 4971 } 4972 } else { 4973 destinationConfigBuilder_.mergeFrom(value); 4974 } 4975 bitField0_ |= 0x00000040; 4976 onChanged(); 4977 return this; 4978 } 4979 /** 4980 * 4981 * 4982 * <pre> 4983 * Required. Destination connection profile configuration. 4984 * </pre> 4985 * 4986 * <code> 4987 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 4988 * </code> 4989 */ clearDestinationConfig()4990 public Builder clearDestinationConfig() { 4991 bitField0_ = (bitField0_ & ~0x00000040); 4992 destinationConfig_ = null; 4993 if (destinationConfigBuilder_ != null) { 4994 destinationConfigBuilder_.dispose(); 4995 destinationConfigBuilder_ = null; 4996 } 4997 onChanged(); 4998 return this; 4999 } 5000 /** 5001 * 5002 * 5003 * <pre> 5004 * Required. Destination connection profile configuration. 5005 * </pre> 5006 * 5007 * <code> 5008 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 5009 * </code> 5010 */ getDestinationConfigBuilder()5011 public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationConfigBuilder() { 5012 bitField0_ |= 0x00000040; 5013 onChanged(); 5014 return getDestinationConfigFieldBuilder().getBuilder(); 5015 } 5016 /** 5017 * 5018 * 5019 * <pre> 5020 * Required. Destination connection profile configuration. 5021 * </pre> 5022 * 5023 * <code> 5024 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 5025 * </code> 5026 */ 5027 public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder()5028 getDestinationConfigOrBuilder() { 5029 if (destinationConfigBuilder_ != null) { 5030 return destinationConfigBuilder_.getMessageOrBuilder(); 5031 } else { 5032 return destinationConfig_ == null 5033 ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() 5034 : destinationConfig_; 5035 } 5036 } 5037 /** 5038 * 5039 * 5040 * <pre> 5041 * Required. Destination connection profile configuration. 5042 * </pre> 5043 * 5044 * <code> 5045 * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; 5046 * </code> 5047 */ 5048 private com.google.protobuf.SingleFieldBuilderV3< 5049 com.google.cloud.datastream.v1.DestinationConfig, 5050 com.google.cloud.datastream.v1.DestinationConfig.Builder, 5051 com.google.cloud.datastream.v1.DestinationConfigOrBuilder> getDestinationConfigFieldBuilder()5052 getDestinationConfigFieldBuilder() { 5053 if (destinationConfigBuilder_ == null) { 5054 destinationConfigBuilder_ = 5055 new com.google.protobuf.SingleFieldBuilderV3< 5056 com.google.cloud.datastream.v1.DestinationConfig, 5057 com.google.cloud.datastream.v1.DestinationConfig.Builder, 5058 com.google.cloud.datastream.v1.DestinationConfigOrBuilder>( 5059 getDestinationConfig(), getParentForChildren(), isClean()); 5060 destinationConfig_ = null; 5061 } 5062 return destinationConfigBuilder_; 5063 } 5064 5065 private int state_ = 0; 5066 /** 5067 * 5068 * 5069 * <pre> 5070 * The state of the stream. 5071 * </pre> 5072 * 5073 * <code>.google.cloud.datastream.v1.Stream.State state = 8;</code> 5074 * 5075 * @return The enum numeric value on the wire for state. 5076 */ 5077 @java.lang.Override getStateValue()5078 public int getStateValue() { 5079 return state_; 5080 } 5081 /** 5082 * 5083 * 5084 * <pre> 5085 * The state of the stream. 5086 * </pre> 5087 * 5088 * <code>.google.cloud.datastream.v1.Stream.State state = 8;</code> 5089 * 5090 * @param value The enum numeric value on the wire for state to set. 5091 * @return This builder for chaining. 5092 */ setStateValue(int value)5093 public Builder setStateValue(int value) { 5094 state_ = value; 5095 bitField0_ |= 0x00000080; 5096 onChanged(); 5097 return this; 5098 } 5099 /** 5100 * 5101 * 5102 * <pre> 5103 * The state of the stream. 5104 * </pre> 5105 * 5106 * <code>.google.cloud.datastream.v1.Stream.State state = 8;</code> 5107 * 5108 * @return The state. 5109 */ 5110 @java.lang.Override getState()5111 public com.google.cloud.datastream.v1.Stream.State getState() { 5112 com.google.cloud.datastream.v1.Stream.State result = 5113 com.google.cloud.datastream.v1.Stream.State.forNumber(state_); 5114 return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; 5115 } 5116 /** 5117 * 5118 * 5119 * <pre> 5120 * The state of the stream. 5121 * </pre> 5122 * 5123 * <code>.google.cloud.datastream.v1.Stream.State state = 8;</code> 5124 * 5125 * @param value The state to set. 5126 * @return This builder for chaining. 5127 */ setState(com.google.cloud.datastream.v1.Stream.State value)5128 public Builder setState(com.google.cloud.datastream.v1.Stream.State value) { 5129 if (value == null) { 5130 throw new NullPointerException(); 5131 } 5132 bitField0_ |= 0x00000080; 5133 state_ = value.getNumber(); 5134 onChanged(); 5135 return this; 5136 } 5137 /** 5138 * 5139 * 5140 * <pre> 5141 * The state of the stream. 5142 * </pre> 5143 * 5144 * <code>.google.cloud.datastream.v1.Stream.State state = 8;</code> 5145 * 5146 * @return This builder for chaining. 5147 */ clearState()5148 public Builder clearState() { 5149 bitField0_ = (bitField0_ & ~0x00000080); 5150 state_ = 0; 5151 onChanged(); 5152 return this; 5153 } 5154 5155 private com.google.protobuf.SingleFieldBuilderV3< 5156 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, 5157 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, 5158 com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> 5159 backfillAllBuilder_; 5160 /** 5161 * 5162 * 5163 * <pre> 5164 * Automatically backfill objects included in the stream source 5165 * configuration. Specific objects can be excluded. 5166 * </pre> 5167 * 5168 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5169 * 5170 * @return Whether the backfillAll field is set. 5171 */ 5172 @java.lang.Override hasBackfillAll()5173 public boolean hasBackfillAll() { 5174 return backfillStrategyCase_ == 101; 5175 } 5176 /** 5177 * 5178 * 5179 * <pre> 5180 * Automatically backfill objects included in the stream source 5181 * configuration. Specific objects can be excluded. 5182 * </pre> 5183 * 5184 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5185 * 5186 * @return The backfillAll. 5187 */ 5188 @java.lang.Override getBackfillAll()5189 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll() { 5190 if (backfillAllBuilder_ == null) { 5191 if (backfillStrategyCase_ == 101) { 5192 return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; 5193 } 5194 return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); 5195 } else { 5196 if (backfillStrategyCase_ == 101) { 5197 return backfillAllBuilder_.getMessage(); 5198 } 5199 return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); 5200 } 5201 } 5202 /** 5203 * 5204 * 5205 * <pre> 5206 * Automatically backfill objects included in the stream source 5207 * configuration. Specific objects can be excluded. 5208 * </pre> 5209 * 5210 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5211 */ setBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value)5212 public Builder setBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) { 5213 if (backfillAllBuilder_ == null) { 5214 if (value == null) { 5215 throw new NullPointerException(); 5216 } 5217 backfillStrategy_ = value; 5218 onChanged(); 5219 } else { 5220 backfillAllBuilder_.setMessage(value); 5221 } 5222 backfillStrategyCase_ = 101; 5223 return this; 5224 } 5225 /** 5226 * 5227 * 5228 * <pre> 5229 * Automatically backfill objects included in the stream source 5230 * configuration. Specific objects can be excluded. 5231 * </pre> 5232 * 5233 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5234 */ setBackfillAll( com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder builderForValue)5235 public Builder setBackfillAll( 5236 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder builderForValue) { 5237 if (backfillAllBuilder_ == null) { 5238 backfillStrategy_ = builderForValue.build(); 5239 onChanged(); 5240 } else { 5241 backfillAllBuilder_.setMessage(builderForValue.build()); 5242 } 5243 backfillStrategyCase_ = 101; 5244 return this; 5245 } 5246 /** 5247 * 5248 * 5249 * <pre> 5250 * Automatically backfill objects included in the stream source 5251 * configuration. Specific objects can be excluded. 5252 * </pre> 5253 * 5254 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5255 */ mergeBackfillAll( com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value)5256 public Builder mergeBackfillAll( 5257 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) { 5258 if (backfillAllBuilder_ == null) { 5259 if (backfillStrategyCase_ == 101 5260 && backfillStrategy_ 5261 != com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) { 5262 backfillStrategy_ = 5263 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder( 5264 (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_) 5265 .mergeFrom(value) 5266 .buildPartial(); 5267 } else { 5268 backfillStrategy_ = value; 5269 } 5270 onChanged(); 5271 } else { 5272 if (backfillStrategyCase_ == 101) { 5273 backfillAllBuilder_.mergeFrom(value); 5274 } else { 5275 backfillAllBuilder_.setMessage(value); 5276 } 5277 } 5278 backfillStrategyCase_ = 101; 5279 return this; 5280 } 5281 /** 5282 * 5283 * 5284 * <pre> 5285 * Automatically backfill objects included in the stream source 5286 * configuration. Specific objects can be excluded. 5287 * </pre> 5288 * 5289 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5290 */ clearBackfillAll()5291 public Builder clearBackfillAll() { 5292 if (backfillAllBuilder_ == null) { 5293 if (backfillStrategyCase_ == 101) { 5294 backfillStrategyCase_ = 0; 5295 backfillStrategy_ = null; 5296 onChanged(); 5297 } 5298 } else { 5299 if (backfillStrategyCase_ == 101) { 5300 backfillStrategyCase_ = 0; 5301 backfillStrategy_ = null; 5302 } 5303 backfillAllBuilder_.clear(); 5304 } 5305 return this; 5306 } 5307 /** 5308 * 5309 * 5310 * <pre> 5311 * Automatically backfill objects included in the stream source 5312 * configuration. Specific objects can be excluded. 5313 * </pre> 5314 * 5315 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5316 */ 5317 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder getBackfillAllBuilder()5318 getBackfillAllBuilder() { 5319 return getBackfillAllFieldBuilder().getBuilder(); 5320 } 5321 /** 5322 * 5323 * 5324 * <pre> 5325 * Automatically backfill objects included in the stream source 5326 * configuration. Specific objects can be excluded. 5327 * </pre> 5328 * 5329 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5330 */ 5331 @java.lang.Override 5332 public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder()5333 getBackfillAllOrBuilder() { 5334 if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) { 5335 return backfillAllBuilder_.getMessageOrBuilder(); 5336 } else { 5337 if (backfillStrategyCase_ == 101) { 5338 return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; 5339 } 5340 return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); 5341 } 5342 } 5343 /** 5344 * 5345 * 5346 * <pre> 5347 * Automatically backfill objects included in the stream source 5348 * configuration. Specific objects can be excluded. 5349 * </pre> 5350 * 5351 * <code>.google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;</code> 5352 */ 5353 private com.google.protobuf.SingleFieldBuilderV3< 5354 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, 5355 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, 5356 com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> getBackfillAllFieldBuilder()5357 getBackfillAllFieldBuilder() { 5358 if (backfillAllBuilder_ == null) { 5359 if (!(backfillStrategyCase_ == 101)) { 5360 backfillStrategy_ = 5361 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); 5362 } 5363 backfillAllBuilder_ = 5364 new com.google.protobuf.SingleFieldBuilderV3< 5365 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, 5366 com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, 5367 com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>( 5368 (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_, 5369 getParentForChildren(), 5370 isClean()); 5371 backfillStrategy_ = null; 5372 } 5373 backfillStrategyCase_ = 101; 5374 onChanged(); 5375 return backfillAllBuilder_; 5376 } 5377 5378 private com.google.protobuf.SingleFieldBuilderV3< 5379 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, 5380 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, 5381 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> 5382 backfillNoneBuilder_; 5383 /** 5384 * 5385 * 5386 * <pre> 5387 * Do not automatically backfill any objects. 5388 * </pre> 5389 * 5390 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5391 * 5392 * @return Whether the backfillNone field is set. 5393 */ 5394 @java.lang.Override hasBackfillNone()5395 public boolean hasBackfillNone() { 5396 return backfillStrategyCase_ == 102; 5397 } 5398 /** 5399 * 5400 * 5401 * <pre> 5402 * Do not automatically backfill any objects. 5403 * </pre> 5404 * 5405 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5406 * 5407 * @return The backfillNone. 5408 */ 5409 @java.lang.Override getBackfillNone()5410 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone() { 5411 if (backfillNoneBuilder_ == null) { 5412 if (backfillStrategyCase_ == 102) { 5413 return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; 5414 } 5415 return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); 5416 } else { 5417 if (backfillStrategyCase_ == 102) { 5418 return backfillNoneBuilder_.getMessage(); 5419 } 5420 return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); 5421 } 5422 } 5423 /** 5424 * 5425 * 5426 * <pre> 5427 * Do not automatically backfill any objects. 5428 * </pre> 5429 * 5430 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5431 */ setBackfillNone( com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value)5432 public Builder setBackfillNone( 5433 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { 5434 if (backfillNoneBuilder_ == null) { 5435 if (value == null) { 5436 throw new NullPointerException(); 5437 } 5438 backfillStrategy_ = value; 5439 onChanged(); 5440 } else { 5441 backfillNoneBuilder_.setMessage(value); 5442 } 5443 backfillStrategyCase_ = 102; 5444 return this; 5445 } 5446 /** 5447 * 5448 * 5449 * <pre> 5450 * Do not automatically backfill any objects. 5451 * </pre> 5452 * 5453 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5454 */ setBackfillNone( com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder builderForValue)5455 public Builder setBackfillNone( 5456 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder builderForValue) { 5457 if (backfillNoneBuilder_ == null) { 5458 backfillStrategy_ = builderForValue.build(); 5459 onChanged(); 5460 } else { 5461 backfillNoneBuilder_.setMessage(builderForValue.build()); 5462 } 5463 backfillStrategyCase_ = 102; 5464 return this; 5465 } 5466 /** 5467 * 5468 * 5469 * <pre> 5470 * Do not automatically backfill any objects. 5471 * </pre> 5472 * 5473 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5474 */ mergeBackfillNone( com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value)5475 public Builder mergeBackfillNone( 5476 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { 5477 if (backfillNoneBuilder_ == null) { 5478 if (backfillStrategyCase_ == 102 5479 && backfillStrategy_ 5480 != com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy 5481 .getDefaultInstance()) { 5482 backfillStrategy_ = 5483 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder( 5484 (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) 5485 backfillStrategy_) 5486 .mergeFrom(value) 5487 .buildPartial(); 5488 } else { 5489 backfillStrategy_ = value; 5490 } 5491 onChanged(); 5492 } else { 5493 if (backfillStrategyCase_ == 102) { 5494 backfillNoneBuilder_.mergeFrom(value); 5495 } else { 5496 backfillNoneBuilder_.setMessage(value); 5497 } 5498 } 5499 backfillStrategyCase_ = 102; 5500 return this; 5501 } 5502 /** 5503 * 5504 * 5505 * <pre> 5506 * Do not automatically backfill any objects. 5507 * </pre> 5508 * 5509 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5510 */ clearBackfillNone()5511 public Builder clearBackfillNone() { 5512 if (backfillNoneBuilder_ == null) { 5513 if (backfillStrategyCase_ == 102) { 5514 backfillStrategyCase_ = 0; 5515 backfillStrategy_ = null; 5516 onChanged(); 5517 } 5518 } else { 5519 if (backfillStrategyCase_ == 102) { 5520 backfillStrategyCase_ = 0; 5521 backfillStrategy_ = null; 5522 } 5523 backfillNoneBuilder_.clear(); 5524 } 5525 return this; 5526 } 5527 /** 5528 * 5529 * 5530 * <pre> 5531 * Do not automatically backfill any objects. 5532 * </pre> 5533 * 5534 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5535 */ 5536 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder getBackfillNoneBuilder()5537 getBackfillNoneBuilder() { 5538 return getBackfillNoneFieldBuilder().getBuilder(); 5539 } 5540 /** 5541 * 5542 * 5543 * <pre> 5544 * Do not automatically backfill any objects. 5545 * </pre> 5546 * 5547 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5548 */ 5549 @java.lang.Override 5550 public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder()5551 getBackfillNoneOrBuilder() { 5552 if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { 5553 return backfillNoneBuilder_.getMessageOrBuilder(); 5554 } else { 5555 if (backfillStrategyCase_ == 102) { 5556 return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; 5557 } 5558 return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); 5559 } 5560 } 5561 /** 5562 * 5563 * 5564 * <pre> 5565 * Do not automatically backfill any objects. 5566 * </pre> 5567 * 5568 * <code>.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;</code> 5569 */ 5570 private com.google.protobuf.SingleFieldBuilderV3< 5571 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, 5572 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, 5573 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> getBackfillNoneFieldBuilder()5574 getBackfillNoneFieldBuilder() { 5575 if (backfillNoneBuilder_ == null) { 5576 if (!(backfillStrategyCase_ == 102)) { 5577 backfillStrategy_ = 5578 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); 5579 } 5580 backfillNoneBuilder_ = 5581 new com.google.protobuf.SingleFieldBuilderV3< 5582 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, 5583 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, 5584 com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>( 5585 (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_, 5586 getParentForChildren(), 5587 isClean()); 5588 backfillStrategy_ = null; 5589 } 5590 backfillStrategyCase_ = 102; 5591 onChanged(); 5592 return backfillNoneBuilder_; 5593 } 5594 5595 private java.util.List<com.google.cloud.datastream.v1.Error> errors_ = 5596 java.util.Collections.emptyList(); 5597 ensureErrorsIsMutable()5598 private void ensureErrorsIsMutable() { 5599 if (!((bitField0_ & 0x00000400) != 0)) { 5600 errors_ = new java.util.ArrayList<com.google.cloud.datastream.v1.Error>(errors_); 5601 bitField0_ |= 0x00000400; 5602 } 5603 } 5604 5605 private com.google.protobuf.RepeatedFieldBuilderV3< 5606 com.google.cloud.datastream.v1.Error, 5607 com.google.cloud.datastream.v1.Error.Builder, 5608 com.google.cloud.datastream.v1.ErrorOrBuilder> 5609 errorsBuilder_; 5610 5611 /** 5612 * 5613 * 5614 * <pre> 5615 * Output only. Errors on the Stream. 5616 * </pre> 5617 * 5618 * <code> 5619 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5620 * </code> 5621 */ getErrorsList()5622 public java.util.List<com.google.cloud.datastream.v1.Error> getErrorsList() { 5623 if (errorsBuilder_ == null) { 5624 return java.util.Collections.unmodifiableList(errors_); 5625 } else { 5626 return errorsBuilder_.getMessageList(); 5627 } 5628 } 5629 /** 5630 * 5631 * 5632 * <pre> 5633 * Output only. Errors on the Stream. 5634 * </pre> 5635 * 5636 * <code> 5637 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5638 * </code> 5639 */ getErrorsCount()5640 public int getErrorsCount() { 5641 if (errorsBuilder_ == null) { 5642 return errors_.size(); 5643 } else { 5644 return errorsBuilder_.getCount(); 5645 } 5646 } 5647 /** 5648 * 5649 * 5650 * <pre> 5651 * Output only. Errors on the Stream. 5652 * </pre> 5653 * 5654 * <code> 5655 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5656 * </code> 5657 */ getErrors(int index)5658 public com.google.cloud.datastream.v1.Error getErrors(int index) { 5659 if (errorsBuilder_ == null) { 5660 return errors_.get(index); 5661 } else { 5662 return errorsBuilder_.getMessage(index); 5663 } 5664 } 5665 /** 5666 * 5667 * 5668 * <pre> 5669 * Output only. Errors on the Stream. 5670 * </pre> 5671 * 5672 * <code> 5673 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5674 * </code> 5675 */ setErrors(int index, com.google.cloud.datastream.v1.Error value)5676 public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { 5677 if (errorsBuilder_ == null) { 5678 if (value == null) { 5679 throw new NullPointerException(); 5680 } 5681 ensureErrorsIsMutable(); 5682 errors_.set(index, value); 5683 onChanged(); 5684 } else { 5685 errorsBuilder_.setMessage(index, value); 5686 } 5687 return this; 5688 } 5689 /** 5690 * 5691 * 5692 * <pre> 5693 * Output only. Errors on the Stream. 5694 * </pre> 5695 * 5696 * <code> 5697 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5698 * </code> 5699 */ setErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue)5700 public Builder setErrors( 5701 int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { 5702 if (errorsBuilder_ == null) { 5703 ensureErrorsIsMutable(); 5704 errors_.set(index, builderForValue.build()); 5705 onChanged(); 5706 } else { 5707 errorsBuilder_.setMessage(index, builderForValue.build()); 5708 } 5709 return this; 5710 } 5711 /** 5712 * 5713 * 5714 * <pre> 5715 * Output only. Errors on the Stream. 5716 * </pre> 5717 * 5718 * <code> 5719 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5720 * </code> 5721 */ addErrors(com.google.cloud.datastream.v1.Error value)5722 public Builder addErrors(com.google.cloud.datastream.v1.Error value) { 5723 if (errorsBuilder_ == null) { 5724 if (value == null) { 5725 throw new NullPointerException(); 5726 } 5727 ensureErrorsIsMutable(); 5728 errors_.add(value); 5729 onChanged(); 5730 } else { 5731 errorsBuilder_.addMessage(value); 5732 } 5733 return this; 5734 } 5735 /** 5736 * 5737 * 5738 * <pre> 5739 * Output only. Errors on the Stream. 5740 * </pre> 5741 * 5742 * <code> 5743 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5744 * </code> 5745 */ addErrors(int index, com.google.cloud.datastream.v1.Error value)5746 public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { 5747 if (errorsBuilder_ == null) { 5748 if (value == null) { 5749 throw new NullPointerException(); 5750 } 5751 ensureErrorsIsMutable(); 5752 errors_.add(index, value); 5753 onChanged(); 5754 } else { 5755 errorsBuilder_.addMessage(index, value); 5756 } 5757 return this; 5758 } 5759 /** 5760 * 5761 * 5762 * <pre> 5763 * Output only. Errors on the Stream. 5764 * </pre> 5765 * 5766 * <code> 5767 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5768 * </code> 5769 */ addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue)5770 public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { 5771 if (errorsBuilder_ == null) { 5772 ensureErrorsIsMutable(); 5773 errors_.add(builderForValue.build()); 5774 onChanged(); 5775 } else { 5776 errorsBuilder_.addMessage(builderForValue.build()); 5777 } 5778 return this; 5779 } 5780 /** 5781 * 5782 * 5783 * <pre> 5784 * Output only. Errors on the Stream. 5785 * </pre> 5786 * 5787 * <code> 5788 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5789 * </code> 5790 */ addErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue)5791 public Builder addErrors( 5792 int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { 5793 if (errorsBuilder_ == null) { 5794 ensureErrorsIsMutable(); 5795 errors_.add(index, builderForValue.build()); 5796 onChanged(); 5797 } else { 5798 errorsBuilder_.addMessage(index, builderForValue.build()); 5799 } 5800 return this; 5801 } 5802 /** 5803 * 5804 * 5805 * <pre> 5806 * Output only. Errors on the Stream. 5807 * </pre> 5808 * 5809 * <code> 5810 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5811 * </code> 5812 */ addAllErrors( java.lang.Iterable<? extends com.google.cloud.datastream.v1.Error> values)5813 public Builder addAllErrors( 5814 java.lang.Iterable<? extends com.google.cloud.datastream.v1.Error> values) { 5815 if (errorsBuilder_ == null) { 5816 ensureErrorsIsMutable(); 5817 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); 5818 onChanged(); 5819 } else { 5820 errorsBuilder_.addAllMessages(values); 5821 } 5822 return this; 5823 } 5824 /** 5825 * 5826 * 5827 * <pre> 5828 * Output only. Errors on the Stream. 5829 * </pre> 5830 * 5831 * <code> 5832 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5833 * </code> 5834 */ clearErrors()5835 public Builder clearErrors() { 5836 if (errorsBuilder_ == null) { 5837 errors_ = java.util.Collections.emptyList(); 5838 bitField0_ = (bitField0_ & ~0x00000400); 5839 onChanged(); 5840 } else { 5841 errorsBuilder_.clear(); 5842 } 5843 return this; 5844 } 5845 /** 5846 * 5847 * 5848 * <pre> 5849 * Output only. Errors on the Stream. 5850 * </pre> 5851 * 5852 * <code> 5853 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5854 * </code> 5855 */ removeErrors(int index)5856 public Builder removeErrors(int index) { 5857 if (errorsBuilder_ == null) { 5858 ensureErrorsIsMutable(); 5859 errors_.remove(index); 5860 onChanged(); 5861 } else { 5862 errorsBuilder_.remove(index); 5863 } 5864 return this; 5865 } 5866 /** 5867 * 5868 * 5869 * <pre> 5870 * Output only. Errors on the Stream. 5871 * </pre> 5872 * 5873 * <code> 5874 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5875 * </code> 5876 */ getErrorsBuilder(int index)5877 public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { 5878 return getErrorsFieldBuilder().getBuilder(index); 5879 } 5880 /** 5881 * 5882 * 5883 * <pre> 5884 * Output only. Errors on the Stream. 5885 * </pre> 5886 * 5887 * <code> 5888 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5889 * </code> 5890 */ getErrorsOrBuilder(int index)5891 public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { 5892 if (errorsBuilder_ == null) { 5893 return errors_.get(index); 5894 } else { 5895 return errorsBuilder_.getMessageOrBuilder(index); 5896 } 5897 } 5898 /** 5899 * 5900 * 5901 * <pre> 5902 * Output only. Errors on the Stream. 5903 * </pre> 5904 * 5905 * <code> 5906 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5907 * </code> 5908 */ 5909 public java.util.List<? extends com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsOrBuilderList()5910 getErrorsOrBuilderList() { 5911 if (errorsBuilder_ != null) { 5912 return errorsBuilder_.getMessageOrBuilderList(); 5913 } else { 5914 return java.util.Collections.unmodifiableList(errors_); 5915 } 5916 } 5917 /** 5918 * 5919 * 5920 * <pre> 5921 * Output only. Errors on the Stream. 5922 * </pre> 5923 * 5924 * <code> 5925 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5926 * </code> 5927 */ addErrorsBuilder()5928 public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { 5929 return getErrorsFieldBuilder() 5930 .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); 5931 } 5932 /** 5933 * 5934 * 5935 * <pre> 5936 * Output only. Errors on the Stream. 5937 * </pre> 5938 * 5939 * <code> 5940 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5941 * </code> 5942 */ addErrorsBuilder(int index)5943 public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { 5944 return getErrorsFieldBuilder() 5945 .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); 5946 } 5947 /** 5948 * 5949 * 5950 * <pre> 5951 * Output only. Errors on the Stream. 5952 * </pre> 5953 * 5954 * <code> 5955 * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5956 * </code> 5957 */ getErrorsBuilderList()5958 public java.util.List<com.google.cloud.datastream.v1.Error.Builder> getErrorsBuilderList() { 5959 return getErrorsFieldBuilder().getBuilderList(); 5960 } 5961 5962 private com.google.protobuf.RepeatedFieldBuilderV3< 5963 com.google.cloud.datastream.v1.Error, 5964 com.google.cloud.datastream.v1.Error.Builder, 5965 com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsFieldBuilder()5966 getErrorsFieldBuilder() { 5967 if (errorsBuilder_ == null) { 5968 errorsBuilder_ = 5969 new com.google.protobuf.RepeatedFieldBuilderV3< 5970 com.google.cloud.datastream.v1.Error, 5971 com.google.cloud.datastream.v1.Error.Builder, 5972 com.google.cloud.datastream.v1.ErrorOrBuilder>( 5973 errors_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); 5974 errors_ = null; 5975 } 5976 return errorsBuilder_; 5977 } 5978 5979 private java.lang.Object customerManagedEncryptionKey_ = ""; 5980 /** 5981 * 5982 * 5983 * <pre> 5984 * Immutable. A reference to a KMS encryption key. 5985 * If provided, it will be used to encrypt the data. 5986 * If left blank, data will be encrypted using an internal Stream-specific 5987 * encryption key provisioned through KMS. 5988 * </pre> 5989 * 5990 * <code> 5991 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 5992 * </code> 5993 * 5994 * @return Whether the customerManagedEncryptionKey field is set. 5995 */ hasCustomerManagedEncryptionKey()5996 public boolean hasCustomerManagedEncryptionKey() { 5997 return ((bitField0_ & 0x00000800) != 0); 5998 } 5999 /** 6000 * 6001 * 6002 * <pre> 6003 * Immutable. A reference to a KMS encryption key. 6004 * If provided, it will be used to encrypt the data. 6005 * If left blank, data will be encrypted using an internal Stream-specific 6006 * encryption key provisioned through KMS. 6007 * </pre> 6008 * 6009 * <code> 6010 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 6011 * </code> 6012 * 6013 * @return The customerManagedEncryptionKey. 6014 */ getCustomerManagedEncryptionKey()6015 public java.lang.String getCustomerManagedEncryptionKey() { 6016 java.lang.Object ref = customerManagedEncryptionKey_; 6017 if (!(ref instanceof java.lang.String)) { 6018 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6019 java.lang.String s = bs.toStringUtf8(); 6020 customerManagedEncryptionKey_ = s; 6021 return s; 6022 } else { 6023 return (java.lang.String) ref; 6024 } 6025 } 6026 /** 6027 * 6028 * 6029 * <pre> 6030 * Immutable. A reference to a KMS encryption key. 6031 * If provided, it will be used to encrypt the data. 6032 * If left blank, data will be encrypted using an internal Stream-specific 6033 * encryption key provisioned through KMS. 6034 * </pre> 6035 * 6036 * <code> 6037 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 6038 * </code> 6039 * 6040 * @return The bytes for customerManagedEncryptionKey. 6041 */ getCustomerManagedEncryptionKeyBytes()6042 public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { 6043 java.lang.Object ref = customerManagedEncryptionKey_; 6044 if (ref instanceof String) { 6045 com.google.protobuf.ByteString b = 6046 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6047 customerManagedEncryptionKey_ = b; 6048 return b; 6049 } else { 6050 return (com.google.protobuf.ByteString) ref; 6051 } 6052 } 6053 /** 6054 * 6055 * 6056 * <pre> 6057 * Immutable. A reference to a KMS encryption key. 6058 * If provided, it will be used to encrypt the data. 6059 * If left blank, data will be encrypted using an internal Stream-specific 6060 * encryption key provisioned through KMS. 6061 * </pre> 6062 * 6063 * <code> 6064 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 6065 * </code> 6066 * 6067 * @param value The customerManagedEncryptionKey to set. 6068 * @return This builder for chaining. 6069 */ setCustomerManagedEncryptionKey(java.lang.String value)6070 public Builder setCustomerManagedEncryptionKey(java.lang.String value) { 6071 if (value == null) { 6072 throw new NullPointerException(); 6073 } 6074 customerManagedEncryptionKey_ = value; 6075 bitField0_ |= 0x00000800; 6076 onChanged(); 6077 return this; 6078 } 6079 /** 6080 * 6081 * 6082 * <pre> 6083 * Immutable. A reference to a KMS encryption key. 6084 * If provided, it will be used to encrypt the data. 6085 * If left blank, data will be encrypted using an internal Stream-specific 6086 * encryption key provisioned through KMS. 6087 * </pre> 6088 * 6089 * <code> 6090 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 6091 * </code> 6092 * 6093 * @return This builder for chaining. 6094 */ clearCustomerManagedEncryptionKey()6095 public Builder clearCustomerManagedEncryptionKey() { 6096 customerManagedEncryptionKey_ = getDefaultInstance().getCustomerManagedEncryptionKey(); 6097 bitField0_ = (bitField0_ & ~0x00000800); 6098 onChanged(); 6099 return this; 6100 } 6101 /** 6102 * 6103 * 6104 * <pre> 6105 * Immutable. A reference to a KMS encryption key. 6106 * If provided, it will be used to encrypt the data. 6107 * If left blank, data will be encrypted using an internal Stream-specific 6108 * encryption key provisioned through KMS. 6109 * </pre> 6110 * 6111 * <code> 6112 * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; 6113 * </code> 6114 * 6115 * @param value The bytes for customerManagedEncryptionKey to set. 6116 * @return This builder for chaining. 6117 */ setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value)6118 public Builder setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value) { 6119 if (value == null) { 6120 throw new NullPointerException(); 6121 } 6122 checkByteStringIsUtf8(value); 6123 customerManagedEncryptionKey_ = value; 6124 bitField0_ |= 0x00000800; 6125 onChanged(); 6126 return this; 6127 } 6128 6129 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)6130 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 6131 return super.setUnknownFields(unknownFields); 6132 } 6133 6134 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)6135 public final Builder mergeUnknownFields( 6136 final com.google.protobuf.UnknownFieldSet unknownFields) { 6137 return super.mergeUnknownFields(unknownFields); 6138 } 6139 6140 // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream) 6141 } 6142 6143 // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream) 6144 private static final com.google.cloud.datastream.v1.Stream DEFAULT_INSTANCE; 6145 6146 static { 6147 DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream(); 6148 } 6149 getDefaultInstance()6150 public static com.google.cloud.datastream.v1.Stream getDefaultInstance() { 6151 return DEFAULT_INSTANCE; 6152 } 6153 6154 private static final com.google.protobuf.Parser<Stream> PARSER = 6155 new com.google.protobuf.AbstractParser<Stream>() { 6156 @java.lang.Override 6157 public Stream parsePartialFrom( 6158 com.google.protobuf.CodedInputStream input, 6159 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6160 throws com.google.protobuf.InvalidProtocolBufferException { 6161 Builder builder = newBuilder(); 6162 try { 6163 builder.mergeFrom(input, extensionRegistry); 6164 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6165 throw e.setUnfinishedMessage(builder.buildPartial()); 6166 } catch (com.google.protobuf.UninitializedMessageException e) { 6167 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 6168 } catch (java.io.IOException e) { 6169 throw new com.google.protobuf.InvalidProtocolBufferException(e) 6170 .setUnfinishedMessage(builder.buildPartial()); 6171 } 6172 return builder.buildPartial(); 6173 } 6174 }; 6175 parser()6176 public static com.google.protobuf.Parser<Stream> parser() { 6177 return PARSER; 6178 } 6179 6180 @java.lang.Override getParserForType()6181 public com.google.protobuf.Parser<Stream> getParserForType() { 6182 return PARSER; 6183 } 6184 6185 @java.lang.Override getDefaultInstanceForType()6186 public com.google.cloud.datastream.v1.Stream getDefaultInstanceForType() { 6187 return DEFAULT_INSTANCE; 6188 } 6189 } 6190