1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Represents an SSL Policy resource. Use SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.SslPolicy} 29 */ 30 public final class SslPolicy extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SslPolicy) 33 SslPolicyOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use SslPolicy.newBuilder() to construct. SslPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private SslPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 SslPolicy()40 private SslPolicy() { 41 creationTimestamp_ = ""; 42 customFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 43 description_ = ""; 44 enabledFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 45 fingerprint_ = ""; 46 kind_ = ""; 47 minTlsVersion_ = ""; 48 name_ = ""; 49 profile_ = ""; 50 region_ = ""; 51 selfLink_ = ""; 52 warnings_ = java.util.Collections.emptyList(); 53 } 54 55 @java.lang.Override 56 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)57 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 58 return new SslPolicy(); 59 } 60 61 @java.lang.Override getUnknownFields()62 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 63 return this.unknownFields; 64 } 65 getDescriptor()66 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 67 return com.google.cloud.compute.v1.Compute 68 .internal_static_google_cloud_compute_v1_SslPolicy_descriptor; 69 } 70 71 @java.lang.Override 72 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()73 internalGetFieldAccessorTable() { 74 return com.google.cloud.compute.v1.Compute 75 .internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable 76 .ensureFieldAccessorsInitialized( 77 com.google.cloud.compute.v1.SslPolicy.class, 78 com.google.cloud.compute.v1.SslPolicy.Builder.class); 79 } 80 81 /** 82 * 83 * 84 * <pre> 85 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 86 * </pre> 87 * 88 * Protobuf enum {@code google.cloud.compute.v1.SslPolicy.MinTlsVersion} 89 */ 90 public enum MinTlsVersion implements com.google.protobuf.ProtocolMessageEnum { 91 /** 92 * 93 * 94 * <pre> 95 * A value indicating that the enum field is not set. 96 * </pre> 97 * 98 * <code>UNDEFINED_MIN_TLS_VERSION = 0;</code> 99 */ 100 UNDEFINED_MIN_TLS_VERSION(0), 101 /** 102 * 103 * 104 * <pre> 105 * TLS 1.0 106 * </pre> 107 * 108 * <code>TLS_1_0 = 33116734;</code> 109 */ 110 TLS_1_0(33116734), 111 /** 112 * 113 * 114 * <pre> 115 * TLS 1.1 116 * </pre> 117 * 118 * <code>TLS_1_1 = 33116735;</code> 119 */ 120 TLS_1_1(33116735), 121 /** 122 * 123 * 124 * <pre> 125 * TLS 1.2 126 * </pre> 127 * 128 * <code>TLS_1_2 = 33116736;</code> 129 */ 130 TLS_1_2(33116736), 131 UNRECOGNIZED(-1), 132 ; 133 134 /** 135 * 136 * 137 * <pre> 138 * A value indicating that the enum field is not set. 139 * </pre> 140 * 141 * <code>UNDEFINED_MIN_TLS_VERSION = 0;</code> 142 */ 143 public static final int UNDEFINED_MIN_TLS_VERSION_VALUE = 0; 144 /** 145 * 146 * 147 * <pre> 148 * TLS 1.0 149 * </pre> 150 * 151 * <code>TLS_1_0 = 33116734;</code> 152 */ 153 public static final int TLS_1_0_VALUE = 33116734; 154 /** 155 * 156 * 157 * <pre> 158 * TLS 1.1 159 * </pre> 160 * 161 * <code>TLS_1_1 = 33116735;</code> 162 */ 163 public static final int TLS_1_1_VALUE = 33116735; 164 /** 165 * 166 * 167 * <pre> 168 * TLS 1.2 169 * </pre> 170 * 171 * <code>TLS_1_2 = 33116736;</code> 172 */ 173 public static final int TLS_1_2_VALUE = 33116736; 174 getNumber()175 public final int getNumber() { 176 if (this == UNRECOGNIZED) { 177 throw new java.lang.IllegalArgumentException( 178 "Can't get the number of an unknown enum value."); 179 } 180 return value; 181 } 182 183 /** 184 * @param value The numeric wire value of the corresponding enum entry. 185 * @return The enum associated with the given numeric wire value. 186 * @deprecated Use {@link #forNumber(int)} instead. 187 */ 188 @java.lang.Deprecated valueOf(int value)189 public static MinTlsVersion valueOf(int value) { 190 return forNumber(value); 191 } 192 193 /** 194 * @param value The numeric wire value of the corresponding enum entry. 195 * @return The enum associated with the given numeric wire value. 196 */ forNumber(int value)197 public static MinTlsVersion forNumber(int value) { 198 switch (value) { 199 case 0: 200 return UNDEFINED_MIN_TLS_VERSION; 201 case 33116734: 202 return TLS_1_0; 203 case 33116735: 204 return TLS_1_1; 205 case 33116736: 206 return TLS_1_2; 207 default: 208 return null; 209 } 210 } 211 internalGetValueMap()212 public static com.google.protobuf.Internal.EnumLiteMap<MinTlsVersion> internalGetValueMap() { 213 return internalValueMap; 214 } 215 216 private static final com.google.protobuf.Internal.EnumLiteMap<MinTlsVersion> internalValueMap = 217 new com.google.protobuf.Internal.EnumLiteMap<MinTlsVersion>() { 218 public MinTlsVersion findValueByNumber(int number) { 219 return MinTlsVersion.forNumber(number); 220 } 221 }; 222 getValueDescriptor()223 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 224 if (this == UNRECOGNIZED) { 225 throw new java.lang.IllegalStateException( 226 "Can't get the descriptor of an unrecognized enum value."); 227 } 228 return getDescriptor().getValues().get(ordinal()); 229 } 230 getDescriptorForType()231 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 232 return getDescriptor(); 233 } 234 getDescriptor()235 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 236 return com.google.cloud.compute.v1.SslPolicy.getDescriptor().getEnumTypes().get(0); 237 } 238 239 private static final MinTlsVersion[] VALUES = values(); 240 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)241 public static MinTlsVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 242 if (desc.getType() != getDescriptor()) { 243 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 244 } 245 if (desc.getIndex() == -1) { 246 return UNRECOGNIZED; 247 } 248 return VALUES[desc.getIndex()]; 249 } 250 251 private final int value; 252 MinTlsVersion(int value)253 private MinTlsVersion(int value) { 254 this.value = value; 255 } 256 257 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SslPolicy.MinTlsVersion) 258 } 259 260 /** 261 * 262 * 263 * <pre> 264 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 265 * </pre> 266 * 267 * Protobuf enum {@code google.cloud.compute.v1.SslPolicy.Profile} 268 */ 269 public enum Profile implements com.google.protobuf.ProtocolMessageEnum { 270 /** 271 * 272 * 273 * <pre> 274 * A value indicating that the enum field is not set. 275 * </pre> 276 * 277 * <code>UNDEFINED_PROFILE = 0;</code> 278 */ 279 UNDEFINED_PROFILE(0), 280 /** 281 * 282 * 283 * <pre> 284 * Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer. 285 * </pre> 286 * 287 * <code>COMPATIBLE = 179357396;</code> 288 */ 289 COMPATIBLE(179357396), 290 /** 291 * 292 * 293 * <pre> 294 * Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field. 295 * </pre> 296 * 297 * <code>CUSTOM = 388595569;</code> 298 */ 299 CUSTOM(388595569), 300 /** 301 * 302 * 303 * <pre> 304 * Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer. 305 * </pre> 306 * 307 * <code>MODERN = 132013855;</code> 308 */ 309 MODERN(132013855), 310 /** 311 * 312 * 313 * <pre> 314 * Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements. 315 * </pre> 316 * 317 * <code>RESTRICTED = 261551195;</code> 318 */ 319 RESTRICTED(261551195), 320 UNRECOGNIZED(-1), 321 ; 322 323 /** 324 * 325 * 326 * <pre> 327 * A value indicating that the enum field is not set. 328 * </pre> 329 * 330 * <code>UNDEFINED_PROFILE = 0;</code> 331 */ 332 public static final int UNDEFINED_PROFILE_VALUE = 0; 333 /** 334 * 335 * 336 * <pre> 337 * Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer. 338 * </pre> 339 * 340 * <code>COMPATIBLE = 179357396;</code> 341 */ 342 public static final int COMPATIBLE_VALUE = 179357396; 343 /** 344 * 345 * 346 * <pre> 347 * Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field. 348 * </pre> 349 * 350 * <code>CUSTOM = 388595569;</code> 351 */ 352 public static final int CUSTOM_VALUE = 388595569; 353 /** 354 * 355 * 356 * <pre> 357 * Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer. 358 * </pre> 359 * 360 * <code>MODERN = 132013855;</code> 361 */ 362 public static final int MODERN_VALUE = 132013855; 363 /** 364 * 365 * 366 * <pre> 367 * Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements. 368 * </pre> 369 * 370 * <code>RESTRICTED = 261551195;</code> 371 */ 372 public static final int RESTRICTED_VALUE = 261551195; 373 getNumber()374 public final int getNumber() { 375 if (this == UNRECOGNIZED) { 376 throw new java.lang.IllegalArgumentException( 377 "Can't get the number of an unknown enum value."); 378 } 379 return value; 380 } 381 382 /** 383 * @param value The numeric wire value of the corresponding enum entry. 384 * @return The enum associated with the given numeric wire value. 385 * @deprecated Use {@link #forNumber(int)} instead. 386 */ 387 @java.lang.Deprecated valueOf(int value)388 public static Profile valueOf(int value) { 389 return forNumber(value); 390 } 391 392 /** 393 * @param value The numeric wire value of the corresponding enum entry. 394 * @return The enum associated with the given numeric wire value. 395 */ forNumber(int value)396 public static Profile forNumber(int value) { 397 switch (value) { 398 case 0: 399 return UNDEFINED_PROFILE; 400 case 179357396: 401 return COMPATIBLE; 402 case 388595569: 403 return CUSTOM; 404 case 132013855: 405 return MODERN; 406 case 261551195: 407 return RESTRICTED; 408 default: 409 return null; 410 } 411 } 412 internalGetValueMap()413 public static com.google.protobuf.Internal.EnumLiteMap<Profile> internalGetValueMap() { 414 return internalValueMap; 415 } 416 417 private static final com.google.protobuf.Internal.EnumLiteMap<Profile> internalValueMap = 418 new com.google.protobuf.Internal.EnumLiteMap<Profile>() { 419 public Profile findValueByNumber(int number) { 420 return Profile.forNumber(number); 421 } 422 }; 423 getValueDescriptor()424 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 425 if (this == UNRECOGNIZED) { 426 throw new java.lang.IllegalStateException( 427 "Can't get the descriptor of an unrecognized enum value."); 428 } 429 return getDescriptor().getValues().get(ordinal()); 430 } 431 getDescriptorForType()432 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 433 return getDescriptor(); 434 } 435 getDescriptor()436 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 437 return com.google.cloud.compute.v1.SslPolicy.getDescriptor().getEnumTypes().get(1); 438 } 439 440 private static final Profile[] VALUES = values(); 441 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)442 public static Profile valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 443 if (desc.getType() != getDescriptor()) { 444 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 445 } 446 if (desc.getIndex() == -1) { 447 return UNRECOGNIZED; 448 } 449 return VALUES[desc.getIndex()]; 450 } 451 452 private final int value; 453 Profile(int value)454 private Profile(int value) { 455 this.value = value; 456 } 457 458 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SslPolicy.Profile) 459 } 460 461 private int bitField0_; 462 public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; 463 464 @SuppressWarnings("serial") 465 private volatile java.lang.Object creationTimestamp_ = ""; 466 /** 467 * 468 * 469 * <pre> 470 * [Output Only] Creation timestamp in RFC3339 text format. 471 * </pre> 472 * 473 * <code>optional string creation_timestamp = 30525366;</code> 474 * 475 * @return Whether the creationTimestamp field is set. 476 */ 477 @java.lang.Override hasCreationTimestamp()478 public boolean hasCreationTimestamp() { 479 return ((bitField0_ & 0x00000001) != 0); 480 } 481 /** 482 * 483 * 484 * <pre> 485 * [Output Only] Creation timestamp in RFC3339 text format. 486 * </pre> 487 * 488 * <code>optional string creation_timestamp = 30525366;</code> 489 * 490 * @return The creationTimestamp. 491 */ 492 @java.lang.Override getCreationTimestamp()493 public java.lang.String getCreationTimestamp() { 494 java.lang.Object ref = creationTimestamp_; 495 if (ref instanceof java.lang.String) { 496 return (java.lang.String) ref; 497 } else { 498 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 499 java.lang.String s = bs.toStringUtf8(); 500 creationTimestamp_ = s; 501 return s; 502 } 503 } 504 /** 505 * 506 * 507 * <pre> 508 * [Output Only] Creation timestamp in RFC3339 text format. 509 * </pre> 510 * 511 * <code>optional string creation_timestamp = 30525366;</code> 512 * 513 * @return The bytes for creationTimestamp. 514 */ 515 @java.lang.Override getCreationTimestampBytes()516 public com.google.protobuf.ByteString getCreationTimestampBytes() { 517 java.lang.Object ref = creationTimestamp_; 518 if (ref instanceof java.lang.String) { 519 com.google.protobuf.ByteString b = 520 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 521 creationTimestamp_ = b; 522 return b; 523 } else { 524 return (com.google.protobuf.ByteString) ref; 525 } 526 } 527 528 public static final int CUSTOM_FEATURES_FIELD_NUMBER = 34789707; 529 530 @SuppressWarnings("serial") 531 private com.google.protobuf.LazyStringList customFeatures_; 532 /** 533 * 534 * 535 * <pre> 536 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 537 * </pre> 538 * 539 * <code>repeated string custom_features = 34789707;</code> 540 * 541 * @return A list containing the customFeatures. 542 */ getCustomFeaturesList()543 public com.google.protobuf.ProtocolStringList getCustomFeaturesList() { 544 return customFeatures_; 545 } 546 /** 547 * 548 * 549 * <pre> 550 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 551 * </pre> 552 * 553 * <code>repeated string custom_features = 34789707;</code> 554 * 555 * @return The count of customFeatures. 556 */ getCustomFeaturesCount()557 public int getCustomFeaturesCount() { 558 return customFeatures_.size(); 559 } 560 /** 561 * 562 * 563 * <pre> 564 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 565 * </pre> 566 * 567 * <code>repeated string custom_features = 34789707;</code> 568 * 569 * @param index The index of the element to return. 570 * @return The customFeatures at the given index. 571 */ getCustomFeatures(int index)572 public java.lang.String getCustomFeatures(int index) { 573 return customFeatures_.get(index); 574 } 575 /** 576 * 577 * 578 * <pre> 579 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 580 * </pre> 581 * 582 * <code>repeated string custom_features = 34789707;</code> 583 * 584 * @param index The index of the value to return. 585 * @return The bytes of the customFeatures at the given index. 586 */ getCustomFeaturesBytes(int index)587 public com.google.protobuf.ByteString getCustomFeaturesBytes(int index) { 588 return customFeatures_.getByteString(index); 589 } 590 591 public static final int DESCRIPTION_FIELD_NUMBER = 422937596; 592 593 @SuppressWarnings("serial") 594 private volatile java.lang.Object description_ = ""; 595 /** 596 * 597 * 598 * <pre> 599 * An optional description of this resource. Provide this property when you create the resource. 600 * </pre> 601 * 602 * <code>optional string description = 422937596;</code> 603 * 604 * @return Whether the description field is set. 605 */ 606 @java.lang.Override hasDescription()607 public boolean hasDescription() { 608 return ((bitField0_ & 0x00000002) != 0); 609 } 610 /** 611 * 612 * 613 * <pre> 614 * An optional description of this resource. Provide this property when you create the resource. 615 * </pre> 616 * 617 * <code>optional string description = 422937596;</code> 618 * 619 * @return The description. 620 */ 621 @java.lang.Override getDescription()622 public java.lang.String getDescription() { 623 java.lang.Object ref = description_; 624 if (ref instanceof java.lang.String) { 625 return (java.lang.String) ref; 626 } else { 627 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 628 java.lang.String s = bs.toStringUtf8(); 629 description_ = s; 630 return s; 631 } 632 } 633 /** 634 * 635 * 636 * <pre> 637 * An optional description of this resource. Provide this property when you create the resource. 638 * </pre> 639 * 640 * <code>optional string description = 422937596;</code> 641 * 642 * @return The bytes for description. 643 */ 644 @java.lang.Override getDescriptionBytes()645 public com.google.protobuf.ByteString getDescriptionBytes() { 646 java.lang.Object ref = description_; 647 if (ref instanceof java.lang.String) { 648 com.google.protobuf.ByteString b = 649 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 650 description_ = b; 651 return b; 652 } else { 653 return (com.google.protobuf.ByteString) ref; 654 } 655 } 656 657 public static final int ENABLED_FEATURES_FIELD_NUMBER = 469017467; 658 659 @SuppressWarnings("serial") 660 private com.google.protobuf.LazyStringList enabledFeatures_; 661 /** 662 * 663 * 664 * <pre> 665 * [Output Only] The list of features enabled in the SSL policy. 666 * </pre> 667 * 668 * <code>repeated string enabled_features = 469017467;</code> 669 * 670 * @return A list containing the enabledFeatures. 671 */ getEnabledFeaturesList()672 public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { 673 return enabledFeatures_; 674 } 675 /** 676 * 677 * 678 * <pre> 679 * [Output Only] The list of features enabled in the SSL policy. 680 * </pre> 681 * 682 * <code>repeated string enabled_features = 469017467;</code> 683 * 684 * @return The count of enabledFeatures. 685 */ getEnabledFeaturesCount()686 public int getEnabledFeaturesCount() { 687 return enabledFeatures_.size(); 688 } 689 /** 690 * 691 * 692 * <pre> 693 * [Output Only] The list of features enabled in the SSL policy. 694 * </pre> 695 * 696 * <code>repeated string enabled_features = 469017467;</code> 697 * 698 * @param index The index of the element to return. 699 * @return The enabledFeatures at the given index. 700 */ getEnabledFeatures(int index)701 public java.lang.String getEnabledFeatures(int index) { 702 return enabledFeatures_.get(index); 703 } 704 /** 705 * 706 * 707 * <pre> 708 * [Output Only] The list of features enabled in the SSL policy. 709 * </pre> 710 * 711 * <code>repeated string enabled_features = 469017467;</code> 712 * 713 * @param index The index of the value to return. 714 * @return The bytes of the enabledFeatures at the given index. 715 */ getEnabledFeaturesBytes(int index)716 public com.google.protobuf.ByteString getEnabledFeaturesBytes(int index) { 717 return enabledFeatures_.getByteString(index); 718 } 719 720 public static final int FINGERPRINT_FIELD_NUMBER = 234678500; 721 722 @SuppressWarnings("serial") 723 private volatile java.lang.Object fingerprint_ = ""; 724 /** 725 * 726 * 727 * <pre> 728 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 729 * </pre> 730 * 731 * <code>optional string fingerprint = 234678500;</code> 732 * 733 * @return Whether the fingerprint field is set. 734 */ 735 @java.lang.Override hasFingerprint()736 public boolean hasFingerprint() { 737 return ((bitField0_ & 0x00000004) != 0); 738 } 739 /** 740 * 741 * 742 * <pre> 743 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 744 * </pre> 745 * 746 * <code>optional string fingerprint = 234678500;</code> 747 * 748 * @return The fingerprint. 749 */ 750 @java.lang.Override getFingerprint()751 public java.lang.String getFingerprint() { 752 java.lang.Object ref = fingerprint_; 753 if (ref instanceof java.lang.String) { 754 return (java.lang.String) ref; 755 } else { 756 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 757 java.lang.String s = bs.toStringUtf8(); 758 fingerprint_ = s; 759 return s; 760 } 761 } 762 /** 763 * 764 * 765 * <pre> 766 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 767 * </pre> 768 * 769 * <code>optional string fingerprint = 234678500;</code> 770 * 771 * @return The bytes for fingerprint. 772 */ 773 @java.lang.Override getFingerprintBytes()774 public com.google.protobuf.ByteString getFingerprintBytes() { 775 java.lang.Object ref = fingerprint_; 776 if (ref instanceof java.lang.String) { 777 com.google.protobuf.ByteString b = 778 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 779 fingerprint_ = b; 780 return b; 781 } else { 782 return (com.google.protobuf.ByteString) ref; 783 } 784 } 785 786 public static final int ID_FIELD_NUMBER = 3355; 787 private long id_ = 0L; 788 /** 789 * 790 * 791 * <pre> 792 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 793 * </pre> 794 * 795 * <code>optional uint64 id = 3355;</code> 796 * 797 * @return Whether the id field is set. 798 */ 799 @java.lang.Override hasId()800 public boolean hasId() { 801 return ((bitField0_ & 0x00000008) != 0); 802 } 803 /** 804 * 805 * 806 * <pre> 807 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 808 * </pre> 809 * 810 * <code>optional uint64 id = 3355;</code> 811 * 812 * @return The id. 813 */ 814 @java.lang.Override getId()815 public long getId() { 816 return id_; 817 } 818 819 public static final int KIND_FIELD_NUMBER = 3292052; 820 821 @SuppressWarnings("serial") 822 private volatile java.lang.Object kind_ = ""; 823 /** 824 * 825 * 826 * <pre> 827 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 828 * </pre> 829 * 830 * <code>optional string kind = 3292052;</code> 831 * 832 * @return Whether the kind field is set. 833 */ 834 @java.lang.Override hasKind()835 public boolean hasKind() { 836 return ((bitField0_ & 0x00000010) != 0); 837 } 838 /** 839 * 840 * 841 * <pre> 842 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 843 * </pre> 844 * 845 * <code>optional string kind = 3292052;</code> 846 * 847 * @return The kind. 848 */ 849 @java.lang.Override getKind()850 public java.lang.String getKind() { 851 java.lang.Object ref = kind_; 852 if (ref instanceof java.lang.String) { 853 return (java.lang.String) ref; 854 } else { 855 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 856 java.lang.String s = bs.toStringUtf8(); 857 kind_ = s; 858 return s; 859 } 860 } 861 /** 862 * 863 * 864 * <pre> 865 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 866 * </pre> 867 * 868 * <code>optional string kind = 3292052;</code> 869 * 870 * @return The bytes for kind. 871 */ 872 @java.lang.Override getKindBytes()873 public com.google.protobuf.ByteString getKindBytes() { 874 java.lang.Object ref = kind_; 875 if (ref instanceof java.lang.String) { 876 com.google.protobuf.ByteString b = 877 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 878 kind_ = b; 879 return b; 880 } else { 881 return (com.google.protobuf.ByteString) ref; 882 } 883 } 884 885 public static final int MIN_TLS_VERSION_FIELD_NUMBER = 8155943; 886 887 @SuppressWarnings("serial") 888 private volatile java.lang.Object minTlsVersion_ = ""; 889 /** 890 * 891 * 892 * <pre> 893 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 894 * Check the MinTlsVersion enum for the list of possible values. 895 * </pre> 896 * 897 * <code>optional string min_tls_version = 8155943;</code> 898 * 899 * @return Whether the minTlsVersion field is set. 900 */ 901 @java.lang.Override hasMinTlsVersion()902 public boolean hasMinTlsVersion() { 903 return ((bitField0_ & 0x00000020) != 0); 904 } 905 /** 906 * 907 * 908 * <pre> 909 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 910 * Check the MinTlsVersion enum for the list of possible values. 911 * </pre> 912 * 913 * <code>optional string min_tls_version = 8155943;</code> 914 * 915 * @return The minTlsVersion. 916 */ 917 @java.lang.Override getMinTlsVersion()918 public java.lang.String getMinTlsVersion() { 919 java.lang.Object ref = minTlsVersion_; 920 if (ref instanceof java.lang.String) { 921 return (java.lang.String) ref; 922 } else { 923 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 924 java.lang.String s = bs.toStringUtf8(); 925 minTlsVersion_ = s; 926 return s; 927 } 928 } 929 /** 930 * 931 * 932 * <pre> 933 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 934 * Check the MinTlsVersion enum for the list of possible values. 935 * </pre> 936 * 937 * <code>optional string min_tls_version = 8155943;</code> 938 * 939 * @return The bytes for minTlsVersion. 940 */ 941 @java.lang.Override getMinTlsVersionBytes()942 public com.google.protobuf.ByteString getMinTlsVersionBytes() { 943 java.lang.Object ref = minTlsVersion_; 944 if (ref instanceof java.lang.String) { 945 com.google.protobuf.ByteString b = 946 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 947 minTlsVersion_ = b; 948 return b; 949 } else { 950 return (com.google.protobuf.ByteString) ref; 951 } 952 } 953 954 public static final int NAME_FIELD_NUMBER = 3373707; 955 956 @SuppressWarnings("serial") 957 private volatile java.lang.Object name_ = ""; 958 /** 959 * 960 * 961 * <pre> 962 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 963 * </pre> 964 * 965 * <code>optional string name = 3373707;</code> 966 * 967 * @return Whether the name field is set. 968 */ 969 @java.lang.Override hasName()970 public boolean hasName() { 971 return ((bitField0_ & 0x00000040) != 0); 972 } 973 /** 974 * 975 * 976 * <pre> 977 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 978 * </pre> 979 * 980 * <code>optional string name = 3373707;</code> 981 * 982 * @return The name. 983 */ 984 @java.lang.Override getName()985 public java.lang.String getName() { 986 java.lang.Object ref = name_; 987 if (ref instanceof java.lang.String) { 988 return (java.lang.String) ref; 989 } else { 990 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 991 java.lang.String s = bs.toStringUtf8(); 992 name_ = s; 993 return s; 994 } 995 } 996 /** 997 * 998 * 999 * <pre> 1000 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1001 * </pre> 1002 * 1003 * <code>optional string name = 3373707;</code> 1004 * 1005 * @return The bytes for name. 1006 */ 1007 @java.lang.Override getNameBytes()1008 public com.google.protobuf.ByteString getNameBytes() { 1009 java.lang.Object ref = name_; 1010 if (ref instanceof java.lang.String) { 1011 com.google.protobuf.ByteString b = 1012 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1013 name_ = b; 1014 return b; 1015 } else { 1016 return (com.google.protobuf.ByteString) ref; 1017 } 1018 } 1019 1020 public static final int PROFILE_FIELD_NUMBER = 227445161; 1021 1022 @SuppressWarnings("serial") 1023 private volatile java.lang.Object profile_ = ""; 1024 /** 1025 * 1026 * 1027 * <pre> 1028 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 1029 * Check the Profile enum for the list of possible values. 1030 * </pre> 1031 * 1032 * <code>optional string profile = 227445161;</code> 1033 * 1034 * @return Whether the profile field is set. 1035 */ 1036 @java.lang.Override hasProfile()1037 public boolean hasProfile() { 1038 return ((bitField0_ & 0x00000080) != 0); 1039 } 1040 /** 1041 * 1042 * 1043 * <pre> 1044 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 1045 * Check the Profile enum for the list of possible values. 1046 * </pre> 1047 * 1048 * <code>optional string profile = 227445161;</code> 1049 * 1050 * @return The profile. 1051 */ 1052 @java.lang.Override getProfile()1053 public java.lang.String getProfile() { 1054 java.lang.Object ref = profile_; 1055 if (ref instanceof java.lang.String) { 1056 return (java.lang.String) ref; 1057 } else { 1058 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1059 java.lang.String s = bs.toStringUtf8(); 1060 profile_ = s; 1061 return s; 1062 } 1063 } 1064 /** 1065 * 1066 * 1067 * <pre> 1068 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 1069 * Check the Profile enum for the list of possible values. 1070 * </pre> 1071 * 1072 * <code>optional string profile = 227445161;</code> 1073 * 1074 * @return The bytes for profile. 1075 */ 1076 @java.lang.Override getProfileBytes()1077 public com.google.protobuf.ByteString getProfileBytes() { 1078 java.lang.Object ref = profile_; 1079 if (ref instanceof java.lang.String) { 1080 com.google.protobuf.ByteString b = 1081 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1082 profile_ = b; 1083 return b; 1084 } else { 1085 return (com.google.protobuf.ByteString) ref; 1086 } 1087 } 1088 1089 public static final int REGION_FIELD_NUMBER = 138946292; 1090 1091 @SuppressWarnings("serial") 1092 private volatile java.lang.Object region_ = ""; 1093 /** 1094 * 1095 * 1096 * <pre> 1097 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 1098 * </pre> 1099 * 1100 * <code>optional string region = 138946292;</code> 1101 * 1102 * @return Whether the region field is set. 1103 */ 1104 @java.lang.Override hasRegion()1105 public boolean hasRegion() { 1106 return ((bitField0_ & 0x00000100) != 0); 1107 } 1108 /** 1109 * 1110 * 1111 * <pre> 1112 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 1113 * </pre> 1114 * 1115 * <code>optional string region = 138946292;</code> 1116 * 1117 * @return The region. 1118 */ 1119 @java.lang.Override getRegion()1120 public java.lang.String getRegion() { 1121 java.lang.Object ref = region_; 1122 if (ref instanceof java.lang.String) { 1123 return (java.lang.String) ref; 1124 } else { 1125 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1126 java.lang.String s = bs.toStringUtf8(); 1127 region_ = s; 1128 return s; 1129 } 1130 } 1131 /** 1132 * 1133 * 1134 * <pre> 1135 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 1136 * </pre> 1137 * 1138 * <code>optional string region = 138946292;</code> 1139 * 1140 * @return The bytes for region. 1141 */ 1142 @java.lang.Override getRegionBytes()1143 public com.google.protobuf.ByteString getRegionBytes() { 1144 java.lang.Object ref = region_; 1145 if (ref instanceof java.lang.String) { 1146 com.google.protobuf.ByteString b = 1147 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1148 region_ = b; 1149 return b; 1150 } else { 1151 return (com.google.protobuf.ByteString) ref; 1152 } 1153 } 1154 1155 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 1156 1157 @SuppressWarnings("serial") 1158 private volatile java.lang.Object selfLink_ = ""; 1159 /** 1160 * 1161 * 1162 * <pre> 1163 * [Output Only] Server-defined URL for the resource. 1164 * </pre> 1165 * 1166 * <code>optional string self_link = 456214797;</code> 1167 * 1168 * @return Whether the selfLink field is set. 1169 */ 1170 @java.lang.Override hasSelfLink()1171 public boolean hasSelfLink() { 1172 return ((bitField0_ & 0x00000200) != 0); 1173 } 1174 /** 1175 * 1176 * 1177 * <pre> 1178 * [Output Only] Server-defined URL for the resource. 1179 * </pre> 1180 * 1181 * <code>optional string self_link = 456214797;</code> 1182 * 1183 * @return The selfLink. 1184 */ 1185 @java.lang.Override getSelfLink()1186 public java.lang.String getSelfLink() { 1187 java.lang.Object ref = selfLink_; 1188 if (ref instanceof java.lang.String) { 1189 return (java.lang.String) ref; 1190 } else { 1191 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1192 java.lang.String s = bs.toStringUtf8(); 1193 selfLink_ = s; 1194 return s; 1195 } 1196 } 1197 /** 1198 * 1199 * 1200 * <pre> 1201 * [Output Only] Server-defined URL for the resource. 1202 * </pre> 1203 * 1204 * <code>optional string self_link = 456214797;</code> 1205 * 1206 * @return The bytes for selfLink. 1207 */ 1208 @java.lang.Override getSelfLinkBytes()1209 public com.google.protobuf.ByteString getSelfLinkBytes() { 1210 java.lang.Object ref = selfLink_; 1211 if (ref instanceof java.lang.String) { 1212 com.google.protobuf.ByteString b = 1213 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1214 selfLink_ = b; 1215 return b; 1216 } else { 1217 return (com.google.protobuf.ByteString) ref; 1218 } 1219 } 1220 1221 public static final int WARNINGS_FIELD_NUMBER = 498091095; 1222 1223 @SuppressWarnings("serial") 1224 private java.util.List<com.google.cloud.compute.v1.Warnings> warnings_; 1225 /** 1226 * 1227 * 1228 * <pre> 1229 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 1230 * </pre> 1231 * 1232 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1233 */ 1234 @java.lang.Override getWarningsList()1235 public java.util.List<com.google.cloud.compute.v1.Warnings> getWarningsList() { 1236 return warnings_; 1237 } 1238 /** 1239 * 1240 * 1241 * <pre> 1242 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 1243 * </pre> 1244 * 1245 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1246 */ 1247 @java.lang.Override 1248 public java.util.List<? extends com.google.cloud.compute.v1.WarningsOrBuilder> getWarningsOrBuilderList()1249 getWarningsOrBuilderList() { 1250 return warnings_; 1251 } 1252 /** 1253 * 1254 * 1255 * <pre> 1256 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 1257 * </pre> 1258 * 1259 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1260 */ 1261 @java.lang.Override getWarningsCount()1262 public int getWarningsCount() { 1263 return warnings_.size(); 1264 } 1265 /** 1266 * 1267 * 1268 * <pre> 1269 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 1270 * </pre> 1271 * 1272 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1273 */ 1274 @java.lang.Override getWarnings(int index)1275 public com.google.cloud.compute.v1.Warnings getWarnings(int index) { 1276 return warnings_.get(index); 1277 } 1278 /** 1279 * 1280 * 1281 * <pre> 1282 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 1283 * </pre> 1284 * 1285 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 1286 */ 1287 @java.lang.Override getWarningsOrBuilder(int index)1288 public com.google.cloud.compute.v1.WarningsOrBuilder getWarningsOrBuilder(int index) { 1289 return warnings_.get(index); 1290 } 1291 1292 private byte memoizedIsInitialized = -1; 1293 1294 @java.lang.Override isInitialized()1295 public final boolean isInitialized() { 1296 byte isInitialized = memoizedIsInitialized; 1297 if (isInitialized == 1) return true; 1298 if (isInitialized == 0) return false; 1299 1300 memoizedIsInitialized = 1; 1301 return true; 1302 } 1303 1304 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1305 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1306 if (((bitField0_ & 0x00000008) != 0)) { 1307 output.writeUInt64(3355, id_); 1308 } 1309 if (((bitField0_ & 0x00000010) != 0)) { 1310 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 1311 } 1312 if (((bitField0_ & 0x00000040) != 0)) { 1313 com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); 1314 } 1315 if (((bitField0_ & 0x00000020) != 0)) { 1316 com.google.protobuf.GeneratedMessageV3.writeString(output, 8155943, minTlsVersion_); 1317 } 1318 if (((bitField0_ & 0x00000001) != 0)) { 1319 com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); 1320 } 1321 for (int i = 0; i < customFeatures_.size(); i++) { 1322 com.google.protobuf.GeneratedMessageV3.writeString( 1323 output, 34789707, customFeatures_.getRaw(i)); 1324 } 1325 if (((bitField0_ & 0x00000100) != 0)) { 1326 com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); 1327 } 1328 if (((bitField0_ & 0x00000080) != 0)) { 1329 com.google.protobuf.GeneratedMessageV3.writeString(output, 227445161, profile_); 1330 } 1331 if (((bitField0_ & 0x00000004) != 0)) { 1332 com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_); 1333 } 1334 if (((bitField0_ & 0x00000002) != 0)) { 1335 com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); 1336 } 1337 if (((bitField0_ & 0x00000200) != 0)) { 1338 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 1339 } 1340 for (int i = 0; i < enabledFeatures_.size(); i++) { 1341 com.google.protobuf.GeneratedMessageV3.writeString( 1342 output, 469017467, enabledFeatures_.getRaw(i)); 1343 } 1344 for (int i = 0; i < warnings_.size(); i++) { 1345 output.writeMessage(498091095, warnings_.get(i)); 1346 } 1347 getUnknownFields().writeTo(output); 1348 } 1349 1350 @java.lang.Override getSerializedSize()1351 public int getSerializedSize() { 1352 int size = memoizedSize; 1353 if (size != -1) return size; 1354 1355 size = 0; 1356 if (((bitField0_ & 0x00000008) != 0)) { 1357 size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); 1358 } 1359 if (((bitField0_ & 0x00000010) != 0)) { 1360 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 1361 } 1362 if (((bitField0_ & 0x00000040) != 0)) { 1363 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); 1364 } 1365 if (((bitField0_ & 0x00000020) != 0)) { 1366 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8155943, minTlsVersion_); 1367 } 1368 if (((bitField0_ & 0x00000001) != 0)) { 1369 size += 1370 com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); 1371 } 1372 { 1373 int dataSize = 0; 1374 for (int i = 0; i < customFeatures_.size(); i++) { 1375 dataSize += computeStringSizeNoTag(customFeatures_.getRaw(i)); 1376 } 1377 size += dataSize; 1378 size += 5 * getCustomFeaturesList().size(); 1379 } 1380 if (((bitField0_ & 0x00000100) != 0)) { 1381 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); 1382 } 1383 if (((bitField0_ & 0x00000080) != 0)) { 1384 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227445161, profile_); 1385 } 1386 if (((bitField0_ & 0x00000004) != 0)) { 1387 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_); 1388 } 1389 if (((bitField0_ & 0x00000002) != 0)) { 1390 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); 1391 } 1392 if (((bitField0_ & 0x00000200) != 0)) { 1393 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 1394 } 1395 { 1396 int dataSize = 0; 1397 for (int i = 0; i < enabledFeatures_.size(); i++) { 1398 dataSize += computeStringSizeNoTag(enabledFeatures_.getRaw(i)); 1399 } 1400 size += dataSize; 1401 size += 5 * getEnabledFeaturesList().size(); 1402 } 1403 for (int i = 0; i < warnings_.size(); i++) { 1404 size += com.google.protobuf.CodedOutputStream.computeMessageSize(498091095, warnings_.get(i)); 1405 } 1406 size += getUnknownFields().getSerializedSize(); 1407 memoizedSize = size; 1408 return size; 1409 } 1410 1411 @java.lang.Override equals(final java.lang.Object obj)1412 public boolean equals(final java.lang.Object obj) { 1413 if (obj == this) { 1414 return true; 1415 } 1416 if (!(obj instanceof com.google.cloud.compute.v1.SslPolicy)) { 1417 return super.equals(obj); 1418 } 1419 com.google.cloud.compute.v1.SslPolicy other = (com.google.cloud.compute.v1.SslPolicy) obj; 1420 1421 if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; 1422 if (hasCreationTimestamp()) { 1423 if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; 1424 } 1425 if (!getCustomFeaturesList().equals(other.getCustomFeaturesList())) return false; 1426 if (hasDescription() != other.hasDescription()) return false; 1427 if (hasDescription()) { 1428 if (!getDescription().equals(other.getDescription())) return false; 1429 } 1430 if (!getEnabledFeaturesList().equals(other.getEnabledFeaturesList())) return false; 1431 if (hasFingerprint() != other.hasFingerprint()) return false; 1432 if (hasFingerprint()) { 1433 if (!getFingerprint().equals(other.getFingerprint())) return false; 1434 } 1435 if (hasId() != other.hasId()) return false; 1436 if (hasId()) { 1437 if (getId() != other.getId()) return false; 1438 } 1439 if (hasKind() != other.hasKind()) return false; 1440 if (hasKind()) { 1441 if (!getKind().equals(other.getKind())) return false; 1442 } 1443 if (hasMinTlsVersion() != other.hasMinTlsVersion()) return false; 1444 if (hasMinTlsVersion()) { 1445 if (!getMinTlsVersion().equals(other.getMinTlsVersion())) return false; 1446 } 1447 if (hasName() != other.hasName()) return false; 1448 if (hasName()) { 1449 if (!getName().equals(other.getName())) return false; 1450 } 1451 if (hasProfile() != other.hasProfile()) return false; 1452 if (hasProfile()) { 1453 if (!getProfile().equals(other.getProfile())) return false; 1454 } 1455 if (hasRegion() != other.hasRegion()) return false; 1456 if (hasRegion()) { 1457 if (!getRegion().equals(other.getRegion())) return false; 1458 } 1459 if (hasSelfLink() != other.hasSelfLink()) return false; 1460 if (hasSelfLink()) { 1461 if (!getSelfLink().equals(other.getSelfLink())) return false; 1462 } 1463 if (!getWarningsList().equals(other.getWarningsList())) return false; 1464 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1465 return true; 1466 } 1467 1468 @java.lang.Override hashCode()1469 public int hashCode() { 1470 if (memoizedHashCode != 0) { 1471 return memoizedHashCode; 1472 } 1473 int hash = 41; 1474 hash = (19 * hash) + getDescriptor().hashCode(); 1475 if (hasCreationTimestamp()) { 1476 hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; 1477 hash = (53 * hash) + getCreationTimestamp().hashCode(); 1478 } 1479 if (getCustomFeaturesCount() > 0) { 1480 hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; 1481 hash = (53 * hash) + getCustomFeaturesList().hashCode(); 1482 } 1483 if (hasDescription()) { 1484 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 1485 hash = (53 * hash) + getDescription().hashCode(); 1486 } 1487 if (getEnabledFeaturesCount() > 0) { 1488 hash = (37 * hash) + ENABLED_FEATURES_FIELD_NUMBER; 1489 hash = (53 * hash) + getEnabledFeaturesList().hashCode(); 1490 } 1491 if (hasFingerprint()) { 1492 hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; 1493 hash = (53 * hash) + getFingerprint().hashCode(); 1494 } 1495 if (hasId()) { 1496 hash = (37 * hash) + ID_FIELD_NUMBER; 1497 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); 1498 } 1499 if (hasKind()) { 1500 hash = (37 * hash) + KIND_FIELD_NUMBER; 1501 hash = (53 * hash) + getKind().hashCode(); 1502 } 1503 if (hasMinTlsVersion()) { 1504 hash = (37 * hash) + MIN_TLS_VERSION_FIELD_NUMBER; 1505 hash = (53 * hash) + getMinTlsVersion().hashCode(); 1506 } 1507 if (hasName()) { 1508 hash = (37 * hash) + NAME_FIELD_NUMBER; 1509 hash = (53 * hash) + getName().hashCode(); 1510 } 1511 if (hasProfile()) { 1512 hash = (37 * hash) + PROFILE_FIELD_NUMBER; 1513 hash = (53 * hash) + getProfile().hashCode(); 1514 } 1515 if (hasRegion()) { 1516 hash = (37 * hash) + REGION_FIELD_NUMBER; 1517 hash = (53 * hash) + getRegion().hashCode(); 1518 } 1519 if (hasSelfLink()) { 1520 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 1521 hash = (53 * hash) + getSelfLink().hashCode(); 1522 } 1523 if (getWarningsCount() > 0) { 1524 hash = (37 * hash) + WARNINGS_FIELD_NUMBER; 1525 hash = (53 * hash) + getWarningsList().hashCode(); 1526 } 1527 hash = (29 * hash) + getUnknownFields().hashCode(); 1528 memoizedHashCode = hash; 1529 return hash; 1530 } 1531 parseFrom(java.nio.ByteBuffer data)1532 public static com.google.cloud.compute.v1.SslPolicy parseFrom(java.nio.ByteBuffer data) 1533 throws com.google.protobuf.InvalidProtocolBufferException { 1534 return PARSER.parseFrom(data); 1535 } 1536 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1537 public static com.google.cloud.compute.v1.SslPolicy parseFrom( 1538 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1539 throws com.google.protobuf.InvalidProtocolBufferException { 1540 return PARSER.parseFrom(data, extensionRegistry); 1541 } 1542 parseFrom(com.google.protobuf.ByteString data)1543 public static com.google.cloud.compute.v1.SslPolicy parseFrom(com.google.protobuf.ByteString data) 1544 throws com.google.protobuf.InvalidProtocolBufferException { 1545 return PARSER.parseFrom(data); 1546 } 1547 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1548 public static com.google.cloud.compute.v1.SslPolicy parseFrom( 1549 com.google.protobuf.ByteString data, 1550 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1551 throws com.google.protobuf.InvalidProtocolBufferException { 1552 return PARSER.parseFrom(data, extensionRegistry); 1553 } 1554 parseFrom(byte[] data)1555 public static com.google.cloud.compute.v1.SslPolicy parseFrom(byte[] data) 1556 throws com.google.protobuf.InvalidProtocolBufferException { 1557 return PARSER.parseFrom(data); 1558 } 1559 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1560 public static com.google.cloud.compute.v1.SslPolicy parseFrom( 1561 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1562 throws com.google.protobuf.InvalidProtocolBufferException { 1563 return PARSER.parseFrom(data, extensionRegistry); 1564 } 1565 parseFrom(java.io.InputStream input)1566 public static com.google.cloud.compute.v1.SslPolicy parseFrom(java.io.InputStream input) 1567 throws java.io.IOException { 1568 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1569 } 1570 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1571 public static com.google.cloud.compute.v1.SslPolicy parseFrom( 1572 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1573 throws java.io.IOException { 1574 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1575 PARSER, input, extensionRegistry); 1576 } 1577 parseDelimitedFrom(java.io.InputStream input)1578 public static com.google.cloud.compute.v1.SslPolicy parseDelimitedFrom(java.io.InputStream input) 1579 throws java.io.IOException { 1580 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1581 } 1582 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1583 public static com.google.cloud.compute.v1.SslPolicy parseDelimitedFrom( 1584 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1585 throws java.io.IOException { 1586 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1587 PARSER, input, extensionRegistry); 1588 } 1589 parseFrom( com.google.protobuf.CodedInputStream input)1590 public static com.google.cloud.compute.v1.SslPolicy parseFrom( 1591 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1592 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1593 } 1594 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1595 public static com.google.cloud.compute.v1.SslPolicy parseFrom( 1596 com.google.protobuf.CodedInputStream input, 1597 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1598 throws java.io.IOException { 1599 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1600 PARSER, input, extensionRegistry); 1601 } 1602 1603 @java.lang.Override newBuilderForType()1604 public Builder newBuilderForType() { 1605 return newBuilder(); 1606 } 1607 newBuilder()1608 public static Builder newBuilder() { 1609 return DEFAULT_INSTANCE.toBuilder(); 1610 } 1611 newBuilder(com.google.cloud.compute.v1.SslPolicy prototype)1612 public static Builder newBuilder(com.google.cloud.compute.v1.SslPolicy prototype) { 1613 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1614 } 1615 1616 @java.lang.Override toBuilder()1617 public Builder toBuilder() { 1618 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1619 } 1620 1621 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1622 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1623 Builder builder = new Builder(parent); 1624 return builder; 1625 } 1626 /** 1627 * 1628 * 1629 * <pre> 1630 * Represents an SSL Policy resource. Use SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts. 1631 * </pre> 1632 * 1633 * Protobuf type {@code google.cloud.compute.v1.SslPolicy} 1634 */ 1635 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1636 implements 1637 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SslPolicy) 1638 com.google.cloud.compute.v1.SslPolicyOrBuilder { getDescriptor()1639 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1640 return com.google.cloud.compute.v1.Compute 1641 .internal_static_google_cloud_compute_v1_SslPolicy_descriptor; 1642 } 1643 1644 @java.lang.Override 1645 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1646 internalGetFieldAccessorTable() { 1647 return com.google.cloud.compute.v1.Compute 1648 .internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable 1649 .ensureFieldAccessorsInitialized( 1650 com.google.cloud.compute.v1.SslPolicy.class, 1651 com.google.cloud.compute.v1.SslPolicy.Builder.class); 1652 } 1653 1654 // Construct using com.google.cloud.compute.v1.SslPolicy.newBuilder() Builder()1655 private Builder() {} 1656 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1657 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1658 super(parent); 1659 } 1660 1661 @java.lang.Override clear()1662 public Builder clear() { 1663 super.clear(); 1664 bitField0_ = 0; 1665 creationTimestamp_ = ""; 1666 customFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1667 bitField0_ = (bitField0_ & ~0x00000002); 1668 description_ = ""; 1669 enabledFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1670 bitField0_ = (bitField0_ & ~0x00000008); 1671 fingerprint_ = ""; 1672 id_ = 0L; 1673 kind_ = ""; 1674 minTlsVersion_ = ""; 1675 name_ = ""; 1676 profile_ = ""; 1677 region_ = ""; 1678 selfLink_ = ""; 1679 if (warningsBuilder_ == null) { 1680 warnings_ = java.util.Collections.emptyList(); 1681 } else { 1682 warnings_ = null; 1683 warningsBuilder_.clear(); 1684 } 1685 bitField0_ = (bitField0_ & ~0x00001000); 1686 return this; 1687 } 1688 1689 @java.lang.Override getDescriptorForType()1690 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1691 return com.google.cloud.compute.v1.Compute 1692 .internal_static_google_cloud_compute_v1_SslPolicy_descriptor; 1693 } 1694 1695 @java.lang.Override getDefaultInstanceForType()1696 public com.google.cloud.compute.v1.SslPolicy getDefaultInstanceForType() { 1697 return com.google.cloud.compute.v1.SslPolicy.getDefaultInstance(); 1698 } 1699 1700 @java.lang.Override build()1701 public com.google.cloud.compute.v1.SslPolicy build() { 1702 com.google.cloud.compute.v1.SslPolicy result = buildPartial(); 1703 if (!result.isInitialized()) { 1704 throw newUninitializedMessageException(result); 1705 } 1706 return result; 1707 } 1708 1709 @java.lang.Override buildPartial()1710 public com.google.cloud.compute.v1.SslPolicy buildPartial() { 1711 com.google.cloud.compute.v1.SslPolicy result = 1712 new com.google.cloud.compute.v1.SslPolicy(this); 1713 buildPartialRepeatedFields(result); 1714 if (bitField0_ != 0) { 1715 buildPartial0(result); 1716 } 1717 onBuilt(); 1718 return result; 1719 } 1720 buildPartialRepeatedFields(com.google.cloud.compute.v1.SslPolicy result)1721 private void buildPartialRepeatedFields(com.google.cloud.compute.v1.SslPolicy result) { 1722 if (((bitField0_ & 0x00000002) != 0)) { 1723 customFeatures_ = customFeatures_.getUnmodifiableView(); 1724 bitField0_ = (bitField0_ & ~0x00000002); 1725 } 1726 result.customFeatures_ = customFeatures_; 1727 if (((bitField0_ & 0x00000008) != 0)) { 1728 enabledFeatures_ = enabledFeatures_.getUnmodifiableView(); 1729 bitField0_ = (bitField0_ & ~0x00000008); 1730 } 1731 result.enabledFeatures_ = enabledFeatures_; 1732 if (warningsBuilder_ == null) { 1733 if (((bitField0_ & 0x00001000) != 0)) { 1734 warnings_ = java.util.Collections.unmodifiableList(warnings_); 1735 bitField0_ = (bitField0_ & ~0x00001000); 1736 } 1737 result.warnings_ = warnings_; 1738 } else { 1739 result.warnings_ = warningsBuilder_.build(); 1740 } 1741 } 1742 buildPartial0(com.google.cloud.compute.v1.SslPolicy result)1743 private void buildPartial0(com.google.cloud.compute.v1.SslPolicy result) { 1744 int from_bitField0_ = bitField0_; 1745 int to_bitField0_ = 0; 1746 if (((from_bitField0_ & 0x00000001) != 0)) { 1747 result.creationTimestamp_ = creationTimestamp_; 1748 to_bitField0_ |= 0x00000001; 1749 } 1750 if (((from_bitField0_ & 0x00000004) != 0)) { 1751 result.description_ = description_; 1752 to_bitField0_ |= 0x00000002; 1753 } 1754 if (((from_bitField0_ & 0x00000010) != 0)) { 1755 result.fingerprint_ = fingerprint_; 1756 to_bitField0_ |= 0x00000004; 1757 } 1758 if (((from_bitField0_ & 0x00000020) != 0)) { 1759 result.id_ = id_; 1760 to_bitField0_ |= 0x00000008; 1761 } 1762 if (((from_bitField0_ & 0x00000040) != 0)) { 1763 result.kind_ = kind_; 1764 to_bitField0_ |= 0x00000010; 1765 } 1766 if (((from_bitField0_ & 0x00000080) != 0)) { 1767 result.minTlsVersion_ = minTlsVersion_; 1768 to_bitField0_ |= 0x00000020; 1769 } 1770 if (((from_bitField0_ & 0x00000100) != 0)) { 1771 result.name_ = name_; 1772 to_bitField0_ |= 0x00000040; 1773 } 1774 if (((from_bitField0_ & 0x00000200) != 0)) { 1775 result.profile_ = profile_; 1776 to_bitField0_ |= 0x00000080; 1777 } 1778 if (((from_bitField0_ & 0x00000400) != 0)) { 1779 result.region_ = region_; 1780 to_bitField0_ |= 0x00000100; 1781 } 1782 if (((from_bitField0_ & 0x00000800) != 0)) { 1783 result.selfLink_ = selfLink_; 1784 to_bitField0_ |= 0x00000200; 1785 } 1786 result.bitField0_ |= to_bitField0_; 1787 } 1788 1789 @java.lang.Override clone()1790 public Builder clone() { 1791 return super.clone(); 1792 } 1793 1794 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1795 public Builder setField( 1796 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1797 return super.setField(field, value); 1798 } 1799 1800 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1801 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1802 return super.clearField(field); 1803 } 1804 1805 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1806 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1807 return super.clearOneof(oneof); 1808 } 1809 1810 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1811 public Builder setRepeatedField( 1812 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1813 return super.setRepeatedField(field, index, value); 1814 } 1815 1816 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1817 public Builder addRepeatedField( 1818 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1819 return super.addRepeatedField(field, value); 1820 } 1821 1822 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1823 public Builder mergeFrom(com.google.protobuf.Message other) { 1824 if (other instanceof com.google.cloud.compute.v1.SslPolicy) { 1825 return mergeFrom((com.google.cloud.compute.v1.SslPolicy) other); 1826 } else { 1827 super.mergeFrom(other); 1828 return this; 1829 } 1830 } 1831 mergeFrom(com.google.cloud.compute.v1.SslPolicy other)1832 public Builder mergeFrom(com.google.cloud.compute.v1.SslPolicy other) { 1833 if (other == com.google.cloud.compute.v1.SslPolicy.getDefaultInstance()) return this; 1834 if (other.hasCreationTimestamp()) { 1835 creationTimestamp_ = other.creationTimestamp_; 1836 bitField0_ |= 0x00000001; 1837 onChanged(); 1838 } 1839 if (!other.customFeatures_.isEmpty()) { 1840 if (customFeatures_.isEmpty()) { 1841 customFeatures_ = other.customFeatures_; 1842 bitField0_ = (bitField0_ & ~0x00000002); 1843 } else { 1844 ensureCustomFeaturesIsMutable(); 1845 customFeatures_.addAll(other.customFeatures_); 1846 } 1847 onChanged(); 1848 } 1849 if (other.hasDescription()) { 1850 description_ = other.description_; 1851 bitField0_ |= 0x00000004; 1852 onChanged(); 1853 } 1854 if (!other.enabledFeatures_.isEmpty()) { 1855 if (enabledFeatures_.isEmpty()) { 1856 enabledFeatures_ = other.enabledFeatures_; 1857 bitField0_ = (bitField0_ & ~0x00000008); 1858 } else { 1859 ensureEnabledFeaturesIsMutable(); 1860 enabledFeatures_.addAll(other.enabledFeatures_); 1861 } 1862 onChanged(); 1863 } 1864 if (other.hasFingerprint()) { 1865 fingerprint_ = other.fingerprint_; 1866 bitField0_ |= 0x00000010; 1867 onChanged(); 1868 } 1869 if (other.hasId()) { 1870 setId(other.getId()); 1871 } 1872 if (other.hasKind()) { 1873 kind_ = other.kind_; 1874 bitField0_ |= 0x00000040; 1875 onChanged(); 1876 } 1877 if (other.hasMinTlsVersion()) { 1878 minTlsVersion_ = other.minTlsVersion_; 1879 bitField0_ |= 0x00000080; 1880 onChanged(); 1881 } 1882 if (other.hasName()) { 1883 name_ = other.name_; 1884 bitField0_ |= 0x00000100; 1885 onChanged(); 1886 } 1887 if (other.hasProfile()) { 1888 profile_ = other.profile_; 1889 bitField0_ |= 0x00000200; 1890 onChanged(); 1891 } 1892 if (other.hasRegion()) { 1893 region_ = other.region_; 1894 bitField0_ |= 0x00000400; 1895 onChanged(); 1896 } 1897 if (other.hasSelfLink()) { 1898 selfLink_ = other.selfLink_; 1899 bitField0_ |= 0x00000800; 1900 onChanged(); 1901 } 1902 if (warningsBuilder_ == null) { 1903 if (!other.warnings_.isEmpty()) { 1904 if (warnings_.isEmpty()) { 1905 warnings_ = other.warnings_; 1906 bitField0_ = (bitField0_ & ~0x00001000); 1907 } else { 1908 ensureWarningsIsMutable(); 1909 warnings_.addAll(other.warnings_); 1910 } 1911 onChanged(); 1912 } 1913 } else { 1914 if (!other.warnings_.isEmpty()) { 1915 if (warningsBuilder_.isEmpty()) { 1916 warningsBuilder_.dispose(); 1917 warningsBuilder_ = null; 1918 warnings_ = other.warnings_; 1919 bitField0_ = (bitField0_ & ~0x00001000); 1920 warningsBuilder_ = 1921 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 1922 ? getWarningsFieldBuilder() 1923 : null; 1924 } else { 1925 warningsBuilder_.addAllMessages(other.warnings_); 1926 } 1927 } 1928 } 1929 this.mergeUnknownFields(other.getUnknownFields()); 1930 onChanged(); 1931 return this; 1932 } 1933 1934 @java.lang.Override isInitialized()1935 public final boolean isInitialized() { 1936 return true; 1937 } 1938 1939 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1940 public Builder mergeFrom( 1941 com.google.protobuf.CodedInputStream input, 1942 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1943 throws java.io.IOException { 1944 if (extensionRegistry == null) { 1945 throw new java.lang.NullPointerException(); 1946 } 1947 try { 1948 boolean done = false; 1949 while (!done) { 1950 int tag = input.readTag(); 1951 switch (tag) { 1952 case 0: 1953 done = true; 1954 break; 1955 case 26840: 1956 { 1957 id_ = input.readUInt64(); 1958 bitField0_ |= 0x00000020; 1959 break; 1960 } // case 26840 1961 case 26336418: 1962 { 1963 kind_ = input.readStringRequireUtf8(); 1964 bitField0_ |= 0x00000040; 1965 break; 1966 } // case 26336418 1967 case 26989658: 1968 { 1969 name_ = input.readStringRequireUtf8(); 1970 bitField0_ |= 0x00000100; 1971 break; 1972 } // case 26989658 1973 case 65247546: 1974 { 1975 minTlsVersion_ = input.readStringRequireUtf8(); 1976 bitField0_ |= 0x00000080; 1977 break; 1978 } // case 65247546 1979 case 244202930: 1980 { 1981 creationTimestamp_ = input.readStringRequireUtf8(); 1982 bitField0_ |= 0x00000001; 1983 break; 1984 } // case 244202930 1985 case 278317658: 1986 { 1987 java.lang.String s = input.readStringRequireUtf8(); 1988 ensureCustomFeaturesIsMutable(); 1989 customFeatures_.add(s); 1990 break; 1991 } // case 278317658 1992 case 1111570338: 1993 { 1994 region_ = input.readStringRequireUtf8(); 1995 bitField0_ |= 0x00000400; 1996 break; 1997 } // case 1111570338 1998 case 1819561290: 1999 { 2000 profile_ = input.readStringRequireUtf8(); 2001 bitField0_ |= 0x00000200; 2002 break; 2003 } // case 1819561290 2004 case 1877428002: 2005 { 2006 fingerprint_ = input.readStringRequireUtf8(); 2007 bitField0_ |= 0x00000010; 2008 break; 2009 } // case 1877428002 2010 case -911466526: 2011 { 2012 description_ = input.readStringRequireUtf8(); 2013 bitField0_ |= 0x00000004; 2014 break; 2015 } // case -911466526 2016 case -645248918: 2017 { 2018 selfLink_ = input.readStringRequireUtf8(); 2019 bitField0_ |= 0x00000800; 2020 break; 2021 } // case -645248918 2022 case -542827558: 2023 { 2024 java.lang.String s = input.readStringRequireUtf8(); 2025 ensureEnabledFeaturesIsMutable(); 2026 enabledFeatures_.add(s); 2027 break; 2028 } // case -542827558 2029 case -310238534: 2030 { 2031 com.google.cloud.compute.v1.Warnings m = 2032 input.readMessage( 2033 com.google.cloud.compute.v1.Warnings.parser(), extensionRegistry); 2034 if (warningsBuilder_ == null) { 2035 ensureWarningsIsMutable(); 2036 warnings_.add(m); 2037 } else { 2038 warningsBuilder_.addMessage(m); 2039 } 2040 break; 2041 } // case -310238534 2042 default: 2043 { 2044 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2045 done = true; // was an endgroup tag 2046 } 2047 break; 2048 } // default: 2049 } // switch (tag) 2050 } // while (!done) 2051 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2052 throw e.unwrapIOException(); 2053 } finally { 2054 onChanged(); 2055 } // finally 2056 return this; 2057 } 2058 2059 private int bitField0_; 2060 2061 private java.lang.Object creationTimestamp_ = ""; 2062 /** 2063 * 2064 * 2065 * <pre> 2066 * [Output Only] Creation timestamp in RFC3339 text format. 2067 * </pre> 2068 * 2069 * <code>optional string creation_timestamp = 30525366;</code> 2070 * 2071 * @return Whether the creationTimestamp field is set. 2072 */ hasCreationTimestamp()2073 public boolean hasCreationTimestamp() { 2074 return ((bitField0_ & 0x00000001) != 0); 2075 } 2076 /** 2077 * 2078 * 2079 * <pre> 2080 * [Output Only] Creation timestamp in RFC3339 text format. 2081 * </pre> 2082 * 2083 * <code>optional string creation_timestamp = 30525366;</code> 2084 * 2085 * @return The creationTimestamp. 2086 */ getCreationTimestamp()2087 public java.lang.String getCreationTimestamp() { 2088 java.lang.Object ref = creationTimestamp_; 2089 if (!(ref instanceof java.lang.String)) { 2090 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2091 java.lang.String s = bs.toStringUtf8(); 2092 creationTimestamp_ = s; 2093 return s; 2094 } else { 2095 return (java.lang.String) ref; 2096 } 2097 } 2098 /** 2099 * 2100 * 2101 * <pre> 2102 * [Output Only] Creation timestamp in RFC3339 text format. 2103 * </pre> 2104 * 2105 * <code>optional string creation_timestamp = 30525366;</code> 2106 * 2107 * @return The bytes for creationTimestamp. 2108 */ getCreationTimestampBytes()2109 public com.google.protobuf.ByteString getCreationTimestampBytes() { 2110 java.lang.Object ref = creationTimestamp_; 2111 if (ref instanceof String) { 2112 com.google.protobuf.ByteString b = 2113 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2114 creationTimestamp_ = b; 2115 return b; 2116 } else { 2117 return (com.google.protobuf.ByteString) ref; 2118 } 2119 } 2120 /** 2121 * 2122 * 2123 * <pre> 2124 * [Output Only] Creation timestamp in RFC3339 text format. 2125 * </pre> 2126 * 2127 * <code>optional string creation_timestamp = 30525366;</code> 2128 * 2129 * @param value The creationTimestamp to set. 2130 * @return This builder for chaining. 2131 */ setCreationTimestamp(java.lang.String value)2132 public Builder setCreationTimestamp(java.lang.String value) { 2133 if (value == null) { 2134 throw new NullPointerException(); 2135 } 2136 creationTimestamp_ = value; 2137 bitField0_ |= 0x00000001; 2138 onChanged(); 2139 return this; 2140 } 2141 /** 2142 * 2143 * 2144 * <pre> 2145 * [Output Only] Creation timestamp in RFC3339 text format. 2146 * </pre> 2147 * 2148 * <code>optional string creation_timestamp = 30525366;</code> 2149 * 2150 * @return This builder for chaining. 2151 */ clearCreationTimestamp()2152 public Builder clearCreationTimestamp() { 2153 creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); 2154 bitField0_ = (bitField0_ & ~0x00000001); 2155 onChanged(); 2156 return this; 2157 } 2158 /** 2159 * 2160 * 2161 * <pre> 2162 * [Output Only] Creation timestamp in RFC3339 text format. 2163 * </pre> 2164 * 2165 * <code>optional string creation_timestamp = 30525366;</code> 2166 * 2167 * @param value The bytes for creationTimestamp to set. 2168 * @return This builder for chaining. 2169 */ setCreationTimestampBytes(com.google.protobuf.ByteString value)2170 public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { 2171 if (value == null) { 2172 throw new NullPointerException(); 2173 } 2174 checkByteStringIsUtf8(value); 2175 creationTimestamp_ = value; 2176 bitField0_ |= 0x00000001; 2177 onChanged(); 2178 return this; 2179 } 2180 2181 private com.google.protobuf.LazyStringList customFeatures_ = 2182 com.google.protobuf.LazyStringArrayList.EMPTY; 2183 ensureCustomFeaturesIsMutable()2184 private void ensureCustomFeaturesIsMutable() { 2185 if (!((bitField0_ & 0x00000002) != 0)) { 2186 customFeatures_ = new com.google.protobuf.LazyStringArrayList(customFeatures_); 2187 bitField0_ |= 0x00000002; 2188 } 2189 } 2190 /** 2191 * 2192 * 2193 * <pre> 2194 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2195 * </pre> 2196 * 2197 * <code>repeated string custom_features = 34789707;</code> 2198 * 2199 * @return A list containing the customFeatures. 2200 */ getCustomFeaturesList()2201 public com.google.protobuf.ProtocolStringList getCustomFeaturesList() { 2202 return customFeatures_.getUnmodifiableView(); 2203 } 2204 /** 2205 * 2206 * 2207 * <pre> 2208 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2209 * </pre> 2210 * 2211 * <code>repeated string custom_features = 34789707;</code> 2212 * 2213 * @return The count of customFeatures. 2214 */ getCustomFeaturesCount()2215 public int getCustomFeaturesCount() { 2216 return customFeatures_.size(); 2217 } 2218 /** 2219 * 2220 * 2221 * <pre> 2222 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2223 * </pre> 2224 * 2225 * <code>repeated string custom_features = 34789707;</code> 2226 * 2227 * @param index The index of the element to return. 2228 * @return The customFeatures at the given index. 2229 */ getCustomFeatures(int index)2230 public java.lang.String getCustomFeatures(int index) { 2231 return customFeatures_.get(index); 2232 } 2233 /** 2234 * 2235 * 2236 * <pre> 2237 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2238 * </pre> 2239 * 2240 * <code>repeated string custom_features = 34789707;</code> 2241 * 2242 * @param index The index of the value to return. 2243 * @return The bytes of the customFeatures at the given index. 2244 */ getCustomFeaturesBytes(int index)2245 public com.google.protobuf.ByteString getCustomFeaturesBytes(int index) { 2246 return customFeatures_.getByteString(index); 2247 } 2248 /** 2249 * 2250 * 2251 * <pre> 2252 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2253 * </pre> 2254 * 2255 * <code>repeated string custom_features = 34789707;</code> 2256 * 2257 * @param index The index to set the value at. 2258 * @param value The customFeatures to set. 2259 * @return This builder for chaining. 2260 */ setCustomFeatures(int index, java.lang.String value)2261 public Builder setCustomFeatures(int index, java.lang.String value) { 2262 if (value == null) { 2263 throw new NullPointerException(); 2264 } 2265 ensureCustomFeaturesIsMutable(); 2266 customFeatures_.set(index, value); 2267 onChanged(); 2268 return this; 2269 } 2270 /** 2271 * 2272 * 2273 * <pre> 2274 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2275 * </pre> 2276 * 2277 * <code>repeated string custom_features = 34789707;</code> 2278 * 2279 * @param value The customFeatures to add. 2280 * @return This builder for chaining. 2281 */ addCustomFeatures(java.lang.String value)2282 public Builder addCustomFeatures(java.lang.String value) { 2283 if (value == null) { 2284 throw new NullPointerException(); 2285 } 2286 ensureCustomFeaturesIsMutable(); 2287 customFeatures_.add(value); 2288 onChanged(); 2289 return this; 2290 } 2291 /** 2292 * 2293 * 2294 * <pre> 2295 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2296 * </pre> 2297 * 2298 * <code>repeated string custom_features = 34789707;</code> 2299 * 2300 * @param values The customFeatures to add. 2301 * @return This builder for chaining. 2302 */ addAllCustomFeatures(java.lang.Iterable<java.lang.String> values)2303 public Builder addAllCustomFeatures(java.lang.Iterable<java.lang.String> values) { 2304 ensureCustomFeaturesIsMutable(); 2305 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customFeatures_); 2306 onChanged(); 2307 return this; 2308 } 2309 /** 2310 * 2311 * 2312 * <pre> 2313 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2314 * </pre> 2315 * 2316 * <code>repeated string custom_features = 34789707;</code> 2317 * 2318 * @return This builder for chaining. 2319 */ clearCustomFeatures()2320 public Builder clearCustomFeatures() { 2321 customFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2322 bitField0_ = (bitField0_ & ~0x00000002); 2323 onChanged(); 2324 return this; 2325 } 2326 /** 2327 * 2328 * 2329 * <pre> 2330 * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. 2331 * </pre> 2332 * 2333 * <code>repeated string custom_features = 34789707;</code> 2334 * 2335 * @param value The bytes of the customFeatures to add. 2336 * @return This builder for chaining. 2337 */ addCustomFeaturesBytes(com.google.protobuf.ByteString value)2338 public Builder addCustomFeaturesBytes(com.google.protobuf.ByteString value) { 2339 if (value == null) { 2340 throw new NullPointerException(); 2341 } 2342 checkByteStringIsUtf8(value); 2343 ensureCustomFeaturesIsMutable(); 2344 customFeatures_.add(value); 2345 onChanged(); 2346 return this; 2347 } 2348 2349 private java.lang.Object description_ = ""; 2350 /** 2351 * 2352 * 2353 * <pre> 2354 * An optional description of this resource. Provide this property when you create the resource. 2355 * </pre> 2356 * 2357 * <code>optional string description = 422937596;</code> 2358 * 2359 * @return Whether the description field is set. 2360 */ hasDescription()2361 public boolean hasDescription() { 2362 return ((bitField0_ & 0x00000004) != 0); 2363 } 2364 /** 2365 * 2366 * 2367 * <pre> 2368 * An optional description of this resource. Provide this property when you create the resource. 2369 * </pre> 2370 * 2371 * <code>optional string description = 422937596;</code> 2372 * 2373 * @return The description. 2374 */ getDescription()2375 public java.lang.String getDescription() { 2376 java.lang.Object ref = description_; 2377 if (!(ref instanceof java.lang.String)) { 2378 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2379 java.lang.String s = bs.toStringUtf8(); 2380 description_ = s; 2381 return s; 2382 } else { 2383 return (java.lang.String) ref; 2384 } 2385 } 2386 /** 2387 * 2388 * 2389 * <pre> 2390 * An optional description of this resource. Provide this property when you create the resource. 2391 * </pre> 2392 * 2393 * <code>optional string description = 422937596;</code> 2394 * 2395 * @return The bytes for description. 2396 */ getDescriptionBytes()2397 public com.google.protobuf.ByteString getDescriptionBytes() { 2398 java.lang.Object ref = description_; 2399 if (ref instanceof String) { 2400 com.google.protobuf.ByteString b = 2401 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2402 description_ = b; 2403 return b; 2404 } else { 2405 return (com.google.protobuf.ByteString) ref; 2406 } 2407 } 2408 /** 2409 * 2410 * 2411 * <pre> 2412 * An optional description of this resource. Provide this property when you create the resource. 2413 * </pre> 2414 * 2415 * <code>optional string description = 422937596;</code> 2416 * 2417 * @param value The description to set. 2418 * @return This builder for chaining. 2419 */ setDescription(java.lang.String value)2420 public Builder setDescription(java.lang.String value) { 2421 if (value == null) { 2422 throw new NullPointerException(); 2423 } 2424 description_ = value; 2425 bitField0_ |= 0x00000004; 2426 onChanged(); 2427 return this; 2428 } 2429 /** 2430 * 2431 * 2432 * <pre> 2433 * An optional description of this resource. Provide this property when you create the resource. 2434 * </pre> 2435 * 2436 * <code>optional string description = 422937596;</code> 2437 * 2438 * @return This builder for chaining. 2439 */ clearDescription()2440 public Builder clearDescription() { 2441 description_ = getDefaultInstance().getDescription(); 2442 bitField0_ = (bitField0_ & ~0x00000004); 2443 onChanged(); 2444 return this; 2445 } 2446 /** 2447 * 2448 * 2449 * <pre> 2450 * An optional description of this resource. Provide this property when you create the resource. 2451 * </pre> 2452 * 2453 * <code>optional string description = 422937596;</code> 2454 * 2455 * @param value The bytes for description to set. 2456 * @return This builder for chaining. 2457 */ setDescriptionBytes(com.google.protobuf.ByteString value)2458 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 2459 if (value == null) { 2460 throw new NullPointerException(); 2461 } 2462 checkByteStringIsUtf8(value); 2463 description_ = value; 2464 bitField0_ |= 0x00000004; 2465 onChanged(); 2466 return this; 2467 } 2468 2469 private com.google.protobuf.LazyStringList enabledFeatures_ = 2470 com.google.protobuf.LazyStringArrayList.EMPTY; 2471 ensureEnabledFeaturesIsMutable()2472 private void ensureEnabledFeaturesIsMutable() { 2473 if (!((bitField0_ & 0x00000008) != 0)) { 2474 enabledFeatures_ = new com.google.protobuf.LazyStringArrayList(enabledFeatures_); 2475 bitField0_ |= 0x00000008; 2476 } 2477 } 2478 /** 2479 * 2480 * 2481 * <pre> 2482 * [Output Only] The list of features enabled in the SSL policy. 2483 * </pre> 2484 * 2485 * <code>repeated string enabled_features = 469017467;</code> 2486 * 2487 * @return A list containing the enabledFeatures. 2488 */ getEnabledFeaturesList()2489 public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { 2490 return enabledFeatures_.getUnmodifiableView(); 2491 } 2492 /** 2493 * 2494 * 2495 * <pre> 2496 * [Output Only] The list of features enabled in the SSL policy. 2497 * </pre> 2498 * 2499 * <code>repeated string enabled_features = 469017467;</code> 2500 * 2501 * @return The count of enabledFeatures. 2502 */ getEnabledFeaturesCount()2503 public int getEnabledFeaturesCount() { 2504 return enabledFeatures_.size(); 2505 } 2506 /** 2507 * 2508 * 2509 * <pre> 2510 * [Output Only] The list of features enabled in the SSL policy. 2511 * </pre> 2512 * 2513 * <code>repeated string enabled_features = 469017467;</code> 2514 * 2515 * @param index The index of the element to return. 2516 * @return The enabledFeatures at the given index. 2517 */ getEnabledFeatures(int index)2518 public java.lang.String getEnabledFeatures(int index) { 2519 return enabledFeatures_.get(index); 2520 } 2521 /** 2522 * 2523 * 2524 * <pre> 2525 * [Output Only] The list of features enabled in the SSL policy. 2526 * </pre> 2527 * 2528 * <code>repeated string enabled_features = 469017467;</code> 2529 * 2530 * @param index The index of the value to return. 2531 * @return The bytes of the enabledFeatures at the given index. 2532 */ getEnabledFeaturesBytes(int index)2533 public com.google.protobuf.ByteString getEnabledFeaturesBytes(int index) { 2534 return enabledFeatures_.getByteString(index); 2535 } 2536 /** 2537 * 2538 * 2539 * <pre> 2540 * [Output Only] The list of features enabled in the SSL policy. 2541 * </pre> 2542 * 2543 * <code>repeated string enabled_features = 469017467;</code> 2544 * 2545 * @param index The index to set the value at. 2546 * @param value The enabledFeatures to set. 2547 * @return This builder for chaining. 2548 */ setEnabledFeatures(int index, java.lang.String value)2549 public Builder setEnabledFeatures(int index, java.lang.String value) { 2550 if (value == null) { 2551 throw new NullPointerException(); 2552 } 2553 ensureEnabledFeaturesIsMutable(); 2554 enabledFeatures_.set(index, value); 2555 onChanged(); 2556 return this; 2557 } 2558 /** 2559 * 2560 * 2561 * <pre> 2562 * [Output Only] The list of features enabled in the SSL policy. 2563 * </pre> 2564 * 2565 * <code>repeated string enabled_features = 469017467;</code> 2566 * 2567 * @param value The enabledFeatures to add. 2568 * @return This builder for chaining. 2569 */ addEnabledFeatures(java.lang.String value)2570 public Builder addEnabledFeatures(java.lang.String value) { 2571 if (value == null) { 2572 throw new NullPointerException(); 2573 } 2574 ensureEnabledFeaturesIsMutable(); 2575 enabledFeatures_.add(value); 2576 onChanged(); 2577 return this; 2578 } 2579 /** 2580 * 2581 * 2582 * <pre> 2583 * [Output Only] The list of features enabled in the SSL policy. 2584 * </pre> 2585 * 2586 * <code>repeated string enabled_features = 469017467;</code> 2587 * 2588 * @param values The enabledFeatures to add. 2589 * @return This builder for chaining. 2590 */ addAllEnabledFeatures(java.lang.Iterable<java.lang.String> values)2591 public Builder addAllEnabledFeatures(java.lang.Iterable<java.lang.String> values) { 2592 ensureEnabledFeaturesIsMutable(); 2593 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enabledFeatures_); 2594 onChanged(); 2595 return this; 2596 } 2597 /** 2598 * 2599 * 2600 * <pre> 2601 * [Output Only] The list of features enabled in the SSL policy. 2602 * </pre> 2603 * 2604 * <code>repeated string enabled_features = 469017467;</code> 2605 * 2606 * @return This builder for chaining. 2607 */ clearEnabledFeatures()2608 public Builder clearEnabledFeatures() { 2609 enabledFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2610 bitField0_ = (bitField0_ & ~0x00000008); 2611 onChanged(); 2612 return this; 2613 } 2614 /** 2615 * 2616 * 2617 * <pre> 2618 * [Output Only] The list of features enabled in the SSL policy. 2619 * </pre> 2620 * 2621 * <code>repeated string enabled_features = 469017467;</code> 2622 * 2623 * @param value The bytes of the enabledFeatures to add. 2624 * @return This builder for chaining. 2625 */ addEnabledFeaturesBytes(com.google.protobuf.ByteString value)2626 public Builder addEnabledFeaturesBytes(com.google.protobuf.ByteString value) { 2627 if (value == null) { 2628 throw new NullPointerException(); 2629 } 2630 checkByteStringIsUtf8(value); 2631 ensureEnabledFeaturesIsMutable(); 2632 enabledFeatures_.add(value); 2633 onChanged(); 2634 return this; 2635 } 2636 2637 private java.lang.Object fingerprint_ = ""; 2638 /** 2639 * 2640 * 2641 * <pre> 2642 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 2643 * </pre> 2644 * 2645 * <code>optional string fingerprint = 234678500;</code> 2646 * 2647 * @return Whether the fingerprint field is set. 2648 */ hasFingerprint()2649 public boolean hasFingerprint() { 2650 return ((bitField0_ & 0x00000010) != 0); 2651 } 2652 /** 2653 * 2654 * 2655 * <pre> 2656 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 2657 * </pre> 2658 * 2659 * <code>optional string fingerprint = 234678500;</code> 2660 * 2661 * @return The fingerprint. 2662 */ getFingerprint()2663 public java.lang.String getFingerprint() { 2664 java.lang.Object ref = fingerprint_; 2665 if (!(ref instanceof java.lang.String)) { 2666 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2667 java.lang.String s = bs.toStringUtf8(); 2668 fingerprint_ = s; 2669 return s; 2670 } else { 2671 return (java.lang.String) ref; 2672 } 2673 } 2674 /** 2675 * 2676 * 2677 * <pre> 2678 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 2679 * </pre> 2680 * 2681 * <code>optional string fingerprint = 234678500;</code> 2682 * 2683 * @return The bytes for fingerprint. 2684 */ getFingerprintBytes()2685 public com.google.protobuf.ByteString getFingerprintBytes() { 2686 java.lang.Object ref = fingerprint_; 2687 if (ref instanceof String) { 2688 com.google.protobuf.ByteString b = 2689 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2690 fingerprint_ = b; 2691 return b; 2692 } else { 2693 return (com.google.protobuf.ByteString) ref; 2694 } 2695 } 2696 /** 2697 * 2698 * 2699 * <pre> 2700 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 2701 * </pre> 2702 * 2703 * <code>optional string fingerprint = 234678500;</code> 2704 * 2705 * @param value The fingerprint to set. 2706 * @return This builder for chaining. 2707 */ setFingerprint(java.lang.String value)2708 public Builder setFingerprint(java.lang.String value) { 2709 if (value == null) { 2710 throw new NullPointerException(); 2711 } 2712 fingerprint_ = value; 2713 bitField0_ |= 0x00000010; 2714 onChanged(); 2715 return this; 2716 } 2717 /** 2718 * 2719 * 2720 * <pre> 2721 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 2722 * </pre> 2723 * 2724 * <code>optional string fingerprint = 234678500;</code> 2725 * 2726 * @return This builder for chaining. 2727 */ clearFingerprint()2728 public Builder clearFingerprint() { 2729 fingerprint_ = getDefaultInstance().getFingerprint(); 2730 bitField0_ = (bitField0_ & ~0x00000010); 2731 onChanged(); 2732 return this; 2733 } 2734 /** 2735 * 2736 * 2737 * <pre> 2738 * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. 2739 * </pre> 2740 * 2741 * <code>optional string fingerprint = 234678500;</code> 2742 * 2743 * @param value The bytes for fingerprint to set. 2744 * @return This builder for chaining. 2745 */ setFingerprintBytes(com.google.protobuf.ByteString value)2746 public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { 2747 if (value == null) { 2748 throw new NullPointerException(); 2749 } 2750 checkByteStringIsUtf8(value); 2751 fingerprint_ = value; 2752 bitField0_ |= 0x00000010; 2753 onChanged(); 2754 return this; 2755 } 2756 2757 private long id_; 2758 /** 2759 * 2760 * 2761 * <pre> 2762 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 2763 * </pre> 2764 * 2765 * <code>optional uint64 id = 3355;</code> 2766 * 2767 * @return Whether the id field is set. 2768 */ 2769 @java.lang.Override hasId()2770 public boolean hasId() { 2771 return ((bitField0_ & 0x00000020) != 0); 2772 } 2773 /** 2774 * 2775 * 2776 * <pre> 2777 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 2778 * </pre> 2779 * 2780 * <code>optional uint64 id = 3355;</code> 2781 * 2782 * @return The id. 2783 */ 2784 @java.lang.Override getId()2785 public long getId() { 2786 return id_; 2787 } 2788 /** 2789 * 2790 * 2791 * <pre> 2792 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 2793 * </pre> 2794 * 2795 * <code>optional uint64 id = 3355;</code> 2796 * 2797 * @param value The id to set. 2798 * @return This builder for chaining. 2799 */ setId(long value)2800 public Builder setId(long value) { 2801 2802 id_ = value; 2803 bitField0_ |= 0x00000020; 2804 onChanged(); 2805 return this; 2806 } 2807 /** 2808 * 2809 * 2810 * <pre> 2811 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 2812 * </pre> 2813 * 2814 * <code>optional uint64 id = 3355;</code> 2815 * 2816 * @return This builder for chaining. 2817 */ clearId()2818 public Builder clearId() { 2819 bitField0_ = (bitField0_ & ~0x00000020); 2820 id_ = 0L; 2821 onChanged(); 2822 return this; 2823 } 2824 2825 private java.lang.Object kind_ = ""; 2826 /** 2827 * 2828 * 2829 * <pre> 2830 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 2831 * </pre> 2832 * 2833 * <code>optional string kind = 3292052;</code> 2834 * 2835 * @return Whether the kind field is set. 2836 */ hasKind()2837 public boolean hasKind() { 2838 return ((bitField0_ & 0x00000040) != 0); 2839 } 2840 /** 2841 * 2842 * 2843 * <pre> 2844 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 2845 * </pre> 2846 * 2847 * <code>optional string kind = 3292052;</code> 2848 * 2849 * @return The kind. 2850 */ getKind()2851 public java.lang.String getKind() { 2852 java.lang.Object ref = kind_; 2853 if (!(ref instanceof java.lang.String)) { 2854 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2855 java.lang.String s = bs.toStringUtf8(); 2856 kind_ = s; 2857 return s; 2858 } else { 2859 return (java.lang.String) ref; 2860 } 2861 } 2862 /** 2863 * 2864 * 2865 * <pre> 2866 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 2867 * </pre> 2868 * 2869 * <code>optional string kind = 3292052;</code> 2870 * 2871 * @return The bytes for kind. 2872 */ getKindBytes()2873 public com.google.protobuf.ByteString getKindBytes() { 2874 java.lang.Object ref = kind_; 2875 if (ref instanceof String) { 2876 com.google.protobuf.ByteString b = 2877 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2878 kind_ = b; 2879 return b; 2880 } else { 2881 return (com.google.protobuf.ByteString) ref; 2882 } 2883 } 2884 /** 2885 * 2886 * 2887 * <pre> 2888 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 2889 * </pre> 2890 * 2891 * <code>optional string kind = 3292052;</code> 2892 * 2893 * @param value The kind to set. 2894 * @return This builder for chaining. 2895 */ setKind(java.lang.String value)2896 public Builder setKind(java.lang.String value) { 2897 if (value == null) { 2898 throw new NullPointerException(); 2899 } 2900 kind_ = value; 2901 bitField0_ |= 0x00000040; 2902 onChanged(); 2903 return this; 2904 } 2905 /** 2906 * 2907 * 2908 * <pre> 2909 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 2910 * </pre> 2911 * 2912 * <code>optional string kind = 3292052;</code> 2913 * 2914 * @return This builder for chaining. 2915 */ clearKind()2916 public Builder clearKind() { 2917 kind_ = getDefaultInstance().getKind(); 2918 bitField0_ = (bitField0_ & ~0x00000040); 2919 onChanged(); 2920 return this; 2921 } 2922 /** 2923 * 2924 * 2925 * <pre> 2926 * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies. 2927 * </pre> 2928 * 2929 * <code>optional string kind = 3292052;</code> 2930 * 2931 * @param value The bytes for kind to set. 2932 * @return This builder for chaining. 2933 */ setKindBytes(com.google.protobuf.ByteString value)2934 public Builder setKindBytes(com.google.protobuf.ByteString value) { 2935 if (value == null) { 2936 throw new NullPointerException(); 2937 } 2938 checkByteStringIsUtf8(value); 2939 kind_ = value; 2940 bitField0_ |= 0x00000040; 2941 onChanged(); 2942 return this; 2943 } 2944 2945 private java.lang.Object minTlsVersion_ = ""; 2946 /** 2947 * 2948 * 2949 * <pre> 2950 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 2951 * Check the MinTlsVersion enum for the list of possible values. 2952 * </pre> 2953 * 2954 * <code>optional string min_tls_version = 8155943;</code> 2955 * 2956 * @return Whether the minTlsVersion field is set. 2957 */ hasMinTlsVersion()2958 public boolean hasMinTlsVersion() { 2959 return ((bitField0_ & 0x00000080) != 0); 2960 } 2961 /** 2962 * 2963 * 2964 * <pre> 2965 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 2966 * Check the MinTlsVersion enum for the list of possible values. 2967 * </pre> 2968 * 2969 * <code>optional string min_tls_version = 8155943;</code> 2970 * 2971 * @return The minTlsVersion. 2972 */ getMinTlsVersion()2973 public java.lang.String getMinTlsVersion() { 2974 java.lang.Object ref = minTlsVersion_; 2975 if (!(ref instanceof java.lang.String)) { 2976 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2977 java.lang.String s = bs.toStringUtf8(); 2978 minTlsVersion_ = s; 2979 return s; 2980 } else { 2981 return (java.lang.String) ref; 2982 } 2983 } 2984 /** 2985 * 2986 * 2987 * <pre> 2988 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 2989 * Check the MinTlsVersion enum for the list of possible values. 2990 * </pre> 2991 * 2992 * <code>optional string min_tls_version = 8155943;</code> 2993 * 2994 * @return The bytes for minTlsVersion. 2995 */ getMinTlsVersionBytes()2996 public com.google.protobuf.ByteString getMinTlsVersionBytes() { 2997 java.lang.Object ref = minTlsVersion_; 2998 if (ref instanceof String) { 2999 com.google.protobuf.ByteString b = 3000 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3001 minTlsVersion_ = b; 3002 return b; 3003 } else { 3004 return (com.google.protobuf.ByteString) ref; 3005 } 3006 } 3007 /** 3008 * 3009 * 3010 * <pre> 3011 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 3012 * Check the MinTlsVersion enum for the list of possible values. 3013 * </pre> 3014 * 3015 * <code>optional string min_tls_version = 8155943;</code> 3016 * 3017 * @param value The minTlsVersion to set. 3018 * @return This builder for chaining. 3019 */ setMinTlsVersion(java.lang.String value)3020 public Builder setMinTlsVersion(java.lang.String value) { 3021 if (value == null) { 3022 throw new NullPointerException(); 3023 } 3024 minTlsVersion_ = value; 3025 bitField0_ |= 0x00000080; 3026 onChanged(); 3027 return this; 3028 } 3029 /** 3030 * 3031 * 3032 * <pre> 3033 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 3034 * Check the MinTlsVersion enum for the list of possible values. 3035 * </pre> 3036 * 3037 * <code>optional string min_tls_version = 8155943;</code> 3038 * 3039 * @return This builder for chaining. 3040 */ clearMinTlsVersion()3041 public Builder clearMinTlsVersion() { 3042 minTlsVersion_ = getDefaultInstance().getMinTlsVersion(); 3043 bitField0_ = (bitField0_ & ~0x00000080); 3044 onChanged(); 3045 return this; 3046 } 3047 /** 3048 * 3049 * 3050 * <pre> 3051 * The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. 3052 * Check the MinTlsVersion enum for the list of possible values. 3053 * </pre> 3054 * 3055 * <code>optional string min_tls_version = 8155943;</code> 3056 * 3057 * @param value The bytes for minTlsVersion to set. 3058 * @return This builder for chaining. 3059 */ setMinTlsVersionBytes(com.google.protobuf.ByteString value)3060 public Builder setMinTlsVersionBytes(com.google.protobuf.ByteString value) { 3061 if (value == null) { 3062 throw new NullPointerException(); 3063 } 3064 checkByteStringIsUtf8(value); 3065 minTlsVersion_ = value; 3066 bitField0_ |= 0x00000080; 3067 onChanged(); 3068 return this; 3069 } 3070 3071 private java.lang.Object name_ = ""; 3072 /** 3073 * 3074 * 3075 * <pre> 3076 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 3077 * </pre> 3078 * 3079 * <code>optional string name = 3373707;</code> 3080 * 3081 * @return Whether the name field is set. 3082 */ hasName()3083 public boolean hasName() { 3084 return ((bitField0_ & 0x00000100) != 0); 3085 } 3086 /** 3087 * 3088 * 3089 * <pre> 3090 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 3091 * </pre> 3092 * 3093 * <code>optional string name = 3373707;</code> 3094 * 3095 * @return The name. 3096 */ getName()3097 public java.lang.String getName() { 3098 java.lang.Object ref = name_; 3099 if (!(ref instanceof java.lang.String)) { 3100 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3101 java.lang.String s = bs.toStringUtf8(); 3102 name_ = s; 3103 return s; 3104 } else { 3105 return (java.lang.String) ref; 3106 } 3107 } 3108 /** 3109 * 3110 * 3111 * <pre> 3112 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 3113 * </pre> 3114 * 3115 * <code>optional string name = 3373707;</code> 3116 * 3117 * @return The bytes for name. 3118 */ getNameBytes()3119 public com.google.protobuf.ByteString getNameBytes() { 3120 java.lang.Object ref = name_; 3121 if (ref instanceof String) { 3122 com.google.protobuf.ByteString b = 3123 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3124 name_ = b; 3125 return b; 3126 } else { 3127 return (com.google.protobuf.ByteString) ref; 3128 } 3129 } 3130 /** 3131 * 3132 * 3133 * <pre> 3134 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 3135 * </pre> 3136 * 3137 * <code>optional string name = 3373707;</code> 3138 * 3139 * @param value The name to set. 3140 * @return This builder for chaining. 3141 */ setName(java.lang.String value)3142 public Builder setName(java.lang.String value) { 3143 if (value == null) { 3144 throw new NullPointerException(); 3145 } 3146 name_ = value; 3147 bitField0_ |= 0x00000100; 3148 onChanged(); 3149 return this; 3150 } 3151 /** 3152 * 3153 * 3154 * <pre> 3155 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 3156 * </pre> 3157 * 3158 * <code>optional string name = 3373707;</code> 3159 * 3160 * @return This builder for chaining. 3161 */ clearName()3162 public Builder clearName() { 3163 name_ = getDefaultInstance().getName(); 3164 bitField0_ = (bitField0_ & ~0x00000100); 3165 onChanged(); 3166 return this; 3167 } 3168 /** 3169 * 3170 * 3171 * <pre> 3172 * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 3173 * </pre> 3174 * 3175 * <code>optional string name = 3373707;</code> 3176 * 3177 * @param value The bytes for name to set. 3178 * @return This builder for chaining. 3179 */ setNameBytes(com.google.protobuf.ByteString value)3180 public Builder setNameBytes(com.google.protobuf.ByteString value) { 3181 if (value == null) { 3182 throw new NullPointerException(); 3183 } 3184 checkByteStringIsUtf8(value); 3185 name_ = value; 3186 bitField0_ |= 0x00000100; 3187 onChanged(); 3188 return this; 3189 } 3190 3191 private java.lang.Object profile_ = ""; 3192 /** 3193 * 3194 * 3195 * <pre> 3196 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 3197 * Check the Profile enum for the list of possible values. 3198 * </pre> 3199 * 3200 * <code>optional string profile = 227445161;</code> 3201 * 3202 * @return Whether the profile field is set. 3203 */ hasProfile()3204 public boolean hasProfile() { 3205 return ((bitField0_ & 0x00000200) != 0); 3206 } 3207 /** 3208 * 3209 * 3210 * <pre> 3211 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 3212 * Check the Profile enum for the list of possible values. 3213 * </pre> 3214 * 3215 * <code>optional string profile = 227445161;</code> 3216 * 3217 * @return The profile. 3218 */ getProfile()3219 public java.lang.String getProfile() { 3220 java.lang.Object ref = profile_; 3221 if (!(ref instanceof java.lang.String)) { 3222 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3223 java.lang.String s = bs.toStringUtf8(); 3224 profile_ = s; 3225 return s; 3226 } else { 3227 return (java.lang.String) ref; 3228 } 3229 } 3230 /** 3231 * 3232 * 3233 * <pre> 3234 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 3235 * Check the Profile enum for the list of possible values. 3236 * </pre> 3237 * 3238 * <code>optional string profile = 227445161;</code> 3239 * 3240 * @return The bytes for profile. 3241 */ getProfileBytes()3242 public com.google.protobuf.ByteString getProfileBytes() { 3243 java.lang.Object ref = profile_; 3244 if (ref instanceof String) { 3245 com.google.protobuf.ByteString b = 3246 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3247 profile_ = b; 3248 return b; 3249 } else { 3250 return (com.google.protobuf.ByteString) ref; 3251 } 3252 } 3253 /** 3254 * 3255 * 3256 * <pre> 3257 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 3258 * Check the Profile enum for the list of possible values. 3259 * </pre> 3260 * 3261 * <code>optional string profile = 227445161;</code> 3262 * 3263 * @param value The profile to set. 3264 * @return This builder for chaining. 3265 */ setProfile(java.lang.String value)3266 public Builder setProfile(java.lang.String value) { 3267 if (value == null) { 3268 throw new NullPointerException(); 3269 } 3270 profile_ = value; 3271 bitField0_ |= 0x00000200; 3272 onChanged(); 3273 return this; 3274 } 3275 /** 3276 * 3277 * 3278 * <pre> 3279 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 3280 * Check the Profile enum for the list of possible values. 3281 * </pre> 3282 * 3283 * <code>optional string profile = 227445161;</code> 3284 * 3285 * @return This builder for chaining. 3286 */ clearProfile()3287 public Builder clearProfile() { 3288 profile_ = getDefaultInstance().getProfile(); 3289 bitField0_ = (bitField0_ & ~0x00000200); 3290 onChanged(); 3291 return this; 3292 } 3293 /** 3294 * 3295 * 3296 * <pre> 3297 * Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. 3298 * Check the Profile enum for the list of possible values. 3299 * </pre> 3300 * 3301 * <code>optional string profile = 227445161;</code> 3302 * 3303 * @param value The bytes for profile to set. 3304 * @return This builder for chaining. 3305 */ setProfileBytes(com.google.protobuf.ByteString value)3306 public Builder setProfileBytes(com.google.protobuf.ByteString value) { 3307 if (value == null) { 3308 throw new NullPointerException(); 3309 } 3310 checkByteStringIsUtf8(value); 3311 profile_ = value; 3312 bitField0_ |= 0x00000200; 3313 onChanged(); 3314 return this; 3315 } 3316 3317 private java.lang.Object region_ = ""; 3318 /** 3319 * 3320 * 3321 * <pre> 3322 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 3323 * </pre> 3324 * 3325 * <code>optional string region = 138946292;</code> 3326 * 3327 * @return Whether the region field is set. 3328 */ hasRegion()3329 public boolean hasRegion() { 3330 return ((bitField0_ & 0x00000400) != 0); 3331 } 3332 /** 3333 * 3334 * 3335 * <pre> 3336 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 3337 * </pre> 3338 * 3339 * <code>optional string region = 138946292;</code> 3340 * 3341 * @return The region. 3342 */ getRegion()3343 public java.lang.String getRegion() { 3344 java.lang.Object ref = region_; 3345 if (!(ref instanceof java.lang.String)) { 3346 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3347 java.lang.String s = bs.toStringUtf8(); 3348 region_ = s; 3349 return s; 3350 } else { 3351 return (java.lang.String) ref; 3352 } 3353 } 3354 /** 3355 * 3356 * 3357 * <pre> 3358 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 3359 * </pre> 3360 * 3361 * <code>optional string region = 138946292;</code> 3362 * 3363 * @return The bytes for region. 3364 */ getRegionBytes()3365 public com.google.protobuf.ByteString getRegionBytes() { 3366 java.lang.Object ref = region_; 3367 if (ref instanceof String) { 3368 com.google.protobuf.ByteString b = 3369 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3370 region_ = b; 3371 return b; 3372 } else { 3373 return (com.google.protobuf.ByteString) ref; 3374 } 3375 } 3376 /** 3377 * 3378 * 3379 * <pre> 3380 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 3381 * </pre> 3382 * 3383 * <code>optional string region = 138946292;</code> 3384 * 3385 * @param value The region to set. 3386 * @return This builder for chaining. 3387 */ setRegion(java.lang.String value)3388 public Builder setRegion(java.lang.String value) { 3389 if (value == null) { 3390 throw new NullPointerException(); 3391 } 3392 region_ = value; 3393 bitField0_ |= 0x00000400; 3394 onChanged(); 3395 return this; 3396 } 3397 /** 3398 * 3399 * 3400 * <pre> 3401 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 3402 * </pre> 3403 * 3404 * <code>optional string region = 138946292;</code> 3405 * 3406 * @return This builder for chaining. 3407 */ clearRegion()3408 public Builder clearRegion() { 3409 region_ = getDefaultInstance().getRegion(); 3410 bitField0_ = (bitField0_ & ~0x00000400); 3411 onChanged(); 3412 return this; 3413 } 3414 /** 3415 * 3416 * 3417 * <pre> 3418 * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies. 3419 * </pre> 3420 * 3421 * <code>optional string region = 138946292;</code> 3422 * 3423 * @param value The bytes for region to set. 3424 * @return This builder for chaining. 3425 */ setRegionBytes(com.google.protobuf.ByteString value)3426 public Builder setRegionBytes(com.google.protobuf.ByteString value) { 3427 if (value == null) { 3428 throw new NullPointerException(); 3429 } 3430 checkByteStringIsUtf8(value); 3431 region_ = value; 3432 bitField0_ |= 0x00000400; 3433 onChanged(); 3434 return this; 3435 } 3436 3437 private java.lang.Object selfLink_ = ""; 3438 /** 3439 * 3440 * 3441 * <pre> 3442 * [Output Only] Server-defined URL for the resource. 3443 * </pre> 3444 * 3445 * <code>optional string self_link = 456214797;</code> 3446 * 3447 * @return Whether the selfLink field is set. 3448 */ hasSelfLink()3449 public boolean hasSelfLink() { 3450 return ((bitField0_ & 0x00000800) != 0); 3451 } 3452 /** 3453 * 3454 * 3455 * <pre> 3456 * [Output Only] Server-defined URL for the resource. 3457 * </pre> 3458 * 3459 * <code>optional string self_link = 456214797;</code> 3460 * 3461 * @return The selfLink. 3462 */ getSelfLink()3463 public java.lang.String getSelfLink() { 3464 java.lang.Object ref = selfLink_; 3465 if (!(ref instanceof java.lang.String)) { 3466 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3467 java.lang.String s = bs.toStringUtf8(); 3468 selfLink_ = s; 3469 return s; 3470 } else { 3471 return (java.lang.String) ref; 3472 } 3473 } 3474 /** 3475 * 3476 * 3477 * <pre> 3478 * [Output Only] Server-defined URL for the resource. 3479 * </pre> 3480 * 3481 * <code>optional string self_link = 456214797;</code> 3482 * 3483 * @return The bytes for selfLink. 3484 */ getSelfLinkBytes()3485 public com.google.protobuf.ByteString getSelfLinkBytes() { 3486 java.lang.Object ref = selfLink_; 3487 if (ref instanceof String) { 3488 com.google.protobuf.ByteString b = 3489 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3490 selfLink_ = b; 3491 return b; 3492 } else { 3493 return (com.google.protobuf.ByteString) ref; 3494 } 3495 } 3496 /** 3497 * 3498 * 3499 * <pre> 3500 * [Output Only] Server-defined URL for the resource. 3501 * </pre> 3502 * 3503 * <code>optional string self_link = 456214797;</code> 3504 * 3505 * @param value The selfLink to set. 3506 * @return This builder for chaining. 3507 */ setSelfLink(java.lang.String value)3508 public Builder setSelfLink(java.lang.String value) { 3509 if (value == null) { 3510 throw new NullPointerException(); 3511 } 3512 selfLink_ = value; 3513 bitField0_ |= 0x00000800; 3514 onChanged(); 3515 return this; 3516 } 3517 /** 3518 * 3519 * 3520 * <pre> 3521 * [Output Only] Server-defined URL for the resource. 3522 * </pre> 3523 * 3524 * <code>optional string self_link = 456214797;</code> 3525 * 3526 * @return This builder for chaining. 3527 */ clearSelfLink()3528 public Builder clearSelfLink() { 3529 selfLink_ = getDefaultInstance().getSelfLink(); 3530 bitField0_ = (bitField0_ & ~0x00000800); 3531 onChanged(); 3532 return this; 3533 } 3534 /** 3535 * 3536 * 3537 * <pre> 3538 * [Output Only] Server-defined URL for the resource. 3539 * </pre> 3540 * 3541 * <code>optional string self_link = 456214797;</code> 3542 * 3543 * @param value The bytes for selfLink to set. 3544 * @return This builder for chaining. 3545 */ setSelfLinkBytes(com.google.protobuf.ByteString value)3546 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 3547 if (value == null) { 3548 throw new NullPointerException(); 3549 } 3550 checkByteStringIsUtf8(value); 3551 selfLink_ = value; 3552 bitField0_ |= 0x00000800; 3553 onChanged(); 3554 return this; 3555 } 3556 3557 private java.util.List<com.google.cloud.compute.v1.Warnings> warnings_ = 3558 java.util.Collections.emptyList(); 3559 ensureWarningsIsMutable()3560 private void ensureWarningsIsMutable() { 3561 if (!((bitField0_ & 0x00001000) != 0)) { 3562 warnings_ = new java.util.ArrayList<com.google.cloud.compute.v1.Warnings>(warnings_); 3563 bitField0_ |= 0x00001000; 3564 } 3565 } 3566 3567 private com.google.protobuf.RepeatedFieldBuilderV3< 3568 com.google.cloud.compute.v1.Warnings, 3569 com.google.cloud.compute.v1.Warnings.Builder, 3570 com.google.cloud.compute.v1.WarningsOrBuilder> 3571 warningsBuilder_; 3572 3573 /** 3574 * 3575 * 3576 * <pre> 3577 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3578 * </pre> 3579 * 3580 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3581 */ getWarningsList()3582 public java.util.List<com.google.cloud.compute.v1.Warnings> getWarningsList() { 3583 if (warningsBuilder_ == null) { 3584 return java.util.Collections.unmodifiableList(warnings_); 3585 } else { 3586 return warningsBuilder_.getMessageList(); 3587 } 3588 } 3589 /** 3590 * 3591 * 3592 * <pre> 3593 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3594 * </pre> 3595 * 3596 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3597 */ getWarningsCount()3598 public int getWarningsCount() { 3599 if (warningsBuilder_ == null) { 3600 return warnings_.size(); 3601 } else { 3602 return warningsBuilder_.getCount(); 3603 } 3604 } 3605 /** 3606 * 3607 * 3608 * <pre> 3609 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3610 * </pre> 3611 * 3612 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3613 */ getWarnings(int index)3614 public com.google.cloud.compute.v1.Warnings getWarnings(int index) { 3615 if (warningsBuilder_ == null) { 3616 return warnings_.get(index); 3617 } else { 3618 return warningsBuilder_.getMessage(index); 3619 } 3620 } 3621 /** 3622 * 3623 * 3624 * <pre> 3625 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3626 * </pre> 3627 * 3628 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3629 */ setWarnings(int index, com.google.cloud.compute.v1.Warnings value)3630 public Builder setWarnings(int index, com.google.cloud.compute.v1.Warnings value) { 3631 if (warningsBuilder_ == null) { 3632 if (value == null) { 3633 throw new NullPointerException(); 3634 } 3635 ensureWarningsIsMutable(); 3636 warnings_.set(index, value); 3637 onChanged(); 3638 } else { 3639 warningsBuilder_.setMessage(index, value); 3640 } 3641 return this; 3642 } 3643 /** 3644 * 3645 * 3646 * <pre> 3647 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3648 * </pre> 3649 * 3650 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3651 */ setWarnings( int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue)3652 public Builder setWarnings( 3653 int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue) { 3654 if (warningsBuilder_ == null) { 3655 ensureWarningsIsMutable(); 3656 warnings_.set(index, builderForValue.build()); 3657 onChanged(); 3658 } else { 3659 warningsBuilder_.setMessage(index, builderForValue.build()); 3660 } 3661 return this; 3662 } 3663 /** 3664 * 3665 * 3666 * <pre> 3667 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3668 * </pre> 3669 * 3670 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3671 */ addWarnings(com.google.cloud.compute.v1.Warnings value)3672 public Builder addWarnings(com.google.cloud.compute.v1.Warnings value) { 3673 if (warningsBuilder_ == null) { 3674 if (value == null) { 3675 throw new NullPointerException(); 3676 } 3677 ensureWarningsIsMutable(); 3678 warnings_.add(value); 3679 onChanged(); 3680 } else { 3681 warningsBuilder_.addMessage(value); 3682 } 3683 return this; 3684 } 3685 /** 3686 * 3687 * 3688 * <pre> 3689 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3690 * </pre> 3691 * 3692 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3693 */ addWarnings(int index, com.google.cloud.compute.v1.Warnings value)3694 public Builder addWarnings(int index, com.google.cloud.compute.v1.Warnings value) { 3695 if (warningsBuilder_ == null) { 3696 if (value == null) { 3697 throw new NullPointerException(); 3698 } 3699 ensureWarningsIsMutable(); 3700 warnings_.add(index, value); 3701 onChanged(); 3702 } else { 3703 warningsBuilder_.addMessage(index, value); 3704 } 3705 return this; 3706 } 3707 /** 3708 * 3709 * 3710 * <pre> 3711 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3712 * </pre> 3713 * 3714 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3715 */ addWarnings(com.google.cloud.compute.v1.Warnings.Builder builderForValue)3716 public Builder addWarnings(com.google.cloud.compute.v1.Warnings.Builder builderForValue) { 3717 if (warningsBuilder_ == null) { 3718 ensureWarningsIsMutable(); 3719 warnings_.add(builderForValue.build()); 3720 onChanged(); 3721 } else { 3722 warningsBuilder_.addMessage(builderForValue.build()); 3723 } 3724 return this; 3725 } 3726 /** 3727 * 3728 * 3729 * <pre> 3730 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3731 * </pre> 3732 * 3733 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3734 */ addWarnings( int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue)3735 public Builder addWarnings( 3736 int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue) { 3737 if (warningsBuilder_ == null) { 3738 ensureWarningsIsMutable(); 3739 warnings_.add(index, builderForValue.build()); 3740 onChanged(); 3741 } else { 3742 warningsBuilder_.addMessage(index, builderForValue.build()); 3743 } 3744 return this; 3745 } 3746 /** 3747 * 3748 * 3749 * <pre> 3750 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3751 * </pre> 3752 * 3753 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3754 */ addAllWarnings( java.lang.Iterable<? extends com.google.cloud.compute.v1.Warnings> values)3755 public Builder addAllWarnings( 3756 java.lang.Iterable<? extends com.google.cloud.compute.v1.Warnings> values) { 3757 if (warningsBuilder_ == null) { 3758 ensureWarningsIsMutable(); 3759 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); 3760 onChanged(); 3761 } else { 3762 warningsBuilder_.addAllMessages(values); 3763 } 3764 return this; 3765 } 3766 /** 3767 * 3768 * 3769 * <pre> 3770 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3771 * </pre> 3772 * 3773 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3774 */ clearWarnings()3775 public Builder clearWarnings() { 3776 if (warningsBuilder_ == null) { 3777 warnings_ = java.util.Collections.emptyList(); 3778 bitField0_ = (bitField0_ & ~0x00001000); 3779 onChanged(); 3780 } else { 3781 warningsBuilder_.clear(); 3782 } 3783 return this; 3784 } 3785 /** 3786 * 3787 * 3788 * <pre> 3789 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3790 * </pre> 3791 * 3792 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3793 */ removeWarnings(int index)3794 public Builder removeWarnings(int index) { 3795 if (warningsBuilder_ == null) { 3796 ensureWarningsIsMutable(); 3797 warnings_.remove(index); 3798 onChanged(); 3799 } else { 3800 warningsBuilder_.remove(index); 3801 } 3802 return this; 3803 } 3804 /** 3805 * 3806 * 3807 * <pre> 3808 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3809 * </pre> 3810 * 3811 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3812 */ getWarningsBuilder(int index)3813 public com.google.cloud.compute.v1.Warnings.Builder getWarningsBuilder(int index) { 3814 return getWarningsFieldBuilder().getBuilder(index); 3815 } 3816 /** 3817 * 3818 * 3819 * <pre> 3820 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3821 * </pre> 3822 * 3823 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3824 */ getWarningsOrBuilder(int index)3825 public com.google.cloud.compute.v1.WarningsOrBuilder getWarningsOrBuilder(int index) { 3826 if (warningsBuilder_ == null) { 3827 return warnings_.get(index); 3828 } else { 3829 return warningsBuilder_.getMessageOrBuilder(index); 3830 } 3831 } 3832 /** 3833 * 3834 * 3835 * <pre> 3836 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3837 * </pre> 3838 * 3839 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3840 */ 3841 public java.util.List<? extends com.google.cloud.compute.v1.WarningsOrBuilder> getWarningsOrBuilderList()3842 getWarningsOrBuilderList() { 3843 if (warningsBuilder_ != null) { 3844 return warningsBuilder_.getMessageOrBuilderList(); 3845 } else { 3846 return java.util.Collections.unmodifiableList(warnings_); 3847 } 3848 } 3849 /** 3850 * 3851 * 3852 * <pre> 3853 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3854 * </pre> 3855 * 3856 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3857 */ addWarningsBuilder()3858 public com.google.cloud.compute.v1.Warnings.Builder addWarningsBuilder() { 3859 return getWarningsFieldBuilder() 3860 .addBuilder(com.google.cloud.compute.v1.Warnings.getDefaultInstance()); 3861 } 3862 /** 3863 * 3864 * 3865 * <pre> 3866 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3867 * </pre> 3868 * 3869 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3870 */ addWarningsBuilder(int index)3871 public com.google.cloud.compute.v1.Warnings.Builder addWarningsBuilder(int index) { 3872 return getWarningsFieldBuilder() 3873 .addBuilder(index, com.google.cloud.compute.v1.Warnings.getDefaultInstance()); 3874 } 3875 /** 3876 * 3877 * 3878 * <pre> 3879 * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. 3880 * </pre> 3881 * 3882 * <code>repeated .google.cloud.compute.v1.Warnings warnings = 498091095;</code> 3883 */ getWarningsBuilderList()3884 public java.util.List<com.google.cloud.compute.v1.Warnings.Builder> getWarningsBuilderList() { 3885 return getWarningsFieldBuilder().getBuilderList(); 3886 } 3887 3888 private com.google.protobuf.RepeatedFieldBuilderV3< 3889 com.google.cloud.compute.v1.Warnings, 3890 com.google.cloud.compute.v1.Warnings.Builder, 3891 com.google.cloud.compute.v1.WarningsOrBuilder> getWarningsFieldBuilder()3892 getWarningsFieldBuilder() { 3893 if (warningsBuilder_ == null) { 3894 warningsBuilder_ = 3895 new com.google.protobuf.RepeatedFieldBuilderV3< 3896 com.google.cloud.compute.v1.Warnings, 3897 com.google.cloud.compute.v1.Warnings.Builder, 3898 com.google.cloud.compute.v1.WarningsOrBuilder>( 3899 warnings_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); 3900 warnings_ = null; 3901 } 3902 return warningsBuilder_; 3903 } 3904 3905 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3906 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3907 return super.setUnknownFields(unknownFields); 3908 } 3909 3910 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3911 public final Builder mergeUnknownFields( 3912 final com.google.protobuf.UnknownFieldSet unknownFields) { 3913 return super.mergeUnknownFields(unknownFields); 3914 } 3915 3916 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SslPolicy) 3917 } 3918 3919 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SslPolicy) 3920 private static final com.google.cloud.compute.v1.SslPolicy DEFAULT_INSTANCE; 3921 3922 static { 3923 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SslPolicy(); 3924 } 3925 getDefaultInstance()3926 public static com.google.cloud.compute.v1.SslPolicy getDefaultInstance() { 3927 return DEFAULT_INSTANCE; 3928 } 3929 3930 private static final com.google.protobuf.Parser<SslPolicy> PARSER = 3931 new com.google.protobuf.AbstractParser<SslPolicy>() { 3932 @java.lang.Override 3933 public SslPolicy parsePartialFrom( 3934 com.google.protobuf.CodedInputStream input, 3935 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3936 throws com.google.protobuf.InvalidProtocolBufferException { 3937 Builder builder = newBuilder(); 3938 try { 3939 builder.mergeFrom(input, extensionRegistry); 3940 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3941 throw e.setUnfinishedMessage(builder.buildPartial()); 3942 } catch (com.google.protobuf.UninitializedMessageException e) { 3943 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3944 } catch (java.io.IOException e) { 3945 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3946 .setUnfinishedMessage(builder.buildPartial()); 3947 } 3948 return builder.buildPartial(); 3949 } 3950 }; 3951 parser()3952 public static com.google.protobuf.Parser<SslPolicy> parser() { 3953 return PARSER; 3954 } 3955 3956 @java.lang.Override getParserForType()3957 public com.google.protobuf.Parser<SslPolicy> getParserForType() { 3958 return PARSER; 3959 } 3960 3961 @java.lang.Override getDefaultInstanceForType()3962 public com.google.cloud.compute.v1.SslPolicy getDefaultInstanceForType() { 3963 return DEFAULT_INSTANCE; 3964 } 3965 } 3966