- 1.71.0 (latest)
- 1.69.0
- 1.67.0
- 1.66.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.2
- 1.1.1
- 1.0.0
- 0.4.2
public static final class PostgresqlSslConfig.ServerAndClientVerification.Builder extends GeneratedMessageV3.Builder<PostgresqlSslConfig.ServerAndClientVerification.Builder> implements PostgresqlSslConfig.ServerAndClientVerificationOrBuilder
Message represents the option where Datastream will enforce the encryption and authenticate the server identity as well as the client identity. ca_certificate, client_certificate and client_key must be set if user selects this option.
Protobuf type
google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PostgresqlSslConfig.ServerAndClientVerification.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
build()
public PostgresqlSslConfig.ServerAndClientVerification build()
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification |
buildPartial()
public PostgresqlSslConfig.ServerAndClientVerification buildPartial()
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification |
clear()
public PostgresqlSslConfig.ServerAndClientVerification.Builder clear()
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
clearCaCertificate()
public PostgresqlSslConfig.ServerAndClientVerification.Builder clearCaCertificate()
Required. Input only. PEM-encoded server root CA certificate.
string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
clearClientCertificate()
public PostgresqlSslConfig.ServerAndClientVerification.Builder clearClientCertificate()
Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream's identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate.
string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
clearClientKey()
public PostgresqlSslConfig.ServerAndClientVerification.Builder clearClientKey()
Optional. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client's identity, i.e. identity of the Datastream.
string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PostgresqlSslConfig.ServerAndClientVerification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public PostgresqlSslConfig.ServerAndClientVerification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
clearServerCertificateHostname()
public PostgresqlSslConfig.ServerAndClientVerification.Builder clearServerCertificateHostname()
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.
string server_certificate_hostname = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
clone()
public PostgresqlSslConfig.ServerAndClientVerification.Builder clone()
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
getCaCertificate()
public String getCaCertificate()
Required. Input only. PEM-encoded server root CA certificate.
string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The caCertificate. |
getCaCertificateBytes()
public ByteString getCaCertificateBytes()
Required. Input only. PEM-encoded server root CA certificate.
string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for caCertificate. |
getClientCertificate()
public String getClientCertificate()
Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream's identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate.
string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The clientCertificate. |
getClientCertificateBytes()
public ByteString getClientCertificateBytes()
Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream's identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate.
string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for clientCertificate. |
getClientKey()
public String getClientKey()
Optional. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client's identity, i.e. identity of the Datastream.
string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The clientKey. |
getClientKeyBytes()
public ByteString getClientKeyBytes()
Optional. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client's identity, i.e. identity of the Datastream.
string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for clientKey. |
getDefaultInstanceForType()
public PostgresqlSslConfig.ServerAndClientVerification getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getServerCertificateHostname()
public String getServerCertificateHostname()
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.
string server_certificate_hostname = 5 [(.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. If this field is not provided, the hostname in the server certificate is not validated.
string server_certificate_hostname = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for serverCertificateHostname. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(PostgresqlSslConfig.ServerAndClientVerification other)
public PostgresqlSslConfig.ServerAndClientVerification.Builder mergeFrom(PostgresqlSslConfig.ServerAndClientVerification other)
Parameter | |
---|---|
Name | Description |
other |
PostgresqlSslConfig.ServerAndClientVerification |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PostgresqlSslConfig.ServerAndClientVerification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PostgresqlSslConfig.ServerAndClientVerification.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PostgresqlSslConfig.ServerAndClientVerification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
setCaCertificate(String value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setCaCertificate(String value)
Required. Input only. PEM-encoded server root CA certificate.
string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The caCertificate to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setCaCertificateBytes(ByteString value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setCaCertificateBytes(ByteString value)
Required. Input only. PEM-encoded server root CA certificate.
string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for caCertificate to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setClientCertificate(String value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setClientCertificate(String value)
Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream's identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate.
string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The clientCertificate to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setClientCertificateBytes(ByteString value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setClientCertificateBytes(ByteString value)
Required. Input only. PEM-encoded certificate used by the source database to authenticate the client identity (i.e., the Datastream's identity). This certificate is signed by either a root certificate trusted by the server or one or more intermediate certificates (which is stored with the leaf certificate) to link the this certificate to the trusted root certificate.
string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for clientCertificate to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setClientKey(String value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setClientKey(String value)
Optional. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client's identity, i.e. identity of the Datastream.
string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The clientKey to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setClientKeyBytes(ByteString value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setClientKeyBytes(ByteString value)
Optional. Input only. PEM-encoded private key associated with the client certificate. This value will be used during the SSL/TLS handshake, allowing the PostgreSQL server to authenticate the client's identity, i.e. identity of the Datastream.
string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for clientKey to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
setServerCertificateHostname(String value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setServerCertificateHostname(String value)
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.
string server_certificate_hostname = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The serverCertificateHostname to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setServerCertificateHostnameBytes(ByteString value)
public PostgresqlSslConfig.ServerAndClientVerification.Builder setServerCertificateHostnameBytes(ByteString value)
Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. If this field is not provided, the hostname in the server certificate is not validated.
string server_certificate_hostname = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for serverCertificateHostname to set. |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PostgresqlSslConfig.ServerAndClientVerification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PostgresqlSslConfig.ServerAndClientVerification.Builder |