Class BackendServiceTlsSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackendServiceTlsSettings.Builder>
com.google.cloud.compute.v1.BackendServiceTlsSettings.Builder
All Implemented Interfaces:
BackendServiceTlsSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BackendServiceTlsSettings

public static final class BackendServiceTlsSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackendServiceTlsSettings.Builder> implements BackendServiceTlsSettingsOrBuilder
 
Protobuf type google.cloud.compute.v1.BackendServiceTlsSettings
  • 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<BackendServiceTlsSettings.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<BackendServiceTlsSettings.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<BackendServiceTlsSettings.Builder>
    • getDefaultInstanceForType

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

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

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

      public BackendServiceTlsSettings.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<BackendServiceTlsSettings.Builder>
    • mergeFrom

    • isInitialized

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

      public BackendServiceTlsSettings.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<BackendServiceTlsSettings.Builder>
      Throws:
      IOException
    • hasAuthenticationConfig

      public boolean hasAuthenticationConfig()
       Reference to the BackendAuthenticationConfig resource from the
       networksecurity.googleapis.com namespace. Can be used in authenticating
       TLS connections to the backend, as specified by the authenticationMode
       field. Can only be specified if authenticationMode is not NONE.
       
      optional string authentication_config = 408053481;
      Specified by:
      hasAuthenticationConfig in interface BackendServiceTlsSettingsOrBuilder
      Returns:
      Whether the authenticationConfig field is set.
    • getAuthenticationConfig

      public String getAuthenticationConfig()
       Reference to the BackendAuthenticationConfig resource from the
       networksecurity.googleapis.com namespace. Can be used in authenticating
       TLS connections to the backend, as specified by the authenticationMode
       field. Can only be specified if authenticationMode is not NONE.
       
      optional string authentication_config = 408053481;
      Specified by:
      getAuthenticationConfig in interface BackendServiceTlsSettingsOrBuilder
      Returns:
      The authenticationConfig.
    • getAuthenticationConfigBytes

      public com.google.protobuf.ByteString getAuthenticationConfigBytes()
       Reference to the BackendAuthenticationConfig resource from the
       networksecurity.googleapis.com namespace. Can be used in authenticating
       TLS connections to the backend, as specified by the authenticationMode
       field. Can only be specified if authenticationMode is not NONE.
       
      optional string authentication_config = 408053481;
      Specified by:
      getAuthenticationConfigBytes in interface BackendServiceTlsSettingsOrBuilder
      Returns:
      The bytes for authenticationConfig.
    • setAuthenticationConfig

      public BackendServiceTlsSettings.Builder setAuthenticationConfig(String value)
       Reference to the BackendAuthenticationConfig resource from the
       networksecurity.googleapis.com namespace. Can be used in authenticating
       TLS connections to the backend, as specified by the authenticationMode
       field. Can only be specified if authenticationMode is not NONE.
       
      optional string authentication_config = 408053481;
      Parameters:
      value - The authenticationConfig to set.
      Returns:
      This builder for chaining.
    • clearAuthenticationConfig

      public BackendServiceTlsSettings.Builder clearAuthenticationConfig()
       Reference to the BackendAuthenticationConfig resource from the
       networksecurity.googleapis.com namespace. Can be used in authenticating
       TLS connections to the backend, as specified by the authenticationMode
       field. Can only be specified if authenticationMode is not NONE.
       
      optional string authentication_config = 408053481;
      Returns:
      This builder for chaining.
    • setAuthenticationConfigBytes

      public BackendServiceTlsSettings.Builder setAuthenticationConfigBytes(com.google.protobuf.ByteString value)
       Reference to the BackendAuthenticationConfig resource from the
       networksecurity.googleapis.com namespace. Can be used in authenticating
       TLS connections to the backend, as specified by the authenticationMode
       field. Can only be specified if authenticationMode is not NONE.
       
      optional string authentication_config = 408053481;
      Parameters:
      value - The bytes for authenticationConfig to set.
      Returns:
      This builder for chaining.
    • hasSni

      public boolean hasSni()
       Server Name Indication - see RFC3546 section 3.1. If set, the load
       balancer sends this string as the SNI hostname in the TLS connection to
       the backend, and requires that this string match a Subject Alternative
       Name (SAN) in the backend's server certificate. With a Regional Internet
       NEG backend, if the SNI is specified here, the load balancer uses it
       regardless of whether the Regional Internet NEG is specified with FQDN or
       IP address and port. When both sni and subjectAltNames[] are specified,
       the load balancer matches the backend certificate's SAN only to
       subjectAltNames[].
       
      optional string sni = 114030;
      Specified by:
      hasSni in interface BackendServiceTlsSettingsOrBuilder
      Returns:
      Whether the sni field is set.
    • getSni

      public String getSni()
       Server Name Indication - see RFC3546 section 3.1. If set, the load
       balancer sends this string as the SNI hostname in the TLS connection to
       the backend, and requires that this string match a Subject Alternative
       Name (SAN) in the backend's server certificate. With a Regional Internet
       NEG backend, if the SNI is specified here, the load balancer uses it
       regardless of whether the Regional Internet NEG is specified with FQDN or
       IP address and port. When both sni and subjectAltNames[] are specified,
       the load balancer matches the backend certificate's SAN only to
       subjectAltNames[].
       
      optional string sni = 114030;
      Specified by:
      getSni in interface BackendServiceTlsSettingsOrBuilder
      Returns:
      The sni.
    • getSniBytes

      public com.google.protobuf.ByteString getSniBytes()
       Server Name Indication - see RFC3546 section 3.1. If set, the load
       balancer sends this string as the SNI hostname in the TLS connection to
       the backend, and requires that this string match a Subject Alternative
       Name (SAN) in the backend's server certificate. With a Regional Internet
       NEG backend, if the SNI is specified here, the load balancer uses it
       regardless of whether the Regional Internet NEG is specified with FQDN or
       IP address and port. When both sni and subjectAltNames[] are specified,
       the load balancer matches the backend certificate's SAN only to
       subjectAltNames[].
       
      optional string sni = 114030;
      Specified by:
      getSniBytes in interface BackendServiceTlsSettingsOrBuilder
      Returns:
      The bytes for sni.
    • setSni

       Server Name Indication - see RFC3546 section 3.1. If set, the load
       balancer sends this string as the SNI hostname in the TLS connection to
       the backend, and requires that this string match a Subject Alternative
       Name (SAN) in the backend's server certificate. With a Regional Internet
       NEG backend, if the SNI is specified here, the load balancer uses it
       regardless of whether the Regional Internet NEG is specified with FQDN or
       IP address and port. When both sni and subjectAltNames[] are specified,
       the load balancer matches the backend certificate's SAN only to
       subjectAltNames[].
       
      optional string sni = 114030;
      Parameters:
      value - The sni to set.
      Returns:
      This builder for chaining.
    • clearSni

       Server Name Indication - see RFC3546 section 3.1. If set, the load
       balancer sends this string as the SNI hostname in the TLS connection to
       the backend, and requires that this string match a Subject Alternative
       Name (SAN) in the backend's server certificate. With a Regional Internet
       NEG backend, if the SNI is specified here, the load balancer uses it
       regardless of whether the Regional Internet NEG is specified with FQDN or
       IP address and port. When both sni and subjectAltNames[] are specified,
       the load balancer matches the backend certificate's SAN only to
       subjectAltNames[].
       
      optional string sni = 114030;
      Returns:
      This builder for chaining.
    • setSniBytes

      public BackendServiceTlsSettings.Builder setSniBytes(com.google.protobuf.ByteString value)
       Server Name Indication - see RFC3546 section 3.1. If set, the load
       balancer sends this string as the SNI hostname in the TLS connection to
       the backend, and requires that this string match a Subject Alternative
       Name (SAN) in the backend's server certificate. With a Regional Internet
       NEG backend, if the SNI is specified here, the load balancer uses it
       regardless of whether the Regional Internet NEG is specified with FQDN or
       IP address and port. When both sni and subjectAltNames[] are specified,
       the load balancer matches the backend certificate's SAN only to
       subjectAltNames[].
       
      optional string sni = 114030;
      Parameters:
      value - The bytes for sni to set.
      Returns:
      This builder for chaining.
    • getSubjectAltNamesList

      public List<BackendServiceTlsSettingsSubjectAltName> getSubjectAltNamesList()
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
      Specified by:
      getSubjectAltNamesList in interface BackendServiceTlsSettingsOrBuilder
    • getSubjectAltNamesCount

      public int getSubjectAltNamesCount()
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
      Specified by:
      getSubjectAltNamesCount in interface BackendServiceTlsSettingsOrBuilder
    • getSubjectAltNames

      public BackendServiceTlsSettingsSubjectAltName getSubjectAltNames(int index)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
      Specified by:
      getSubjectAltNames in interface BackendServiceTlsSettingsOrBuilder
    • setSubjectAltNames

      public BackendServiceTlsSettings.Builder setSubjectAltNames(int index, BackendServiceTlsSettingsSubjectAltName value)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • setSubjectAltNames

      public BackendServiceTlsSettings.Builder setSubjectAltNames(int index, BackendServiceTlsSettingsSubjectAltName.Builder builderForValue)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • addSubjectAltNames

       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • addSubjectAltNames

      public BackendServiceTlsSettings.Builder addSubjectAltNames(int index, BackendServiceTlsSettingsSubjectAltName value)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • addSubjectAltNames

       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • addSubjectAltNames

      public BackendServiceTlsSettings.Builder addSubjectAltNames(int index, BackendServiceTlsSettingsSubjectAltName.Builder builderForValue)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • addAllSubjectAltNames

       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • clearSubjectAltNames

      public BackendServiceTlsSettings.Builder clearSubjectAltNames()
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • removeSubjectAltNames

      public BackendServiceTlsSettings.Builder removeSubjectAltNames(int index)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • getSubjectAltNamesBuilder

      public BackendServiceTlsSettingsSubjectAltName.Builder getSubjectAltNamesBuilder(int index)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • getSubjectAltNamesOrBuilder

      public BackendServiceTlsSettingsSubjectAltNameOrBuilder getSubjectAltNamesOrBuilder(int index)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
      Specified by:
      getSubjectAltNamesOrBuilder in interface BackendServiceTlsSettingsOrBuilder
    • getSubjectAltNamesOrBuilderList

      public List<? extends BackendServiceTlsSettingsSubjectAltNameOrBuilder> getSubjectAltNamesOrBuilderList()
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
      Specified by:
      getSubjectAltNamesOrBuilderList in interface BackendServiceTlsSettingsOrBuilder
    • addSubjectAltNamesBuilder

      public BackendServiceTlsSettingsSubjectAltName.Builder addSubjectAltNamesBuilder()
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • addSubjectAltNamesBuilder

      public BackendServiceTlsSettingsSubjectAltName.Builder addSubjectAltNamesBuilder(int index)
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;
    • getSubjectAltNamesBuilderList

      public List<BackendServiceTlsSettingsSubjectAltName.Builder> getSubjectAltNamesBuilderList()
       A list of Subject Alternative Names (SANs) that the Load Balancer
       verifies during a TLS handshake with the backend. When the server
       presents its X.509 certificate to the Load Balancer, the Load Balancer
       inspects the certificate's SAN field, and requires that at least one SAN
       match one of the subjectAltNames in the list. This field is limited to 5
       entries. When both sni and subjectAltNames[] are specified, the load
       balancer matches the backend certificate's SAN only to subjectAltNames[].
       
      repeated .google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName subject_alt_names = 330029535;