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