Class SqlServerSslConfig.EncryptionAndServerValidation (1.102.0)

public static final class SqlServerSslConfig.EncryptionAndServerValidation extends GeneratedMessage 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > SqlServerSslConfig.EncryptionAndServerValidation

Static Fields

CA_CERTIFICATE_FIELD_NUMBER

public static final int CA_CERTIFICATE_FIELD_NUMBER
Field Value
Type Description
int

SERVER_CERTIFICATE_HOSTNAME_FIELD_NUMBER

public static final int SERVER_CERTIFICATE_HOSTNAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SqlServerSslConfig.EncryptionAndServerValidation getDefaultInstance()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation

getDescriptor()

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

newBuilder()

public static SqlServerSslConfig.EncryptionAndServerValidation.Builder newBuilder()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

newBuilder(SqlServerSslConfig.EncryptionAndServerValidation prototype)

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

parseDelimitedFrom(InputStream input)

public static SqlServerSslConfig.EncryptionAndServerValidation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SqlServerSslConfig.EncryptionAndServerValidation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SqlServerSslConfig.EncryptionAndServerValidation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SqlServerSslConfig.EncryptionAndServerValidation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SqlServerSslConfig.EncryptionAndServerValidation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SqlServerSslConfig.EncryptionAndServerValidation> parser()
Returns
Type Description
Parser<EncryptionAndServerValidation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<SqlServerSslConfig.EncryptionAndServerValidation> getParserForType()
Returns
Type Description
Parser<EncryptionAndServerValidation>
Overrides

getSerializedSize()

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SqlServerSslConfig.EncryptionAndServerValidation.Builder newBuilderForType()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SqlServerSslConfig.EncryptionAndServerValidation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder
Overrides

toBuilder()

public SqlServerSslConfig.EncryptionAndServerValidation.Builder toBuilder()
Returns
Type Description
SqlServerSslConfig.EncryptionAndServerValidation.Builder

writeTo(CodedOutputStream output)

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