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