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/container/v1/cluster_service.proto 18 19 package com.google.container.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * AutoUpgradeOptions defines the set of options for the user to control how 26 * the Auto Upgrades will proceed. 27 * </pre> 28 * 29 * Protobuf type {@code google.container.v1.AutoUpgradeOptions} 30 */ 31 public final class AutoUpgradeOptions extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.container.v1.AutoUpgradeOptions) 34 AutoUpgradeOptionsOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use AutoUpgradeOptions.newBuilder() to construct. AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 AutoUpgradeOptions()41 private AutoUpgradeOptions() { 42 autoUpgradeStartTime_ = ""; 43 description_ = ""; 44 } 45 46 @java.lang.Override 47 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)48 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 49 return new AutoUpgradeOptions(); 50 } 51 52 @java.lang.Override getUnknownFields()53 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 54 return this.unknownFields; 55 } 56 getDescriptor()57 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 58 return com.google.container.v1.ClusterServiceProto 59 .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; 60 } 61 62 @java.lang.Override 63 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()64 internalGetFieldAccessorTable() { 65 return com.google.container.v1.ClusterServiceProto 66 .internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.container.v1.AutoUpgradeOptions.class, 69 com.google.container.v1.AutoUpgradeOptions.Builder.class); 70 } 71 72 public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; 73 74 @SuppressWarnings("serial") 75 private volatile java.lang.Object autoUpgradeStartTime_ = ""; 76 /** 77 * 78 * 79 * <pre> 80 * [Output only] This field is set when upgrades are about to commence 81 * with the approximate start time for the upgrades, in 82 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 83 * </pre> 84 * 85 * <code>string auto_upgrade_start_time = 1;</code> 86 * 87 * @return The autoUpgradeStartTime. 88 */ 89 @java.lang.Override getAutoUpgradeStartTime()90 public java.lang.String getAutoUpgradeStartTime() { 91 java.lang.Object ref = autoUpgradeStartTime_; 92 if (ref instanceof java.lang.String) { 93 return (java.lang.String) ref; 94 } else { 95 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 96 java.lang.String s = bs.toStringUtf8(); 97 autoUpgradeStartTime_ = s; 98 return s; 99 } 100 } 101 /** 102 * 103 * 104 * <pre> 105 * [Output only] This field is set when upgrades are about to commence 106 * with the approximate start time for the upgrades, in 107 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 108 * </pre> 109 * 110 * <code>string auto_upgrade_start_time = 1;</code> 111 * 112 * @return The bytes for autoUpgradeStartTime. 113 */ 114 @java.lang.Override getAutoUpgradeStartTimeBytes()115 public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { 116 java.lang.Object ref = autoUpgradeStartTime_; 117 if (ref instanceof java.lang.String) { 118 com.google.protobuf.ByteString b = 119 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 120 autoUpgradeStartTime_ = b; 121 return b; 122 } else { 123 return (com.google.protobuf.ByteString) ref; 124 } 125 } 126 127 public static final int DESCRIPTION_FIELD_NUMBER = 2; 128 129 @SuppressWarnings("serial") 130 private volatile java.lang.Object description_ = ""; 131 /** 132 * 133 * 134 * <pre> 135 * [Output only] This field is set when upgrades are about to commence 136 * with the description of the upgrade. 137 * </pre> 138 * 139 * <code>string description = 2;</code> 140 * 141 * @return The description. 142 */ 143 @java.lang.Override getDescription()144 public java.lang.String getDescription() { 145 java.lang.Object ref = description_; 146 if (ref instanceof java.lang.String) { 147 return (java.lang.String) ref; 148 } else { 149 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 150 java.lang.String s = bs.toStringUtf8(); 151 description_ = s; 152 return s; 153 } 154 } 155 /** 156 * 157 * 158 * <pre> 159 * [Output only] This field is set when upgrades are about to commence 160 * with the description of the upgrade. 161 * </pre> 162 * 163 * <code>string description = 2;</code> 164 * 165 * @return The bytes for description. 166 */ 167 @java.lang.Override getDescriptionBytes()168 public com.google.protobuf.ByteString getDescriptionBytes() { 169 java.lang.Object ref = description_; 170 if (ref instanceof java.lang.String) { 171 com.google.protobuf.ByteString b = 172 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 173 description_ = b; 174 return b; 175 } else { 176 return (com.google.protobuf.ByteString) ref; 177 } 178 } 179 180 private byte memoizedIsInitialized = -1; 181 182 @java.lang.Override isInitialized()183 public final boolean isInitialized() { 184 byte isInitialized = memoizedIsInitialized; 185 if (isInitialized == 1) return true; 186 if (isInitialized == 0) return false; 187 188 memoizedIsInitialized = 1; 189 return true; 190 } 191 192 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)193 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 194 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { 195 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); 196 } 197 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 198 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); 199 } 200 getUnknownFields().writeTo(output); 201 } 202 203 @java.lang.Override getSerializedSize()204 public int getSerializedSize() { 205 int size = memoizedSize; 206 if (size != -1) return size; 207 208 size = 0; 209 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { 210 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); 211 } 212 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 213 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); 214 } 215 size += getUnknownFields().getSerializedSize(); 216 memoizedSize = size; 217 return size; 218 } 219 220 @java.lang.Override equals(final java.lang.Object obj)221 public boolean equals(final java.lang.Object obj) { 222 if (obj == this) { 223 return true; 224 } 225 if (!(obj instanceof com.google.container.v1.AutoUpgradeOptions)) { 226 return super.equals(obj); 227 } 228 com.google.container.v1.AutoUpgradeOptions other = 229 (com.google.container.v1.AutoUpgradeOptions) obj; 230 231 if (!getAutoUpgradeStartTime().equals(other.getAutoUpgradeStartTime())) return false; 232 if (!getDescription().equals(other.getDescription())) return false; 233 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 234 return true; 235 } 236 237 @java.lang.Override hashCode()238 public int hashCode() { 239 if (memoizedHashCode != 0) { 240 return memoizedHashCode; 241 } 242 int hash = 41; 243 hash = (19 * hash) + getDescriptor().hashCode(); 244 hash = (37 * hash) + AUTO_UPGRADE_START_TIME_FIELD_NUMBER; 245 hash = (53 * hash) + getAutoUpgradeStartTime().hashCode(); 246 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 247 hash = (53 * hash) + getDescription().hashCode(); 248 hash = (29 * hash) + getUnknownFields().hashCode(); 249 memoizedHashCode = hash; 250 return hash; 251 } 252 parseFrom(java.nio.ByteBuffer data)253 public static com.google.container.v1.AutoUpgradeOptions parseFrom(java.nio.ByteBuffer data) 254 throws com.google.protobuf.InvalidProtocolBufferException { 255 return PARSER.parseFrom(data); 256 } 257 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)258 public static com.google.container.v1.AutoUpgradeOptions parseFrom( 259 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 260 throws com.google.protobuf.InvalidProtocolBufferException { 261 return PARSER.parseFrom(data, extensionRegistry); 262 } 263 parseFrom( com.google.protobuf.ByteString data)264 public static com.google.container.v1.AutoUpgradeOptions parseFrom( 265 com.google.protobuf.ByteString data) 266 throws com.google.protobuf.InvalidProtocolBufferException { 267 return PARSER.parseFrom(data); 268 } 269 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)270 public static com.google.container.v1.AutoUpgradeOptions parseFrom( 271 com.google.protobuf.ByteString data, 272 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 273 throws com.google.protobuf.InvalidProtocolBufferException { 274 return PARSER.parseFrom(data, extensionRegistry); 275 } 276 parseFrom(byte[] data)277 public static com.google.container.v1.AutoUpgradeOptions parseFrom(byte[] data) 278 throws com.google.protobuf.InvalidProtocolBufferException { 279 return PARSER.parseFrom(data); 280 } 281 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)282 public static com.google.container.v1.AutoUpgradeOptions parseFrom( 283 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 284 throws com.google.protobuf.InvalidProtocolBufferException { 285 return PARSER.parseFrom(data, extensionRegistry); 286 } 287 parseFrom(java.io.InputStream input)288 public static com.google.container.v1.AutoUpgradeOptions parseFrom(java.io.InputStream input) 289 throws java.io.IOException { 290 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 291 } 292 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)293 public static com.google.container.v1.AutoUpgradeOptions parseFrom( 294 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 295 throws java.io.IOException { 296 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 297 PARSER, input, extensionRegistry); 298 } 299 parseDelimitedFrom( java.io.InputStream input)300 public static com.google.container.v1.AutoUpgradeOptions parseDelimitedFrom( 301 java.io.InputStream input) throws java.io.IOException { 302 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 303 } 304 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)305 public static com.google.container.v1.AutoUpgradeOptions parseDelimitedFrom( 306 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 307 throws java.io.IOException { 308 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 309 PARSER, input, extensionRegistry); 310 } 311 parseFrom( com.google.protobuf.CodedInputStream input)312 public static com.google.container.v1.AutoUpgradeOptions parseFrom( 313 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 314 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 315 } 316 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)317 public static com.google.container.v1.AutoUpgradeOptions parseFrom( 318 com.google.protobuf.CodedInputStream input, 319 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 320 throws java.io.IOException { 321 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 322 PARSER, input, extensionRegistry); 323 } 324 325 @java.lang.Override newBuilderForType()326 public Builder newBuilderForType() { 327 return newBuilder(); 328 } 329 newBuilder()330 public static Builder newBuilder() { 331 return DEFAULT_INSTANCE.toBuilder(); 332 } 333 newBuilder(com.google.container.v1.AutoUpgradeOptions prototype)334 public static Builder newBuilder(com.google.container.v1.AutoUpgradeOptions prototype) { 335 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 336 } 337 338 @java.lang.Override toBuilder()339 public Builder toBuilder() { 340 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 341 } 342 343 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)344 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 345 Builder builder = new Builder(parent); 346 return builder; 347 } 348 /** 349 * 350 * 351 * <pre> 352 * AutoUpgradeOptions defines the set of options for the user to control how 353 * the Auto Upgrades will proceed. 354 * </pre> 355 * 356 * Protobuf type {@code google.container.v1.AutoUpgradeOptions} 357 */ 358 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 359 implements 360 // @@protoc_insertion_point(builder_implements:google.container.v1.AutoUpgradeOptions) 361 com.google.container.v1.AutoUpgradeOptionsOrBuilder { getDescriptor()362 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 363 return com.google.container.v1.ClusterServiceProto 364 .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; 365 } 366 367 @java.lang.Override 368 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()369 internalGetFieldAccessorTable() { 370 return com.google.container.v1.ClusterServiceProto 371 .internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable 372 .ensureFieldAccessorsInitialized( 373 com.google.container.v1.AutoUpgradeOptions.class, 374 com.google.container.v1.AutoUpgradeOptions.Builder.class); 375 } 376 377 // Construct using com.google.container.v1.AutoUpgradeOptions.newBuilder() Builder()378 private Builder() {} 379 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)380 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 381 super(parent); 382 } 383 384 @java.lang.Override clear()385 public Builder clear() { 386 super.clear(); 387 bitField0_ = 0; 388 autoUpgradeStartTime_ = ""; 389 description_ = ""; 390 return this; 391 } 392 393 @java.lang.Override getDescriptorForType()394 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 395 return com.google.container.v1.ClusterServiceProto 396 .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; 397 } 398 399 @java.lang.Override getDefaultInstanceForType()400 public com.google.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { 401 return com.google.container.v1.AutoUpgradeOptions.getDefaultInstance(); 402 } 403 404 @java.lang.Override build()405 public com.google.container.v1.AutoUpgradeOptions build() { 406 com.google.container.v1.AutoUpgradeOptions result = buildPartial(); 407 if (!result.isInitialized()) { 408 throw newUninitializedMessageException(result); 409 } 410 return result; 411 } 412 413 @java.lang.Override buildPartial()414 public com.google.container.v1.AutoUpgradeOptions buildPartial() { 415 com.google.container.v1.AutoUpgradeOptions result = 416 new com.google.container.v1.AutoUpgradeOptions(this); 417 if (bitField0_ != 0) { 418 buildPartial0(result); 419 } 420 onBuilt(); 421 return result; 422 } 423 buildPartial0(com.google.container.v1.AutoUpgradeOptions result)424 private void buildPartial0(com.google.container.v1.AutoUpgradeOptions result) { 425 int from_bitField0_ = bitField0_; 426 if (((from_bitField0_ & 0x00000001) != 0)) { 427 result.autoUpgradeStartTime_ = autoUpgradeStartTime_; 428 } 429 if (((from_bitField0_ & 0x00000002) != 0)) { 430 result.description_ = description_; 431 } 432 } 433 434 @java.lang.Override clone()435 public Builder clone() { 436 return super.clone(); 437 } 438 439 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)440 public Builder setField( 441 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 442 return super.setField(field, value); 443 } 444 445 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)446 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 447 return super.clearField(field); 448 } 449 450 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)451 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 452 return super.clearOneof(oneof); 453 } 454 455 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)456 public Builder setRepeatedField( 457 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 458 return super.setRepeatedField(field, index, value); 459 } 460 461 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)462 public Builder addRepeatedField( 463 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 464 return super.addRepeatedField(field, value); 465 } 466 467 @java.lang.Override mergeFrom(com.google.protobuf.Message other)468 public Builder mergeFrom(com.google.protobuf.Message other) { 469 if (other instanceof com.google.container.v1.AutoUpgradeOptions) { 470 return mergeFrom((com.google.container.v1.AutoUpgradeOptions) other); 471 } else { 472 super.mergeFrom(other); 473 return this; 474 } 475 } 476 mergeFrom(com.google.container.v1.AutoUpgradeOptions other)477 public Builder mergeFrom(com.google.container.v1.AutoUpgradeOptions other) { 478 if (other == com.google.container.v1.AutoUpgradeOptions.getDefaultInstance()) return this; 479 if (!other.getAutoUpgradeStartTime().isEmpty()) { 480 autoUpgradeStartTime_ = other.autoUpgradeStartTime_; 481 bitField0_ |= 0x00000001; 482 onChanged(); 483 } 484 if (!other.getDescription().isEmpty()) { 485 description_ = other.description_; 486 bitField0_ |= 0x00000002; 487 onChanged(); 488 } 489 this.mergeUnknownFields(other.getUnknownFields()); 490 onChanged(); 491 return this; 492 } 493 494 @java.lang.Override isInitialized()495 public final boolean isInitialized() { 496 return true; 497 } 498 499 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)500 public Builder mergeFrom( 501 com.google.protobuf.CodedInputStream input, 502 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 503 throws java.io.IOException { 504 if (extensionRegistry == null) { 505 throw new java.lang.NullPointerException(); 506 } 507 try { 508 boolean done = false; 509 while (!done) { 510 int tag = input.readTag(); 511 switch (tag) { 512 case 0: 513 done = true; 514 break; 515 case 10: 516 { 517 autoUpgradeStartTime_ = input.readStringRequireUtf8(); 518 bitField0_ |= 0x00000001; 519 break; 520 } // case 10 521 case 18: 522 { 523 description_ = input.readStringRequireUtf8(); 524 bitField0_ |= 0x00000002; 525 break; 526 } // case 18 527 default: 528 { 529 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 530 done = true; // was an endgroup tag 531 } 532 break; 533 } // default: 534 } // switch (tag) 535 } // while (!done) 536 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 537 throw e.unwrapIOException(); 538 } finally { 539 onChanged(); 540 } // finally 541 return this; 542 } 543 544 private int bitField0_; 545 546 private java.lang.Object autoUpgradeStartTime_ = ""; 547 /** 548 * 549 * 550 * <pre> 551 * [Output only] This field is set when upgrades are about to commence 552 * with the approximate start time for the upgrades, in 553 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 554 * </pre> 555 * 556 * <code>string auto_upgrade_start_time = 1;</code> 557 * 558 * @return The autoUpgradeStartTime. 559 */ getAutoUpgradeStartTime()560 public java.lang.String getAutoUpgradeStartTime() { 561 java.lang.Object ref = autoUpgradeStartTime_; 562 if (!(ref instanceof java.lang.String)) { 563 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 564 java.lang.String s = bs.toStringUtf8(); 565 autoUpgradeStartTime_ = s; 566 return s; 567 } else { 568 return (java.lang.String) ref; 569 } 570 } 571 /** 572 * 573 * 574 * <pre> 575 * [Output only] This field is set when upgrades are about to commence 576 * with the approximate start time for the upgrades, in 577 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 578 * </pre> 579 * 580 * <code>string auto_upgrade_start_time = 1;</code> 581 * 582 * @return The bytes for autoUpgradeStartTime. 583 */ getAutoUpgradeStartTimeBytes()584 public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { 585 java.lang.Object ref = autoUpgradeStartTime_; 586 if (ref instanceof String) { 587 com.google.protobuf.ByteString b = 588 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 589 autoUpgradeStartTime_ = b; 590 return b; 591 } else { 592 return (com.google.protobuf.ByteString) ref; 593 } 594 } 595 /** 596 * 597 * 598 * <pre> 599 * [Output only] This field is set when upgrades are about to commence 600 * with the approximate start time for the upgrades, in 601 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 602 * </pre> 603 * 604 * <code>string auto_upgrade_start_time = 1;</code> 605 * 606 * @param value The autoUpgradeStartTime to set. 607 * @return This builder for chaining. 608 */ setAutoUpgradeStartTime(java.lang.String value)609 public Builder setAutoUpgradeStartTime(java.lang.String value) { 610 if (value == null) { 611 throw new NullPointerException(); 612 } 613 autoUpgradeStartTime_ = value; 614 bitField0_ |= 0x00000001; 615 onChanged(); 616 return this; 617 } 618 /** 619 * 620 * 621 * <pre> 622 * [Output only] This field is set when upgrades are about to commence 623 * with the approximate start time for the upgrades, in 624 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 625 * </pre> 626 * 627 * <code>string auto_upgrade_start_time = 1;</code> 628 * 629 * @return This builder for chaining. 630 */ clearAutoUpgradeStartTime()631 public Builder clearAutoUpgradeStartTime() { 632 autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); 633 bitField0_ = (bitField0_ & ~0x00000001); 634 onChanged(); 635 return this; 636 } 637 /** 638 * 639 * 640 * <pre> 641 * [Output only] This field is set when upgrades are about to commence 642 * with the approximate start time for the upgrades, in 643 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 644 * </pre> 645 * 646 * <code>string auto_upgrade_start_time = 1;</code> 647 * 648 * @param value The bytes for autoUpgradeStartTime to set. 649 * @return This builder for chaining. 650 */ setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value)651 public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value) { 652 if (value == null) { 653 throw new NullPointerException(); 654 } 655 checkByteStringIsUtf8(value); 656 autoUpgradeStartTime_ = value; 657 bitField0_ |= 0x00000001; 658 onChanged(); 659 return this; 660 } 661 662 private java.lang.Object description_ = ""; 663 /** 664 * 665 * 666 * <pre> 667 * [Output only] This field is set when upgrades are about to commence 668 * with the description of the upgrade. 669 * </pre> 670 * 671 * <code>string description = 2;</code> 672 * 673 * @return The description. 674 */ getDescription()675 public java.lang.String getDescription() { 676 java.lang.Object ref = description_; 677 if (!(ref instanceof java.lang.String)) { 678 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 679 java.lang.String s = bs.toStringUtf8(); 680 description_ = s; 681 return s; 682 } else { 683 return (java.lang.String) ref; 684 } 685 } 686 /** 687 * 688 * 689 * <pre> 690 * [Output only] This field is set when upgrades are about to commence 691 * with the description of the upgrade. 692 * </pre> 693 * 694 * <code>string description = 2;</code> 695 * 696 * @return The bytes for description. 697 */ getDescriptionBytes()698 public com.google.protobuf.ByteString getDescriptionBytes() { 699 java.lang.Object ref = description_; 700 if (ref instanceof String) { 701 com.google.protobuf.ByteString b = 702 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 703 description_ = b; 704 return b; 705 } else { 706 return (com.google.protobuf.ByteString) ref; 707 } 708 } 709 /** 710 * 711 * 712 * <pre> 713 * [Output only] This field is set when upgrades are about to commence 714 * with the description of the upgrade. 715 * </pre> 716 * 717 * <code>string description = 2;</code> 718 * 719 * @param value The description to set. 720 * @return This builder for chaining. 721 */ setDescription(java.lang.String value)722 public Builder setDescription(java.lang.String value) { 723 if (value == null) { 724 throw new NullPointerException(); 725 } 726 description_ = value; 727 bitField0_ |= 0x00000002; 728 onChanged(); 729 return this; 730 } 731 /** 732 * 733 * 734 * <pre> 735 * [Output only] This field is set when upgrades are about to commence 736 * with the description of the upgrade. 737 * </pre> 738 * 739 * <code>string description = 2;</code> 740 * 741 * @return This builder for chaining. 742 */ clearDescription()743 public Builder clearDescription() { 744 description_ = getDefaultInstance().getDescription(); 745 bitField0_ = (bitField0_ & ~0x00000002); 746 onChanged(); 747 return this; 748 } 749 /** 750 * 751 * 752 * <pre> 753 * [Output only] This field is set when upgrades are about to commence 754 * with the description of the upgrade. 755 * </pre> 756 * 757 * <code>string description = 2;</code> 758 * 759 * @param value The bytes for description to set. 760 * @return This builder for chaining. 761 */ setDescriptionBytes(com.google.protobuf.ByteString value)762 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 763 if (value == null) { 764 throw new NullPointerException(); 765 } 766 checkByteStringIsUtf8(value); 767 description_ = value; 768 bitField0_ |= 0x00000002; 769 onChanged(); 770 return this; 771 } 772 773 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)774 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 775 return super.setUnknownFields(unknownFields); 776 } 777 778 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)779 public final Builder mergeUnknownFields( 780 final com.google.protobuf.UnknownFieldSet unknownFields) { 781 return super.mergeUnknownFields(unknownFields); 782 } 783 784 // @@protoc_insertion_point(builder_scope:google.container.v1.AutoUpgradeOptions) 785 } 786 787 // @@protoc_insertion_point(class_scope:google.container.v1.AutoUpgradeOptions) 788 private static final com.google.container.v1.AutoUpgradeOptions DEFAULT_INSTANCE; 789 790 static { 791 DEFAULT_INSTANCE = new com.google.container.v1.AutoUpgradeOptions(); 792 } 793 getDefaultInstance()794 public static com.google.container.v1.AutoUpgradeOptions getDefaultInstance() { 795 return DEFAULT_INSTANCE; 796 } 797 798 private static final com.google.protobuf.Parser<AutoUpgradeOptions> PARSER = 799 new com.google.protobuf.AbstractParser<AutoUpgradeOptions>() { 800 @java.lang.Override 801 public AutoUpgradeOptions parsePartialFrom( 802 com.google.protobuf.CodedInputStream input, 803 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 804 throws com.google.protobuf.InvalidProtocolBufferException { 805 Builder builder = newBuilder(); 806 try { 807 builder.mergeFrom(input, extensionRegistry); 808 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 809 throw e.setUnfinishedMessage(builder.buildPartial()); 810 } catch (com.google.protobuf.UninitializedMessageException e) { 811 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 812 } catch (java.io.IOException e) { 813 throw new com.google.protobuf.InvalidProtocolBufferException(e) 814 .setUnfinishedMessage(builder.buildPartial()); 815 } 816 return builder.buildPartial(); 817 } 818 }; 819 parser()820 public static com.google.protobuf.Parser<AutoUpgradeOptions> parser() { 821 return PARSER; 822 } 823 824 @java.lang.Override getParserForType()825 public com.google.protobuf.Parser<AutoUpgradeOptions> getParserForType() { 826 return PARSER; 827 } 828 829 @java.lang.Override getDefaultInstanceForType()830 public com.google.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { 831 return DEFAULT_INSTANCE; 832 } 833 } 834