Class BackendServiceTlsSettings.Builder (1.88.0)

public static final class BackendServiceTlsSettings.Builder extends GeneratedMessageV3.Builder<BackendServiceTlsSettings.Builder> implements BackendServiceTlsSettingsOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceTlsSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSubjectAltNames(Iterable<? extends BackendServiceTlsSettingsSubjectAltName> values)

public BackendServiceTlsSettings.Builder addAllSubjectAltNames(Iterable<? extends BackendServiceTlsSettingsSubjectAltName> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltName>
Returns
Type Description
BackendServiceTlsSettings.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceTlsSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceTlsSettings.Builder
Overrides

addSubjectAltNames(BackendServiceTlsSettingsSubjectAltName value)

public BackendServiceTlsSettings.Builder addSubjectAltNames(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;

Parameter
Name Description
value BackendServiceTlsSettingsSubjectAltName
Returns
Type Description
BackendServiceTlsSettings.Builder

addSubjectAltNames(BackendServiceTlsSettingsSubjectAltName.Builder builderForValue)

public BackendServiceTlsSettings.Builder addSubjectAltNames(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;

Parameter
Name Description
builderForValue BackendServiceTlsSettingsSubjectAltName.Builder
Returns
Type Description
BackendServiceTlsSettings.Builder

addSubjectAltNames(int index, BackendServiceTlsSettingsSubjectAltName value)

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;

Parameters
Name Description
index int
value BackendServiceTlsSettingsSubjectAltName
Returns
Type Description
BackendServiceTlsSettings.Builder

addSubjectAltNames(int index, BackendServiceTlsSettingsSubjectAltName.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue BackendServiceTlsSettingsSubjectAltName.Builder
Returns
Type Description
BackendServiceTlsSettings.Builder

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;

Returns
Type Description
BackendServiceTlsSettingsSubjectAltName.Builder

addSubjectAltNamesBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
BackendServiceTlsSettingsSubjectAltName.Builder

build()

public BackendServiceTlsSettings build()
Returns
Type Description
BackendServiceTlsSettings

buildPartial()

public BackendServiceTlsSettings buildPartial()
Returns
Type Description
BackendServiceTlsSettings

clear()

public BackendServiceTlsSettings.Builder clear()
Returns
Type Description
BackendServiceTlsSettings.Builder
Overrides

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
Type Description
BackendServiceTlsSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackendServiceTlsSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackendServiceTlsSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceTlsSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackendServiceTlsSettings.Builder
Overrides

clearSni()

public BackendServiceTlsSettings.Builder 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
Type Description
BackendServiceTlsSettings.Builder

This builder for chaining.

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;

Returns
Type Description
BackendServiceTlsSettings.Builder

clone()

public BackendServiceTlsSettings.Builder clone()
Returns
Type Description
BackendServiceTlsSettings.Builder
Overrides

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;

Returns
Type Description
String

The authenticationConfig.

getAuthenticationConfigBytes()

public 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;

Returns
Type Description
ByteString

The bytes for authenticationConfig.

getDefaultInstanceForType()

public BackendServiceTlsSettings getDefaultInstanceForType()
Returns
Type Description
BackendServiceTlsSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
String

The sni.

getSniBytes()

public 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;

Returns
Type Description
ByteString

The bytes for sni.

getSubjectAltNames(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
BackendServiceTlsSettingsSubjectAltName

getSubjectAltNamesBuilder(int index)