All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.compute.v1.SslPolicy Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;

/**
 *
 *
 * 
 * Represents an SSL Policy resource. Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application Load Balancers and proxy Network Load Balancers. For more information, read SSL policies overview.
 * 
* * Protobuf type {@code google.cloud.compute.v1.SslPolicy} */ public final class SslPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SslPolicy) SslPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use SslPolicy.newBuilder() to construct. private SslPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SslPolicy() { creationTimestamp_ = ""; customFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); description_ = ""; enabledFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); fingerprint_ = ""; kind_ = ""; minTlsVersion_ = ""; name_ = ""; profile_ = ""; region_ = ""; selfLink_ = ""; warnings_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SslPolicy(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SslPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.SslPolicy.class, com.google.cloud.compute.v1.SslPolicy.Builder.class); } /** * * *
   * 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.
   * 
* * Protobuf enum {@code google.cloud.compute.v1.SslPolicy.MinTlsVersion} */ public enum MinTlsVersion implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_MIN_TLS_VERSION = 0; */ UNDEFINED_MIN_TLS_VERSION(0), /** * * *
     * TLS 1.0
     * 
* * TLS_1_0 = 33116734; */ TLS_1_0(33116734), /** * * *
     * TLS 1.1
     * 
* * TLS_1_1 = 33116735; */ TLS_1_1(33116735), /** * * *
     * TLS 1.2
     * 
* * TLS_1_2 = 33116736; */ TLS_1_2(33116736), UNRECOGNIZED(-1), ; /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_MIN_TLS_VERSION = 0; */ public static final int UNDEFINED_MIN_TLS_VERSION_VALUE = 0; /** * * *
     * TLS 1.0
     * 
* * TLS_1_0 = 33116734; */ public static final int TLS_1_0_VALUE = 33116734; /** * * *
     * TLS 1.1
     * 
* * TLS_1_1 = 33116735; */ public static final int TLS_1_1_VALUE = 33116735; /** * * *
     * TLS 1.2
     * 
* * TLS_1_2 = 33116736; */ public static final int TLS_1_2_VALUE = 33116736; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MinTlsVersion valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static MinTlsVersion forNumber(int value) { switch (value) { case 0: return UNDEFINED_MIN_TLS_VERSION; case 33116734: return TLS_1_0; case 33116735: return TLS_1_1; case 33116736: return TLS_1_2; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MinTlsVersion findValueByNumber(int number) { return MinTlsVersion.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.compute.v1.SslPolicy.getDescriptor().getEnumTypes().get(0); } private static final MinTlsVersion[] VALUES = values(); public static MinTlsVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private MinTlsVersion(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SslPolicy.MinTlsVersion) } /** * * *
   * 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.
   * 
* * Protobuf enum {@code google.cloud.compute.v1.SslPolicy.Profile} */ public enum Profile implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_PROFILE = 0; */ UNDEFINED_PROFILE(0), /** * * *
     * Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer.
     * 
* * COMPATIBLE = 179357396; */ COMPATIBLE(179357396), /** * * *
     * Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field.
     * 
* * CUSTOM = 388595569; */ CUSTOM(388595569), /** * * *
     * Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer.
     * 
* * MODERN = 132013855; */ MODERN(132013855), /** * * *
     * Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements.
     * 
* * RESTRICTED = 261551195; */ RESTRICTED(261551195), UNRECOGNIZED(-1), ; /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_PROFILE = 0; */ public static final int UNDEFINED_PROFILE_VALUE = 0; /** * * *
     * Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer.
     * 
* * COMPATIBLE = 179357396; */ public static final int COMPATIBLE_VALUE = 179357396; /** * * *
     * Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field.
     * 
* * CUSTOM = 388595569; */ public static final int CUSTOM_VALUE = 388595569; /** * * *
     * Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer.
     * 
* * MODERN = 132013855; */ public static final int MODERN_VALUE = 132013855; /** * * *
     * Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements.
     * 
* * RESTRICTED = 261551195; */ public static final int RESTRICTED_VALUE = 261551195; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Profile valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Profile forNumber(int value) { switch (value) { case 0: return UNDEFINED_PROFILE; case 179357396: return COMPATIBLE; case 388595569: return CUSTOM; case 132013855: return MODERN; case 261551195: return RESTRICTED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Profile findValueByNumber(int number) { return Profile.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.compute.v1.SslPolicy.getDescriptor().getEnumTypes().get(1); } private static final Profile[] VALUES = values(); public static Profile valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Profile(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SslPolicy.Profile) } private int bitField0_; public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; @SuppressWarnings("serial") private volatile java.lang.Object creationTimestamp_ = ""; /** * * *
   * [Output Only] Creation timestamp in RFC3339 text format.
   * 
* * optional string creation_timestamp = 30525366; * * @return Whether the creationTimestamp field is set. */ @java.lang.Override public boolean hasCreationTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * [Output Only] Creation timestamp in RFC3339 text format.
   * 
* * optional string creation_timestamp = 30525366; * * @return The creationTimestamp. */ @java.lang.Override public java.lang.String getCreationTimestamp() { java.lang.Object ref = creationTimestamp_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creationTimestamp_ = s; return s; } } /** * * *
   * [Output Only] Creation timestamp in RFC3339 text format.
   * 
* * optional string creation_timestamp = 30525366; * * @return The bytes for creationTimestamp. */ @java.lang.Override public com.google.protobuf.ByteString getCreationTimestampBytes() { java.lang.Object ref = creationTimestamp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creationTimestamp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CUSTOM_FEATURES_FIELD_NUMBER = 34789707; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList customFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * 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.
   * 
* * repeated string custom_features = 34789707; * * @return A list containing the customFeatures. */ public com.google.protobuf.ProtocolStringList getCustomFeaturesList() { return customFeatures_; } /** * * *
   * 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.
   * 
* * repeated string custom_features = 34789707; * * @return The count of customFeatures. */ public int getCustomFeaturesCount() { return customFeatures_.size(); } /** * * *
   * 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.
   * 
* * repeated string custom_features = 34789707; * * @param index The index of the element to return. * @return The customFeatures at the given index. */ public java.lang.String getCustomFeatures(int index) { return customFeatures_.get(index); } /** * * *
   * 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.
   * 
* * repeated string custom_features = 34789707; * * @param index The index of the value to return. * @return The bytes of the customFeatures at the given index. */ public com.google.protobuf.ByteString getCustomFeaturesBytes(int index) { return customFeatures_.getByteString(index); } public static final int DESCRIPTION_FIELD_NUMBER = 422937596; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * An optional description of this resource. Provide this property when you create the resource.
   * 
* * optional string description = 422937596; * * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * An optional description of this resource. Provide this property when you create the resource.
   * 
* * optional string description = 422937596; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * * *
   * An optional description of this resource. Provide this property when you create the resource.
   * 
* * optional string description = 422937596; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLED_FEATURES_FIELD_NUMBER = 469017467; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList enabledFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * [Output Only] The list of features enabled in the SSL policy.
   * 
* * repeated string enabled_features = 469017467; * * @return A list containing the enabledFeatures. */ public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { return enabledFeatures_; } /** * * *
   * [Output Only] The list of features enabled in the SSL policy.
   * 
* * repeated string enabled_features = 469017467; * * @return The count of enabledFeatures. */ public int getEnabledFeaturesCount() { return enabledFeatures_.size(); } /** * * *
   * [Output Only] The list of features enabled in the SSL policy.
   * 
* * repeated string enabled_features = 469017467; * * @param index The index of the element to return. * @return The enabledFeatures at the given index. */ public java.lang.String getEnabledFeatures(int index) { return enabledFeatures_.get(index); } /** * * *
   * [Output Only] The list of features enabled in the SSL policy.
   * 
* * repeated string enabled_features = 469017467; * * @param index The index of the value to return. * @return The bytes of the enabledFeatures at the given index. */ public com.google.protobuf.ByteString getEnabledFeaturesBytes(int index) { return enabledFeatures_.getByteString(index); } public static final int FINGERPRINT_FIELD_NUMBER = 234678500; @SuppressWarnings("serial") private volatile java.lang.Object fingerprint_ = ""; /** * * *
   * 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.
   * 
* * optional string fingerprint = 234678500; * * @return Whether the fingerprint field is set. */ @java.lang.Override public boolean hasFingerprint() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * 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.
   * 
* * optional string fingerprint = 234678500; * * @return The fingerprint. */ @java.lang.Override public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fingerprint_ = s; return s; } } /** * * *
   * 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.
   * 
* * optional string fingerprint = 234678500; * * @return The bytes for fingerprint. */ @java.lang.Override public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fingerprint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 3355; private long id_ = 0L; /** * * *
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * 
* * optional uint64 id = 3355; * * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * 
* * optional uint64 id = 3355; * * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int KIND_FIELD_NUMBER = 3292052; @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** * * *
   * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
   * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
   * 
* * optional string kind = 3292052; * * @return The kind. */ @java.lang.Override public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** * * *
   * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
   * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ @java.lang.Override public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MIN_TLS_VERSION_FIELD_NUMBER = 8155943; @SuppressWarnings("serial") private volatile java.lang.Object minTlsVersion_ = ""; /** * * *
   * 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.
   * Check the MinTlsVersion enum for the list of possible values.
   * 
* * optional string min_tls_version = 8155943; * * @return Whether the minTlsVersion field is set. */ @java.lang.Override public boolean hasMinTlsVersion() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * 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.
   * Check the MinTlsVersion enum for the list of possible values.
   * 
* * optional string min_tls_version = 8155943; * * @return The minTlsVersion. */ @java.lang.Override public java.lang.String getMinTlsVersion() { java.lang.Object ref = minTlsVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minTlsVersion_ = s; return s; } } /** * * *
   * 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.
   * Check the MinTlsVersion enum for the list of possible values.
   * 
* * optional string min_tls_version = 8155943; * * @return The bytes for minTlsVersion. */ @java.lang.Override public com.google.protobuf.ByteString getMinTlsVersionBytes() { java.lang.Object ref = minTlsVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); minTlsVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3373707; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * 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.
   * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * 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.
   * 
* * optional string name = 3373707; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * 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.
   * 
* * optional string name = 3373707; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROFILE_FIELD_NUMBER = 227445161; @SuppressWarnings("serial") private volatile java.lang.Object profile_ = ""; /** * * *
   * 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.
   * Check the Profile enum for the list of possible values.
   * 
* * optional string profile = 227445161; * * @return Whether the profile field is set. */ @java.lang.Override public boolean hasProfile() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   * 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.
   * Check the Profile enum for the list of possible values.
   * 
* * optional string profile = 227445161; * * @return The profile. */ @java.lang.Override public java.lang.String getProfile() { java.lang.Object ref = profile_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); profile_ = s; return s; } } /** * * *
   * 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.
   * Check the Profile enum for the list of possible values.
   * 
* * optional string profile = 227445161; * * @return The bytes for profile. */ @java.lang.Override public com.google.protobuf.ByteString getProfileBytes() { java.lang.Object ref = profile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); profile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REGION_FIELD_NUMBER = 138946292; @SuppressWarnings("serial") private volatile java.lang.Object region_ = ""; /** * * *
   * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
   * 
* * optional string region = 138946292; * * @return Whether the region field is set. */ @java.lang.Override public boolean hasRegion() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
   * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
   * 
* * optional string region = 138946292; * * @return The region. */ @java.lang.Override public java.lang.String getRegion() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** * * *
   * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
   * 
* * optional string region = 138946292; * * @return The bytes for region. */ @java.lang.Override public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELF_LINK_FIELD_NUMBER = 456214797; @SuppressWarnings("serial") private volatile java.lang.Object selfLink_ = ""; /** * * *
   * [Output Only] Server-defined URL for the resource.
   * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ @java.lang.Override public boolean hasSelfLink() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
   * [Output Only] Server-defined URL for the resource.
   * 
* * optional string self_link = 456214797; * * @return The selfLink. */ @java.lang.Override public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; } } /** * * *
   * [Output Only] Server-defined URL for the resource.
   * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ @java.lang.Override public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WARNINGS_FIELD_NUMBER = 498091095; @SuppressWarnings("serial") private java.util.List warnings_; /** * * *
   * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
   * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ @java.lang.Override public java.util.List getWarningsList() { return warnings_; } /** * * *
   * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
   * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ @java.lang.Override public java.util.List getWarningsOrBuilderList() { return warnings_; } /** * * *
   * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
   * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ @java.lang.Override public int getWarningsCount() { return warnings_.size(); } /** * * *
   * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
   * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ @java.lang.Override public com.google.cloud.compute.v1.Warnings getWarnings(int index) { return warnings_.get(index); } /** * * *
   * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
   * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ @java.lang.Override public com.google.cloud.compute.v1.WarningsOrBuilder getWarningsOrBuilder(int index) { return warnings_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt64(3355, id_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8155943, minTlsVersion_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); } for (int i = 0; i < customFeatures_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 34789707, customFeatures_.getRaw(i)); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 227445161, profile_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 234678500, fingerprint_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); } if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); } for (int i = 0; i < enabledFeatures_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 469017467, enabledFeatures_.getRaw(i)); } for (int i = 0; i < warnings_.size(); i++) { output.writeMessage(498091095, warnings_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8155943, minTlsVersion_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); } { int dataSize = 0; for (int i = 0; i < customFeatures_.size(); i++) { dataSize += computeStringSizeNoTag(customFeatures_.getRaw(i)); } size += dataSize; size += 5 * getCustomFeaturesList().size(); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(227445161, profile_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234678500, fingerprint_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); } { int dataSize = 0; for (int i = 0; i < enabledFeatures_.size(); i++) { dataSize += computeStringSizeNoTag(enabledFeatures_.getRaw(i)); } size += dataSize; size += 5 * getEnabledFeaturesList().size(); } for (int i = 0; i < warnings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(498091095, warnings_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.compute.v1.SslPolicy)) { return super.equals(obj); } com.google.cloud.compute.v1.SslPolicy other = (com.google.cloud.compute.v1.SslPolicy) obj; if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; if (hasCreationTimestamp()) { if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; } if (!getCustomFeaturesList().equals(other.getCustomFeaturesList())) return false; if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription().equals(other.getDescription())) return false; } if (!getEnabledFeaturesList().equals(other.getEnabledFeaturesList())) return false; if (hasFingerprint() != other.hasFingerprint()) return false; if (hasFingerprint()) { if (!getFingerprint().equals(other.getFingerprint())) return false; } if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind().equals(other.getKind())) return false; } if (hasMinTlsVersion() != other.hasMinTlsVersion()) return false; if (hasMinTlsVersion()) { if (!getMinTlsVersion().equals(other.getMinTlsVersion())) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName().equals(other.getName())) return false; } if (hasProfile() != other.hasProfile()) return false; if (hasProfile()) { if (!getProfile().equals(other.getProfile())) return false; } if (hasRegion() != other.hasRegion()) return false; if (hasRegion()) { if (!getRegion().equals(other.getRegion())) return false; } if (hasSelfLink() != other.hasSelfLink()) return false; if (hasSelfLink()) { if (!getSelfLink().equals(other.getSelfLink())) return false; } if (!getWarningsList().equals(other.getWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCreationTimestamp()) { hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getCreationTimestamp().hashCode(); } if (getCustomFeaturesCount() > 0) { hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER; hash = (53 * hash) + getCustomFeaturesList().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (getEnabledFeaturesCount() > 0) { hash = (37 * hash) + ENABLED_FEATURES_FIELD_NUMBER; hash = (53 * hash) + getEnabledFeaturesList().hashCode(); } if (hasFingerprint()) { hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getFingerprint().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasMinTlsVersion()) { hash = (37 * hash) + MIN_TLS_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMinTlsVersion().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasProfile()) { hash = (37 * hash) + PROFILE_FIELD_NUMBER; hash = (53 * hash) + getProfile().hashCode(); } if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasSelfLink()) { hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); } if (getWarningsCount() > 0) { hash = (37 * hash) + WARNINGS_FIELD_NUMBER; hash = (53 * hash) + getWarningsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1.SslPolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.SslPolicy parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.SslPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.SslPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.SslPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.SslPolicy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.SslPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.SslPolicy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.compute.v1.SslPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.SslPolicy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.compute.v1.SslPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.SslPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.compute.v1.SslPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Represents an SSL Policy resource. Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application Load Balancers and proxy Network Load Balancers. For more information, read SSL policies overview.
   * 
* * Protobuf type {@code google.cloud.compute.v1.SslPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SslPolicy) com.google.cloud.compute.v1.SslPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SslPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.SslPolicy.class, com.google.cloud.compute.v1.SslPolicy.Builder.class); } // Construct using com.google.cloud.compute.v1.SslPolicy.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; creationTimestamp_ = ""; customFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); description_ = ""; enabledFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); fingerprint_ = ""; id_ = 0L; kind_ = ""; minTlsVersion_ = ""; name_ = ""; profile_ = ""; region_ = ""; selfLink_ = ""; if (warningsBuilder_ == null) { warnings_ = java.util.Collections.emptyList(); } else { warnings_ = null; warningsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SslPolicy_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.SslPolicy getDefaultInstanceForType() { return com.google.cloud.compute.v1.SslPolicy.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.SslPolicy build() { com.google.cloud.compute.v1.SslPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.SslPolicy buildPartial() { com.google.cloud.compute.v1.SslPolicy result = new com.google.cloud.compute.v1.SslPolicy(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.compute.v1.SslPolicy result) { if (warningsBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0)) { warnings_ = java.util.Collections.unmodifiableList(warnings_); bitField0_ = (bitField0_ & ~0x00001000); } result.warnings_ = warnings_; } else { result.warnings_ = warningsBuilder_.build(); } } private void buildPartial0(com.google.cloud.compute.v1.SslPolicy result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.creationTimestamp_ = creationTimestamp_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { customFeatures_.makeImmutable(); result.customFeatures_ = customFeatures_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { enabledFeatures_.makeImmutable(); result.enabledFeatures_ = enabledFeatures_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.fingerprint_ = fingerprint_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.kind_ = kind_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.minTlsVersion_ = minTlsVersion_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.profile_ = profile_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000400) != 0)) { result.region_ = region_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000800) != 0)) { result.selfLink_ = selfLink_; to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.compute.v1.SslPolicy) { return mergeFrom((com.google.cloud.compute.v1.SslPolicy) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.SslPolicy other) { if (other == com.google.cloud.compute.v1.SslPolicy.getDefaultInstance()) return this; if (other.hasCreationTimestamp()) { creationTimestamp_ = other.creationTimestamp_; bitField0_ |= 0x00000001; onChanged(); } if (!other.customFeatures_.isEmpty()) { if (customFeatures_.isEmpty()) { customFeatures_ = other.customFeatures_; bitField0_ |= 0x00000002; } else { ensureCustomFeaturesIsMutable(); customFeatures_.addAll(other.customFeatures_); } onChanged(); } if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (!other.enabledFeatures_.isEmpty()) { if (enabledFeatures_.isEmpty()) { enabledFeatures_ = other.enabledFeatures_; bitField0_ |= 0x00000008; } else { ensureEnabledFeaturesIsMutable(); enabledFeatures_.addAll(other.enabledFeatures_); } onChanged(); } if (other.hasFingerprint()) { fingerprint_ = other.fingerprint_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasKind()) { kind_ = other.kind_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasMinTlsVersion()) { minTlsVersion_ = other.minTlsVersion_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000100; onChanged(); } if (other.hasProfile()) { profile_ = other.profile_; bitField0_ |= 0x00000200; onChanged(); } if (other.hasRegion()) { region_ = other.region_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; bitField0_ |= 0x00000800; onChanged(); } if (warningsBuilder_ == null) { if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureWarningsIsMutable(); warnings_.addAll(other.warnings_); } onChanged(); } } else { if (!other.warnings_.isEmpty()) { if (warningsBuilder_.isEmpty()) { warningsBuilder_.dispose(); warningsBuilder_ = null; warnings_ = other.warnings_; bitField0_ = (bitField0_ & ~0x00001000); warningsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWarningsFieldBuilder() : null; } else { warningsBuilder_.addAllMessages(other.warnings_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 26840: { id_ = input.readUInt64(); bitField0_ |= 0x00000020; break; } // case 26840 case 26336418: { kind_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 26336418 case 26989658: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 26989658 case 65247546: { minTlsVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 65247546 case 244202930: { creationTimestamp_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 244202930 case 278317658: { java.lang.String s = input.readStringRequireUtf8(); ensureCustomFeaturesIsMutable(); customFeatures_.add(s); break; } // case 278317658 case 1111570338: { region_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 1111570338 case 1819561290: { profile_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 1819561290 case 1877428002: { fingerprint_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 1877428002 case -911466526: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case -911466526 case -645248918: { selfLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case -645248918 case -542827558: { java.lang.String s = input.readStringRequireUtf8(); ensureEnabledFeaturesIsMutable(); enabledFeatures_.add(s); break; } // case -542827558 case -310238534: { com.google.cloud.compute.v1.Warnings m = input.readMessage( com.google.cloud.compute.v1.Warnings.parser(), extensionRegistry); if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.add(m); } else { warningsBuilder_.addMessage(m); } break; } // case -310238534 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object creationTimestamp_ = ""; /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return Whether the creationTimestamp field is set. */ public boolean hasCreationTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return The creationTimestamp. */ public java.lang.String getCreationTimestamp() { java.lang.Object ref = creationTimestamp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creationTimestamp_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return The bytes for creationTimestamp. */ public com.google.protobuf.ByteString getCreationTimestampBytes() { java.lang.Object ref = creationTimestamp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creationTimestamp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @param value The creationTimestamp to set. * @return This builder for chaining. */ public Builder setCreationTimestamp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } creationTimestamp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return This builder for chaining. */ public Builder clearCreationTimestamp() { creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @param value The bytes for creationTimestamp to set. * @return This builder for chaining. */ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); creationTimestamp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList customFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCustomFeaturesIsMutable() { if (!customFeatures_.isModifiable()) { customFeatures_ = new com.google.protobuf.LazyStringArrayList(customFeatures_); } bitField0_ |= 0x00000002; } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @return A list containing the customFeatures. */ public com.google.protobuf.ProtocolStringList getCustomFeaturesList() { customFeatures_.makeImmutable(); return customFeatures_; } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @return The count of customFeatures. */ public int getCustomFeaturesCount() { return customFeatures_.size(); } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @param index The index of the element to return. * @return The customFeatures at the given index. */ public java.lang.String getCustomFeatures(int index) { return customFeatures_.get(index); } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @param index The index of the value to return. * @return The bytes of the customFeatures at the given index. */ public com.google.protobuf.ByteString getCustomFeaturesBytes(int index) { return customFeatures_.getByteString(index); } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @param index The index to set the value at. * @param value The customFeatures to set. * @return This builder for chaining. */ public Builder setCustomFeatures(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCustomFeaturesIsMutable(); customFeatures_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @param value The customFeatures to add. * @return This builder for chaining. */ public Builder addCustomFeatures(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCustomFeaturesIsMutable(); customFeatures_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @param values The customFeatures to add. * @return This builder for chaining. */ public Builder addAllCustomFeatures(java.lang.Iterable values) { ensureCustomFeaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customFeatures_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @return This builder for chaining. */ public Builder clearCustomFeatures() { customFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); ; onChanged(); return this; } /** * * *
     * 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.
     * 
* * repeated string custom_features = 34789707; * * @param value The bytes of the customFeatures to add. * @return This builder for chaining. */ public Builder addCustomFeaturesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCustomFeaturesIsMutable(); customFeatures_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList enabledFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEnabledFeaturesIsMutable() { if (!enabledFeatures_.isModifiable()) { enabledFeatures_ = new com.google.protobuf.LazyStringArrayList(enabledFeatures_); } bitField0_ |= 0x00000008; } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @return A list containing the enabledFeatures. */ public com.google.protobuf.ProtocolStringList getEnabledFeaturesList() { enabledFeatures_.makeImmutable(); return enabledFeatures_; } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @return The count of enabledFeatures. */ public int getEnabledFeaturesCount() { return enabledFeatures_.size(); } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @param index The index of the element to return. * @return The enabledFeatures at the given index. */ public java.lang.String getEnabledFeatures(int index) { return enabledFeatures_.get(index); } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @param index The index of the value to return. * @return The bytes of the enabledFeatures at the given index. */ public com.google.protobuf.ByteString getEnabledFeaturesBytes(int index) { return enabledFeatures_.getByteString(index); } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @param index The index to set the value at. * @param value The enabledFeatures to set. * @return This builder for chaining. */ public Builder setEnabledFeatures(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnabledFeaturesIsMutable(); enabledFeatures_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @param value The enabledFeatures to add. * @return This builder for chaining. */ public Builder addEnabledFeatures(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnabledFeaturesIsMutable(); enabledFeatures_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @param values The enabledFeatures to add. * @return This builder for chaining. */ public Builder addAllEnabledFeatures(java.lang.Iterable values) { ensureEnabledFeaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enabledFeatures_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @return This builder for chaining. */ public Builder clearEnabledFeatures() { enabledFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; } /** * * *
     * [Output Only] The list of features enabled in the SSL policy.
     * 
* * repeated string enabled_features = 469017467; * * @param value The bytes of the enabledFeatures to add. * @return This builder for chaining. */ public Builder addEnabledFeaturesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEnabledFeaturesIsMutable(); enabledFeatures_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object fingerprint_ = ""; /** * * *
     * 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.
     * 
* * optional string fingerprint = 234678500; * * @return Whether the fingerprint field is set. */ public boolean hasFingerprint() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * 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.
     * 
* * optional string fingerprint = 234678500; * * @return The fingerprint. */ public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fingerprint_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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.
     * 
* * optional string fingerprint = 234678500; * * @return The bytes for fingerprint. */ public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fingerprint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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.
     * 
* * optional string fingerprint = 234678500; * * @param value The fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } fingerprint_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * 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.
     * 
* * optional string fingerprint = 234678500; * * @return This builder for chaining. */ public Builder clearFingerprint() { fingerprint_ = getDefaultInstance().getFingerprint(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * 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.
     * 
* * optional string fingerprint = 234678500; * * @param value The bytes for fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprintBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fingerprint_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private long id_; /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @return The id. */ @java.lang.Override public long getId() { return id_; } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000020); id_ = 0L; onChanged(); return this; } private java.lang.Object kind_ = ""; /** * * *
     * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
     * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
     * 
* * optional string kind = 3292052; * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
     * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
     * 
* * optional string kind = 3292052; * * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
     * 
* * optional string kind = 3292052; * * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
     * 
* * optional string kind = 3292052; * * @param value The bytes for kind to set. * @return This builder for chaining. */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object minTlsVersion_ = ""; /** * * *
     * 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.
     * Check the MinTlsVersion enum for the list of possible values.
     * 
* * optional string min_tls_version = 8155943; * * @return Whether the minTlsVersion field is set. */ public boolean hasMinTlsVersion() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * 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.
     * Check the MinTlsVersion enum for the list of possible values.
     * 
* * optional string min_tls_version = 8155943; * * @return The minTlsVersion. */ public java.lang.String getMinTlsVersion() { java.lang.Object ref = minTlsVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); minTlsVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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.
     * Check the MinTlsVersion enum for the list of possible values.
     * 
* * optional string min_tls_version = 8155943; * * @return The bytes for minTlsVersion. */ public com.google.protobuf.ByteString getMinTlsVersionBytes() { java.lang.Object ref = minTlsVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); minTlsVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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.
     * Check the MinTlsVersion enum for the list of possible values.
     * 
* * optional string min_tls_version = 8155943; * * @param value The minTlsVersion to set. * @return This builder for chaining. */ public Builder setMinTlsVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } minTlsVersion_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * 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.
     * Check the MinTlsVersion enum for the list of possible values.
     * 
* * optional string min_tls_version = 8155943; * * @return This builder for chaining. */ public Builder clearMinTlsVersion() { minTlsVersion_ = getDefaultInstance().getMinTlsVersion(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * 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.
     * Check the MinTlsVersion enum for the list of possible values.
     * 
* * optional string min_tls_version = 8155943; * * @param value The bytes for minTlsVersion to set. * @return This builder for chaining. */ public Builder setMinTlsVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); minTlsVersion_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
     * 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.
     * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * 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.
     * 
* * optional string name = 3373707; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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.
     * 
* * optional string name = 3373707; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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.
     * 
* * optional string name = 3373707; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * 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.
     * 
* * optional string name = 3373707; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * 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.
     * 
* * optional string name = 3373707; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private java.lang.Object profile_ = ""; /** * * *
     * 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.
     * Check the Profile enum for the list of possible values.
     * 
* * optional string profile = 227445161; * * @return Whether the profile field is set. */ public boolean hasProfile() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * 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.
     * Check the Profile enum for the list of possible values.
     * 
* * optional string profile = 227445161; * * @return The profile. */ public java.lang.String getProfile() { java.lang.Object ref = profile_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); profile_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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.
     * Check the Profile enum for the list of possible values.
     * 
* * optional string profile = 227445161; * * @return The bytes for profile. */ public com.google.protobuf.ByteString getProfileBytes() { java.lang.Object ref = profile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); profile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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.
     * Check the Profile enum for the list of possible values.
     * 
* * optional string profile = 227445161; * * @param value The profile to set. * @return This builder for chaining. */ public Builder setProfile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } profile_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * 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.
     * Check the Profile enum for the list of possible values.
     * 
* * optional string profile = 227445161; * * @return This builder for chaining. */ public Builder clearProfile() { profile_ = getDefaultInstance().getProfile(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * * *
     * 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.
     * Check the Profile enum for the list of possible values.
     * 
* * optional string profile = 227445161; * * @param value The bytes for profile to set. * @return This builder for chaining. */ public Builder setProfileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); profile_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object region_ = ""; /** * * *
     * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
     * 
* * optional string region = 138946292; * * @return Whether the region field is set. */ public boolean hasRegion() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
     * 
* * optional string region = 138946292; * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
     * 
* * optional string region = 138946292; * * @return The bytes for region. */ public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
     * 
* * optional string region = 138946292; * * @param value The region to set. * @return This builder for chaining. */ public Builder setRegion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } region_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
     * 
* * optional string region = 138946292; * * @return This builder for chaining. */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * [Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.
     * 
* * optional string region = 138946292; * * @param value The bytes for region to set. * @return This builder for chaining. */ public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); region_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object selfLink_ = ""; /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @param value The selfLink to set. * @return This builder for chaining. */ public Builder setSelfLink(java.lang.String value) { if (value == null) { throw new NullPointerException(); } selfLink_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return This builder for chaining. */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @param value The bytes for selfLink to set. * @return This builder for chaining. */ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selfLink_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.util.List warnings_ = java.util.Collections.emptyList(); private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { warnings_ = new java.util.ArrayList(warnings_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.Warnings, com.google.cloud.compute.v1.Warnings.Builder, com.google.cloud.compute.v1.WarningsOrBuilder> warningsBuilder_; /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public java.util.List getWarningsList() { if (warningsBuilder_ == null) { return java.util.Collections.unmodifiableList(warnings_); } else { return warningsBuilder_.getMessageList(); } } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public int getWarningsCount() { if (warningsBuilder_ == null) { return warnings_.size(); } else { return warningsBuilder_.getCount(); } } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public com.google.cloud.compute.v1.Warnings getWarnings(int index) { if (warningsBuilder_ == null) { return warnings_.get(index); } else { return warningsBuilder_.getMessage(index); } } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder setWarnings(int index, com.google.cloud.compute.v1.Warnings value) { if (warningsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWarningsIsMutable(); warnings_.set(index, value); onChanged(); } else { warningsBuilder_.setMessage(index, value); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder setWarnings( int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.set(index, builderForValue.build()); onChanged(); } else { warningsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder addWarnings(com.google.cloud.compute.v1.Warnings value) { if (warningsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWarningsIsMutable(); warnings_.add(value); onChanged(); } else { warningsBuilder_.addMessage(value); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder addWarnings(int index, com.google.cloud.compute.v1.Warnings value) { if (warningsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWarningsIsMutable(); warnings_.add(index, value); onChanged(); } else { warningsBuilder_.addMessage(index, value); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder addWarnings(com.google.cloud.compute.v1.Warnings.Builder builderForValue) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.add(builderForValue.build()); onChanged(); } else { warningsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder addWarnings( int index, com.google.cloud.compute.v1.Warnings.Builder builderForValue) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.add(index, builderForValue.build()); onChanged(); } else { warningsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder addAllWarnings( java.lang.Iterable values) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); } else { warningsBuilder_.addAllMessages(values); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder clearWarnings() { if (warningsBuilder_ == null) { warnings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { warningsBuilder_.clear(); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public Builder removeWarnings(int index) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.remove(index); onChanged(); } else { warningsBuilder_.remove(index); } return this; } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public com.google.cloud.compute.v1.Warnings.Builder getWarningsBuilder(int index) { return getWarningsFieldBuilder().getBuilder(index); } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public com.google.cloud.compute.v1.WarningsOrBuilder getWarningsOrBuilder(int index) { if (warningsBuilder_ == null) { return warnings_.get(index); } else { return warningsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public java.util.List getWarningsOrBuilderList() { if (warningsBuilder_ != null) { return warningsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(warnings_); } } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public com.google.cloud.compute.v1.Warnings.Builder addWarningsBuilder() { return getWarningsFieldBuilder() .addBuilder(com.google.cloud.compute.v1.Warnings.getDefaultInstance()); } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public com.google.cloud.compute.v1.Warnings.Builder addWarningsBuilder(int index) { return getWarningsFieldBuilder() .addBuilder(index, com.google.cloud.compute.v1.Warnings.getDefaultInstance()); } /** * * *
     * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.
     * 
* * repeated .google.cloud.compute.v1.Warnings warnings = 498091095; */ public java.util.List getWarningsBuilderList() { return getWarningsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.Warnings, com.google.cloud.compute.v1.Warnings.Builder, com.google.cloud.compute.v1.WarningsOrBuilder> getWarningsFieldBuilder() { if (warningsBuilder_ == null) { warningsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.Warnings, com.google.cloud.compute.v1.Warnings.Builder, com.google.cloud.compute.v1.WarningsOrBuilder>( warnings_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); warnings_ = null; } return warningsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SslPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SslPolicy) private static final com.google.cloud.compute.v1.SslPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SslPolicy(); } public static com.google.cloud.compute.v1.SslPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SslPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.compute.v1.SslPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy