Class SqlServerSslConfig.EncryptionAndServerValidation.Builder (1.102.0)

public static final class SqlServerSslConfig.EncryptionAndServerValidation.Builder extends GeneratedMessage.Builder<SqlServerSslConfig.EncryptionAndServerValidation.Builder> implements SqlServerSslConfig.EncryptionAndServerValidationOrBuilder

Message to represent the option where Datastream will enforce encryption and authenticate server identity. ca_certificate must be set if user selects this option.

Protobuf type google.cloud.datastream.v1.SqlServerSslConfig.EncryptionAndServerValidation

Static Methods

getDescriptor()

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

Methods

build()

public SqlServerSslConfig.EncryptionAndServerValidation build()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation

buildPartial()

public SqlServerSslConfig.EncryptionAndServerValidation buildPartial()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation

clear()

public SqlServerSslConfig.EncryptionAndServerValidation.Builder clear()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder
Overrides

clearCaCertificate()

public SqlServerSslConfig.EncryptionAndServerValidation.Builder clearCaCertificate()

Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.

string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

This builder for chaining.

clearServerCertificateHostname()

public SqlServerSslConfig.EncryptionAndServerValidation.Builder clearServerCertificateHostname()

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.

optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

This builder for chaining.

getCaCertificate()

public String getCaCertificate()

Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.

string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The caCertificate.

getCaCertificateBytes()

public ByteString getCaCertificateBytes()

Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.

string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for caCertificate.

getDefaultInstanceForType()

public SqlServerSslConfig.EncryptionAndServerValidation getDefaultInstanceForType()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation

getDescriptorForType()

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

getServerCertificateHostname()

public String getServerCertificateHostname()

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.

optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serverCertificateHostname.

getServerCertificateHostnameBytes()

public ByteString getServerCertificateHostnameBytes()

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.

optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serverCertificateHostname.

hasServerCertificateHostname()

public boolean hasServerCertificateHostname()

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.

optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serverCertificateHostname field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SqlServerSslConfig.EncryptionAndServerValidation other)

public SqlServerSslConfig.EncryptionAndServerValidation.Builder mergeFrom(SqlServerSslConfig.EncryptionAndServerValidation other)
Parameter
Name Description
other SqlServerSslConfig.EncryptionAndServerValidation
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SqlServerSslConfig.EncryptionAndServerValidation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SqlServerSslConfig.EncryptionAndServerValidation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder
Overrides

setCaCertificate(String value)

public SqlServerSslConfig.EncryptionAndServerValidation.Builder setCaCertificate(String value)

Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.

string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The caCertificate to set.

Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

This builder for chaining.

setCaCertificateBytes(ByteString value)

public SqlServerSslConfig.EncryptionAndServerValidation.Builder setCaCertificateBytes(ByteString value)

Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.

string ca_certificate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for caCertificate to set.

Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

This builder for chaining.

setServerCertificateHostname(String value)

public SqlServerSslConfig.EncryptionAndServerValidation.Builder setServerCertificateHostname(String value)

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.

optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The serverCertificateHostname to set.

Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

This builder for chaining.

setServerCertificateHostnameBytes(ByteString value)

public SqlServerSslConfig.EncryptionAndServerValidation.Builder setServerCertificateHostnameBytes(ByteString value)

Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.

optional string server_certificate_hostname = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for serverCertificateHostname to set.

Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

This builder for chaining.