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