Class BackendServiceTlsSettings (1.78.0)

public final class BackendServiceTlsSettings extends GeneratedMessageV3 implements BackendServiceTlsSettingsOrBuilder

Protobuf type google.cloud.compute.v1.BackendServiceTlsSettings

Static Fields

AUTHENTICATION_CONFIG_FIELD_NUMBER

public static final int AUTHENTICATION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SNI_FIELD_NUMBER

public static final int SNI_FIELD_NUMBER
Field Value
Type Description
int

SUBJECT_ALT_NAMES_FIELD_NUMBER

public static final int SUBJECT_ALT_NAMES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackendServiceTlsSettings getDefaultInstance()
Returns
Type Description
BackendServiceTlsSettings

getDescriptor()

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

newBuilder()

public static BackendServiceTlsSettings.Builder newBuilder()
Returns
Type Description
BackendServiceTlsSettings.Builder

newBuilder(BackendServiceTlsSettings prototype)

public static BackendServiceTlsSettings.Builder newBuilder(BackendServiceTlsSettings prototype)
Parameter
Name Description
prototype BackendServiceTlsSettings
Returns
Type Description
BackendServiceTlsSettings.Builder

parseDelimitedFrom(InputStream input)

public static BackendServiceTlsSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceTlsSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackendServiceTlsSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceTlsSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackendServiceTlsSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceTlsSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackendServiceTlsSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceTlsSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackendServiceTlsSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackendServiceTlsSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackendServiceTlsSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackendServiceTlsSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceTlsSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackendServiceTlsSettings> parser()
Returns
Type Description
Parser<BackendServiceTlsSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<BackendServiceTlsSettings> getParserForType()
Returns
Type Description
Parser<BackendServiceTlsSettings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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

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;

Returns
Type Description
int

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;

Returns
Type Description
List<BackendServiceTlsSettingsSubjectAltName>

getSubjectAltNamesOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
BackendServiceTlsSettingsSubjectAltNameOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.BackendServiceTlsSettingsSubjectAltNameOrBuilder>

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;

Returns
Type Description
boolean

Whether the authenticationConfig field is set.

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;

Returns
Type Description
boolean

Whether the sni field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackendServiceTlsSettings.Builder newBuilderForType()
Returns
Type Description
BackendServiceTlsSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackendServiceTlsSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackendServiceTlsSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BackendServiceTlsSettings.Builder toBuilder()
Returns
Type Description
BackendServiceTlsSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException