Class SslPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SslPolicy.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.Builder<SslPolicy.Builder> implements SslPolicyOrBuilder
 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 google.cloud.compute.v1.SslPolicy
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public SslPolicy.Builder mergeFrom(SslPolicy other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       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. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public SslPolicy.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Creation timestamp inRFC3339
       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 notCUSTOM.
       
      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 notCUSTOM.
       
      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 notCUSTOM.
       
      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 notCUSTOM.
       
      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 notCUSTOM.
       
      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 notCUSTOM.
       
      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 notCUSTOM.
       
      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 notCUSTOM.
       
      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 notCUSTOM.
       
      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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [Output only] Type of the resource. Alwayscompute#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. [Output only] Type of the resource. Alwayscompute#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. [Output only] Type of the resource. Alwayscompute#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. [Output only] Type of the resource. Alwayscompute#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. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public SslPolicy.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output only] Type of the resource. Alwayscompute#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 ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field
       must be set to RESTRICTED.
       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 ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field
       must be set to RESTRICTED.
       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 ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field
       must be set to RESTRICTED.
       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 ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field
       must be set to RESTRICTED.
       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 ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field
       must be set to RESTRICTED.
       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 ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the profile field
       must be set to RESTRICTED.
       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 ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in
       the customFeatures field. If using FIPS_202205,
       the min_tls_version field must be set to TLS_1_2.
       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 ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in
       the customFeatures field. If using FIPS_202205,
       the min_tls_version field must be set to TLS_1_2.
       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 ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in
       the customFeatures field. If using FIPS_202205,
       the min_tls_version field must be set to TLS_1_2.
       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 ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in
       the customFeatures field. If using FIPS_202205,
       the min_tls_version field must be set to TLS_1_2.
       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 ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in
       the customFeatures field. If using FIPS_202205,
       the min_tls_version field must be set to TLS_1_2.
       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 ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in
       the customFeatures field. If using FIPS_202205,
       the min_tls_version field must be set to TLS_1_2.
       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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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;