public final class IpConfiguration extends GeneratedMessage implements IpConfigurationOrBuilderIP Management configuration.
Protobuf type google.cloud.sql.v1beta4.IpConfiguration
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > IpConfigurationImplements
IpConfigurationOrBuilderStatic Fields
ALLOCATED_IP_RANGE_FIELD_NUMBER
public static final int ALLOCATED_IP_RANGE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
AUTHORIZED_NETWORKS_FIELD_NUMBER
public static final int AUTHORIZED_NETWORKS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CUSTOM_SUBJECT_ALTERNATIVE_NAMES_FIELD_NUMBER
public static final int CUSTOM_SUBJECT_ALTERNATIVE_NAMES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ENABLE_PRIVATE_PATH_FOR_GOOGLE_CLOUD_SERVICES_FIELD_NUMBER
public static final int ENABLE_PRIVATE_PATH_FOR_GOOGLE_CLOUD_SERVICES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
IPV4_ENABLED_FIELD_NUMBER
public static final int IPV4_ENABLED_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PRIVATE_NETWORK_FIELD_NUMBER
public static final int PRIVATE_NETWORK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PSC_CONFIG_FIELD_NUMBER
public static final int PSC_CONFIG_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
REQUIRE_SSL_FIELD_NUMBER
public static final int REQUIRE_SSL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SERVER_CA_MODE_FIELD_NUMBER
public static final int SERVER_CA_MODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SERVER_CA_POOL_FIELD_NUMBER
public static final int SERVER_CA_POOL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SERVER_CERTIFICATE_ROTATION_MODE_FIELD_NUMBER
public static final int SERVER_CERTIFICATE_ROTATION_MODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SSL_MODE_FIELD_NUMBER
public static final int SSL_MODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static IpConfiguration getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static IpConfiguration.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
IpConfiguration.Builder |
|
newBuilder(IpConfiguration prototype)
public static IpConfiguration.Builder newBuilder(IpConfiguration prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
IpConfiguration |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration.Builder |
|
parseDelimitedFrom(InputStream input)
public static IpConfiguration parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static IpConfiguration parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static IpConfiguration parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static IpConfiguration parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static IpConfiguration parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static IpConfiguration parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static IpConfiguration parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static IpConfiguration parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static IpConfiguration parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static IpConfiguration parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static IpConfiguration parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static IpConfiguration parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<IpConfiguration> parser()| Returns | |
|---|---|
| Type | Description |
Parser<IpConfiguration> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAllocatedIpRange()
public String getAllocatedIpRange() The name of the allocated ip range for the private ip Cloud SQL instance.
For example: "google-managed-services-default". If set, the instance ip
will be created in the allocated range. The range name must comply with
RFC 1035. Specifically, the name
must be 1-63 characters long and match the regular expression
a-z?.
string allocated_ip_range = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The allocatedIpRange. |
getAllocatedIpRangeBytes()
public ByteString getAllocatedIpRangeBytes() The name of the allocated ip range for the private ip Cloud SQL instance.
For example: "google-managed-services-default". If set, the instance ip
will be created in the allocated range. The range name must comply with
RFC 1035. Specifically, the name
must be 1-63 characters long and match the regular expression
a-z?.
string allocated_ip_range = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for allocatedIpRange. |
getAuthorizedNetworks(int index)
public AclEntry getAuthorizedNetworks(int index) The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: 157.197.200.0/24).
repeated .google.cloud.sql.v1beta4.AclEntry authorized_networks = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AclEntry |
|
getAuthorizedNetworksCount()
public int getAuthorizedNetworksCount() The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: 157.197.200.0/24).
repeated .google.cloud.sql.v1beta4.AclEntry authorized_networks = 4;
| Returns | |
|---|---|
| Type | Description |
int |
|
getAuthorizedNetworksList()
public List<AclEntry> getAuthorizedNetworksList() The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: 157.197.200.0/24).
repeated .google.cloud.sql.v1beta4.AclEntry authorized_networks = 4;
| Returns | |
|---|---|
| Type | Description |
List<AclEntry> |
|
getAuthorizedNetworksOrBuilder(int index)
public AclEntryOrBuilder getAuthorizedNetworksOrBuilder(int index) The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: 157.197.200.0/24).
repeated .google.cloud.sql.v1beta4.AclEntry authorized_networks = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AclEntryOrBuilder |
|
getAuthorizedNetworksOrBuilderList()
public List<? extends AclEntryOrBuilder> getAuthorizedNetworksOrBuilderList() The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: 157.197.200.0/24).
repeated .google.cloud.sql.v1beta4.AclEntry authorized_networks = 4;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.sql.v1beta4.AclEntryOrBuilder> |
|
getCustomSubjectAlternativeNames(int index)
public String getCustomSubjectAlternativeNames(int index)Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
repeated string custom_subject_alternative_names = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The customSubjectAlternativeNames at the given index. |
getCustomSubjectAlternativeNamesBytes(int index)
public ByteString getCustomSubjectAlternativeNamesBytes(int index)Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
repeated string custom_subject_alternative_names = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the customSubjectAlternativeNames at the given index. |
getCustomSubjectAlternativeNamesCount()
public int getCustomSubjectAlternativeNamesCount()Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
repeated string custom_subject_alternative_names = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of customSubjectAlternativeNames. |
getCustomSubjectAlternativeNamesList()
public ProtocolStringList getCustomSubjectAlternativeNamesList()Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
repeated string custom_subject_alternative_names = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the customSubjectAlternativeNames. |
getDefaultInstanceForType()
public IpConfiguration getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
IpConfiguration |
|
getEnablePrivatePathForGoogleCloudServices()
public BoolValue getEnablePrivatePathForGoogleCloudServices()Controls connectivity to private IP instances from Google services, such as BigQuery.
.google.protobuf.BoolValue enable_private_path_for_google_cloud_services = 7;
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The enablePrivatePathForGoogleCloudServices. |
getEnablePrivatePathForGoogleCloudServicesOrBuilder()
public BoolValueOrBuilder getEnablePrivatePathForGoogleCloudServicesOrBuilder()Controls connectivity to private IP instances from Google services, such as BigQuery.
.google.protobuf.BoolValue enable_private_path_for_google_cloud_services = 7;
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getIpv4Enabled()
public BoolValue getIpv4Enabled()Whether the instance is assigned a public IP address or not.
.google.protobuf.BoolValue ipv4_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The ipv4Enabled. |
getIpv4EnabledOrBuilder()
public BoolValueOrBuilder getIpv4EnabledOrBuilder()Whether the instance is assigned a public IP address or not.
.google.protobuf.BoolValue ipv4_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getParserForType()
public Parser<IpConfiguration> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<IpConfiguration> |
|
getPrivateNetwork()
public String getPrivateNetwork() The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example,
/projects/myProject/global/networks/default. This setting can
be updated, but it cannot be removed after it is set.
string private_network = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The privateNetwork. |
getPrivateNetworkBytes()
public ByteString getPrivateNetworkBytes() The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example,
/projects/myProject/global/networks/default. This setting can
be updated, but it cannot be removed after it is set.
string private_network = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for privateNetwork. |
getPscConfig()
public PscConfig getPscConfig()PSC settings for this instance.
optional .google.cloud.sql.v1beta4.PscConfig psc_config = 9;
| Returns | |
|---|---|
| Type | Description |
PscConfig |
The pscConfig. |
getPscConfigOrBuilder()
public PscConfigOrBuilder getPscConfigOrBuilder()PSC settings for this instance.
optional .google.cloud.sql.v1beta4.PscConfig psc_config = 9;
| Returns | |
|---|---|
| Type | Description |
PscConfigOrBuilder |
|
getRequireSsl()
public BoolValue getRequireSsl() Use ssl_mode instead.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode flag
instead of the legacy require_ssl flag.
.google.protobuf.BoolValue require_ssl = 3;
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The requireSsl. |
getRequireSslOrBuilder()
public BoolValueOrBuilder getRequireSslOrBuilder() Use ssl_mode instead.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode flag
instead of the legacy require_ssl flag.
.google.protobuf.BoolValue require_ssl = 3;
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getServerCaMode()
public IpConfiguration.CaMode getServerCaMode()Specify what type of CA is used for the server certificate.
optional .google.cloud.sql.v1beta4.IpConfiguration.CaMode server_ca_mode = 10;
| Returns | |
|---|---|
| Type | Description |
IpConfiguration.CaMode |
The serverCaMode. |
getServerCaModeValue()
public int getServerCaModeValue()Specify what type of CA is used for the server certificate.
optional .google.cloud.sql.v1beta4.IpConfiguration.CaMode server_ca_mode = 10;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for serverCaMode. |
getServerCaPool()
public String getServerCaPool() Optional. The resource name of the server CA pool for an instance with
CUSTOMER_MANAGED_CAS_CA as the server_ca_mode.
Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
optional string server_ca_pool = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The serverCaPool. |
getServerCaPoolBytes()
public ByteString getServerCaPoolBytes() Optional. The resource name of the server CA pool for an instance with
CUSTOMER_MANAGED_CAS_CA as the server_ca_mode.
Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
optional string server_ca_pool = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for serverCaPool. |
getServerCertificateRotationMode()
public IpConfiguration.ServerCertificateRotationMode getServerCertificateRotationMode()Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
optional .google.cloud.sql.v1beta4.IpConfiguration.ServerCertificateRotationMode server_certificate_rotation_mode = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
IpConfiguration.ServerCertificateRotationMode |
The serverCertificateRotationMode. |
getServerCertificateRotationModeValue()
public int getServerCertificateRotationModeValue()Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
optional .google.cloud.sql.v1beta4.IpConfiguration.ServerCertificateRotationMode server_certificate_rotation_mode = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for serverCertificateRotationMode. |
getSslMode()
public IpConfiguration.SslMode getSslMode() Specify how SSL/TLS is enforced in database connections. If you must use
the require_ssl flag for backward compatibility, then only the following
value pairs are valid:
For PostgreSQL and MySQL:
ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTEDandrequire_ssl=falsessl_mode=ENCRYPTED_ONLYandrequire_ssl=falsessl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIREDandrequire_ssl=trueFor SQL Server:
ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTEDandrequire_ssl=falsessl_mode=ENCRYPTED_ONLYandrequire_ssl=trueThe value of
ssl_modehas priority over the value ofrequire_ssl.For example, for the pair
ssl_mode=ENCRYPTED_ONLYandrequire_ssl=false,ssl_mode=ENCRYPTED_ONLYmeans accept only SSL connections, whilerequire_ssl=falsemeans accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respectssl_modeand accepts only SSL connections.
.google.cloud.sql.v1beta4.IpConfiguration.SslMode ssl_mode = 8;
| Returns | |
|---|---|
| Type | Description |
IpConfiguration.SslMode |
The sslMode. |
getSslModeValue()
public int getSslModeValue() Specify how SSL/TLS is enforced in database connections. If you must use
the require_ssl flag for backward compatibility, then only the following
value pairs are valid:
For PostgreSQL and MySQL:
ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTEDandrequire_ssl=falsessl_mode=ENCRYPTED_ONLYandrequire_ssl=falsessl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIREDandrequire_ssl=trueFor SQL Server:
ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTEDandrequire_ssl=falsessl_mode=ENCRYPTED_ONLYandrequire_ssl=trueThe value of
ssl_modehas priority over the value ofrequire_ssl.For example, for the pair
ssl_mode=ENCRYPTED_ONLYandrequire_ssl=false,ssl_mode=ENCRYPTED_ONLYmeans accept only SSL connections, whilerequire_ssl=falsemeans accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respectssl_modeand accepts only SSL connections.
.google.cloud.sql.v1beta4.IpConfiguration.SslMode ssl_mode = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for sslMode. |
hasEnablePrivatePathForGoogleCloudServices()
public boolean hasEnablePrivatePathForGoogleCloudServices()Controls connectivity to private IP instances from Google services, such as BigQuery.
.google.protobuf.BoolValue enable_private_path_for_google_cloud_services = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the enablePrivatePathForGoogleCloudServices field is set. |
hasIpv4Enabled()
public boolean hasIpv4Enabled()Whether the instance is assigned a public IP address or not.
.google.protobuf.BoolValue ipv4_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ipv4Enabled field is set. |
hasPscConfig()
public boolean hasPscConfig()PSC settings for this instance.
optional .google.cloud.sql.v1beta4.PscConfig psc_config = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pscConfig field is set. |
hasRequireSsl()
public boolean hasRequireSsl() Use ssl_mode instead.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode flag
instead of the legacy require_ssl flag.
.google.protobuf.BoolValue require_ssl = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the requireSsl field is set. |
hasServerCaMode()
public boolean hasServerCaMode()Specify what type of CA is used for the server certificate.
optional .google.cloud.sql.v1beta4.IpConfiguration.CaMode server_ca_mode = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the serverCaMode field is set. |
hasServerCaPool()
public boolean hasServerCaPool() Optional. The resource name of the server CA pool for an instance with
CUSTOMER_MANAGED_CAS_CA as the server_ca_mode.
Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
optional string server_ca_pool = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the serverCaPool field is set. |
hasServerCertificateRotationMode()
public boolean hasServerCertificateRotationMode()Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
optional .google.cloud.sql.v1beta4.IpConfiguration.ServerCertificateRotationMode server_certificate_rotation_mode = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the serverCertificateRotationMode field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public IpConfiguration.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
IpConfiguration.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected IpConfiguration.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
IpConfiguration.Builder |
|
toBuilder()
public IpConfiguration.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
IpConfiguration.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|