Class SslPolicy.Builder

  • All Implemented Interfaces:
    SslPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SslPolicy

    public static final class SslPolicy.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
    implements SslPolicyOrBuilder
     Represents an SSL Policy resource. Use SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts.
     
    Protobuf type google.cloud.compute.v1.SslPolicy
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • clear

        public SslPolicy.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • getDefaultInstanceForType

        public SslPolicy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SslPolicy build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SslPolicy buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SslPolicy.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • setField

        public SslPolicy.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • clearField

        public SslPolicy.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • clearOneof

        public SslPolicy.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • setRepeatedField

        public SslPolicy.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • addRepeatedField

        public SslPolicy.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • mergeFrom

        public SslPolicy.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SslPolicy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • mergeFrom

        public SslPolicy.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SslPolicy.Builder>
        Throws:
        IOException
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        hasCreationTimestamp in interface SslPolicyOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public String getCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestamp in interface SslPolicyOrBuilder
        Returns:
        The creationTimestamp.
      • getCreationTimestampBytes

        public com.google.protobuf.ByteString getCreationTimestampBytes()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestampBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for creationTimestamp.
      • setCreationTimestamp

        public SslPolicy.Builder setCreationTimestamp​(String value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The creationTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreationTimestamp

        public SslPolicy.Builder clearCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Returns:
        This builder for chaining.
      • setCreationTimestampBytes

        public SslPolicy.Builder setCreationTimestampBytes​(com.google.protobuf.ByteString value)
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Parameters:
        value - The bytes for creationTimestamp to set.
        Returns:
        This builder for chaining.
      • getCustomFeaturesList

        public com.google.protobuf.ProtocolStringList getCustomFeaturesList()
         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;
        Specified by:
        getCustomFeaturesList in interface SslPolicyOrBuilder
        Returns:
        A list containing the customFeatures.
      • getCustomFeaturesCount

        public int getCustomFeaturesCount()
         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;
        Specified by:
        getCustomFeaturesCount in interface SslPolicyOrBuilder
        Returns:
        The count of customFeatures.
      • getCustomFeatures

        public String getCustomFeatures​(int 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;
        Specified by:
        getCustomFeatures in interface SslPolicyOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The customFeatures at the given index.
      • getCustomFeaturesBytes

        public com.google.protobuf.ByteString getCustomFeaturesBytes​(int 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;
        Specified by:
        getCustomFeaturesBytes in interface SslPolicyOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the customFeatures at the given index.
      • setCustomFeatures

        public SslPolicy.Builder setCustomFeatures​(int index,
                                                   String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The customFeatures to set.
        Returns:
        This builder for chaining.
      • addCustomFeatures

        public SslPolicy.Builder addCustomFeatures​(String value)
         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;
        Parameters:
        value - The customFeatures to add.
        Returns:
        This builder for chaining.
      • addAllCustomFeatures

        public SslPolicy.Builder addAllCustomFeatures​(Iterable<String> values)
         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;
        Parameters:
        values - The customFeatures to add.
        Returns:
        This builder for chaining.
      • clearCustomFeatures

        public SslPolicy.Builder clearCustomFeatures()
         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;
        Returns:
        This builder for chaining.
      • addCustomFeaturesBytes

        public SslPolicy.Builder addCustomFeaturesBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the customFeatures to add.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        hasDescription in interface SslPolicyOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescription in interface SslPolicyOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescriptionBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public SslPolicy.Builder setDescription​(String value)
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public SslPolicy.Builder clearDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public SslPolicy.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getEnabledFeaturesList

        public com.google.protobuf.ProtocolStringList getEnabledFeaturesList()
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeaturesList in interface SslPolicyOrBuilder
        Returns:
        A list containing the enabledFeatures.
      • getEnabledFeaturesCount

        public int getEnabledFeaturesCount()
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeaturesCount in interface SslPolicyOrBuilder
        Returns:
        The count of enabledFeatures.
      • getEnabledFeatures

        public String getEnabledFeatures​(int index)
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeatures in interface SslPolicyOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The enabledFeatures at the given index.
      • getEnabledFeaturesBytes

        public com.google.protobuf.ByteString getEnabledFeaturesBytes​(int index)
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Specified by:
        getEnabledFeaturesBytes in interface SslPolicyOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the enabledFeatures at the given index.
      • setEnabledFeatures

        public SslPolicy.Builder setEnabledFeatures​(int index,
                                                    String value)
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Parameters:
        index - The index to set the value at.
        value - The enabledFeatures to set.
        Returns:
        This builder for chaining.
      • addEnabledFeatures

        public SslPolicy.Builder addEnabledFeatures​(String value)
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Parameters:
        value - The enabledFeatures to add.
        Returns:
        This builder for chaining.
      • addAllEnabledFeatures

        public SslPolicy.Builder addAllEnabledFeatures​(Iterable<String> values)
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Parameters:
        values - The enabledFeatures to add.
        Returns:
        This builder for chaining.
      • clearEnabledFeatures

        public SslPolicy.Builder clearEnabledFeatures()
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Returns:
        This builder for chaining.
      • addEnabledFeaturesBytes

        public SslPolicy.Builder addEnabledFeaturesBytes​(com.google.protobuf.ByteString value)
         [Output Only] The list of features enabled in the SSL policy.
         
        repeated string enabled_features = 469017467;
        Parameters:
        value - The bytes of the enabledFeatures to add.
        Returns:
        This builder for chaining.
      • hasFingerprint

        public boolean hasFingerprint()
         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;
        Specified by:
        hasFingerprint in interface SslPolicyOrBuilder
        Returns:
        Whether the fingerprint field is set.
      • getFingerprint

        public String getFingerprint()
         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;
        Specified by:
        getFingerprint in interface SslPolicyOrBuilder
        Returns:
        The fingerprint.
      • getFingerprintBytes

        public com.google.protobuf.ByteString getFingerprintBytes()
         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;
        Specified by:
        getFingerprintBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for fingerprint.
      • setFingerprint

        public SslPolicy.Builder setFingerprint​(String value)
         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;
        Parameters:
        value - The fingerprint to set.
        Returns:
        This builder for chaining.
      • clearFingerprint

        public SslPolicy.Builder clearFingerprint()
         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;
        Returns:
        This builder for chaining.
      • setFingerprintBytes

        public SslPolicy.Builder setFingerprintBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for fingerprint to set.
        Returns:
        This builder for chaining.
      • hasId

        public boolean hasId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface SslPolicyOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface SslPolicyOrBuilder
        Returns:
        The id.
      • setId

        public SslPolicy.Builder setId​(long value)
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public SslPolicy.Builder clearId()
         [Output Only] The unique identifier for the resource. This identifier is defined by the server.
         
        optional uint64 id = 3355;
        Returns:
        This builder for chaining.
      • hasKind

        public boolean hasKind()
         [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface SslPolicyOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
         
        optional string kind = 3292052;
        Specified by:
        getKind in interface SslPolicyOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public SslPolicy.Builder setKind​(String value)
         [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public SslPolicy.Builder clearKind()
         [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
         
        optional string kind = 3292052;
        Returns:
        This builder for chaining.
      • setKindBytes

        public SslPolicy.Builder setKindBytes​(com.google.protobuf.ByteString value)
         [Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.
         
        optional string kind = 3292052;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasMinTlsVersion

        public boolean hasMinTlsVersion()
         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;
        Specified by:
        hasMinTlsVersion in interface SslPolicyOrBuilder
        Returns:
        Whether the minTlsVersion field is set.
      • getMinTlsVersion

        public String getMinTlsVersion()
         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;
        Specified by:
        getMinTlsVersion in interface SslPolicyOrBuilder
        Returns:
        The minTlsVersion.
      • getMinTlsVersionBytes

        public com.google.protobuf.ByteString getMinTlsVersionBytes()
         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;
        Specified by:
        getMinTlsVersionBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for minTlsVersion.
      • setMinTlsVersion

        public SslPolicy.Builder setMinTlsVersion​(String value)
         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;
        Parameters:
        value - The minTlsVersion to set.
        Returns:
        This builder for chaining.
      • clearMinTlsVersion

        public SslPolicy.Builder clearMinTlsVersion()
         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;
        Returns:
        This builder for chaining.
      • setMinTlsVersionBytes

        public SslPolicy.Builder setMinTlsVersionBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for minTlsVersion to set.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         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;
        Specified by:
        hasName in interface SslPolicyOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         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;
        Specified by:
        getName in interface SslPolicyOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         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;
        Specified by:
        getNameBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for name.
      • setName

        public SslPolicy.Builder setName​(String value)
         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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public SslPolicy.Builder clearName()
         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;
        Returns:
        This builder for chaining.
      • setNameBytes

        public SslPolicy.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasProfile

        public boolean hasProfile()
         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;
        Specified by:
        hasProfile in interface SslPolicyOrBuilder
        Returns:
        Whether the profile field is set.
      • getProfile

        public String getProfile()
         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;
        Specified by:
        getProfile in interface SslPolicyOrBuilder
        Returns:
        The profile.
      • getProfileBytes

        public com.google.protobuf.ByteString getProfileBytes()
         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;
        Specified by:
        getProfileBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for profile.
      • setProfile

        public SslPolicy.Builder setProfile​(String value)
         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;
        Parameters:
        value - The profile to set.
        Returns:
        This builder for chaining.
      • clearProfile

        public SslPolicy.Builder clearProfile()
         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;
        Returns:
        This builder for chaining.
      • setProfileBytes

        public SslPolicy.Builder setProfileBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for profile to set.
        Returns:
        This builder for chaining.
      • hasRegion

        public boolean hasRegion()
         [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;
        Specified by:
        hasRegion in interface SslPolicyOrBuilder
        Returns:
        Whether the region field is set.
      • getRegion

        public String getRegion()
         [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;
        Specified by:
        getRegion in interface SslPolicyOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public com.google.protobuf.ByteString getRegionBytes()
         [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;
        Specified by:
        getRegionBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        public SslPolicy.Builder setRegion​(String value)
         [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;
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public SslPolicy.Builder clearRegion()
         [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;
        Returns:
        This builder for chaining.
      • setRegionBytes

        public SslPolicy.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         [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;
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • hasSelfLink

        public boolean hasSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        hasSelfLink in interface SslPolicyOrBuilder
        Returns:
        Whether the selfLink field is set.
      • getSelfLink

        public String getSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLink in interface SslPolicyOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface SslPolicyOrBuilder
        Returns:
        The bytes for selfLink.
      • setSelfLink

        public SslPolicy.Builder setSelfLink​(String value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The selfLink to set.
        Returns:
        This builder for chaining.
      • clearSelfLink

        public SslPolicy.Builder clearSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Returns:
        This builder for chaining.
      • setSelfLinkBytes

        public SslPolicy.Builder setSelfLinkBytes​(com.google.protobuf.ByteString value)
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Parameters:
        value - The bytes for selfLink to set.
        Returns:
        This builder for chaining.
      • getWarningsList

        public List<Warnings> getWarningsList()
         [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;
        Specified by:
        getWarningsList in interface SslPolicyOrBuilder
      • getWarningsCount

        public int getWarningsCount()
         [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;
        Specified by:
        getWarningsCount in interface SslPolicyOrBuilder
      • getWarnings

        public Warnings getWarnings​(int 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;
        Specified by:
        getWarnings in interface SslPolicyOrBuilder
      • setWarnings

        public SslPolicy.Builder setWarnings​(int index,
                                             Warnings value)
         [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;
      • setWarnings

        public SslPolicy.Builder setWarnings​(int index,
                                             Warnings.Builder builderForValue)
         [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;
      • addWarnings

        public SslPolicy.Builder addWarnings​(Warnings value)
         [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;
      • addWarnings

        public SslPolicy.Builder addWarnings​(int index,
                                             Warnings value)
         [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;
      • addWarnings

        public SslPolicy.Builder addWarnings​(Warnings.Builder builderForValue)
         [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;
      • addWarnings

        public SslPolicy.Builder addWarnings​(int index,
                                             Warnings.Builder builderForValue)
         [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;
      • addAllWarnings

        public SslPolicy.Builder addAllWarnings​(Iterable<? extends Warnings> values)
         [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;
      • clearWarnings

        public SslPolicy.Builder clearWarnings()
         [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;
      • removeWarnings

        public SslPolicy.Builder removeWarnings​(int 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;
      • getWarningsBuilder

        public Warnings.Builder getWarningsBuilder​(int 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;
      • getWarningsOrBuilder

        public WarningsOrBuilder getWarningsOrBuilder​(int 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;
        Specified by:
        getWarningsOrBuilder in interface SslPolicyOrBuilder
      • getWarningsOrBuilderList

        public List<? extends WarningsOrBuilder> getWarningsOrBuilderList()
         [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;
        Specified by:
        getWarningsOrBuilderList in interface SslPolicyOrBuilder
      • addWarningsBuilder

        public Warnings.Builder addWarningsBuilder()
         [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;
      • addWarningsBuilder

        public Warnings.Builder addWarningsBuilder​(int 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;
      • getWarningsBuilderList

        public List<Warnings.Builder> getWarningsBuilderList()
         [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;
      • setUnknownFields

        public final SslPolicy.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>
      • mergeUnknownFields

        public final SslPolicy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SslPolicy.Builder>