public static final class PscConfig.Builder extends GeneratedMessage.Builder<PscConfig.Builder> implements PscConfigOrBuilderPSC settings for a Cloud SQL instance.
Protobuf type google.cloud.sql.v1beta4.PscConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PscConfig.BuilderImplements
PscConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllAllowedConsumerProjects(Iterable<String> values)
public PscConfig.Builder addAllAllowedConsumerProjects(Iterable<String> values)Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The allowedConsumerProjects to add. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
addAllPscAutoConnections(Iterable<? extends PscAutoConnectionConfig> values)
public PscConfig.Builder addAllPscAutoConnections(Iterable<? extends PscAutoConnectionConfig> values)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.sql.v1beta4.PscAutoConnectionConfig> |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
addAllowedConsumerProjects(String value)
public PscConfig.Builder addAllowedConsumerProjects(String value)Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe allowedConsumerProjects to add. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
addAllowedConsumerProjectsBytes(ByteString value)
public PscConfig.Builder addAllowedConsumerProjectsBytes(ByteString value)Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the allowedConsumerProjects to add. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
addPscAutoConnections(PscAutoConnectionConfig value)
public PscConfig.Builder addPscAutoConnections(PscAutoConnectionConfig value)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
PscAutoConnectionConfig |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
addPscAutoConnections(PscAutoConnectionConfig.Builder builderForValue)
public PscConfig.Builder addPscAutoConnections(PscAutoConnectionConfig.Builder builderForValue)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PscAutoConnectionConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
addPscAutoConnections(int index, PscAutoConnectionConfig value)
public PscConfig.Builder addPscAutoConnections(int index, PscAutoConnectionConfig value)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
PscAutoConnectionConfig |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
addPscAutoConnections(int index, PscAutoConnectionConfig.Builder builderForValue)
public PscConfig.Builder addPscAutoConnections(int index, PscAutoConnectionConfig.Builder builderForValue)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
PscAutoConnectionConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
addPscAutoConnectionsBuilder()
public PscAutoConnectionConfig.Builder addPscAutoConnectionsBuilder()Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscAutoConnectionConfig.Builder |
|
addPscAutoConnectionsBuilder(int index)
public PscAutoConnectionConfig.Builder addPscAutoConnectionsBuilder(int index)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PscAutoConnectionConfig.Builder |
|
build()
public PscConfig build()| Returns | |
|---|---|
| Type | Description |
PscConfig |
|
buildPartial()
public PscConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
PscConfig |
|
clear()
public PscConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
clearAllowedConsumerProjects()
public PscConfig.Builder clearAllowedConsumerProjects()Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
clearNetworkAttachmentUri()
public PscConfig.Builder clearNetworkAttachmentUri()Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
string network_attachment_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
clearPscAutoConnectionPolicyEnabled()
public PscConfig.Builder clearPscAutoConnectionPolicyEnabled()Optional. Whether to set up the PSC service connection policy automatically.
optional bool psc_auto_connection_policy_enabled = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
clearPscAutoConnections()
public PscConfig.Builder clearPscAutoConnections()Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
clearPscAutoDnsEnabled()
public PscConfig.Builder clearPscAutoDnsEnabled()Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
optional bool psc_auto_dns_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
clearPscEnabled()
public PscConfig.Builder clearPscEnabled()Whether PSC connectivity is enabled for this instance.
optional bool psc_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
clearPscWriteEndpointDnsEnabled()
public PscConfig.Builder clearPscWriteEndpointDnsEnabled() Optional. Indicates whether Private Service Connect write endpoint DNS
automation is enabled for this instance. When enabled, Cloud SQL provisions
a universal global DNS record across all networks configured with Private
Service Connect auto-connections that points to the cluster primary
instance. This feature is only supported for Enterprise Plus edition. This
will default to true for new enterprise plus instances when
psc_auto_dns_enabled is enabled.
optional bool psc_write_endpoint_dns_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
getAllowedConsumerProjects(int index)
public String getAllowedConsumerProjects(int index)Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The allowedConsumerProjects at the given index. |
getAllowedConsumerProjectsBytes(int index)
public ByteString getAllowedConsumerProjectsBytes(int index)Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the allowedConsumerProjects at the given index. |
getAllowedConsumerProjectsCount()
public int getAllowedConsumerProjectsCount()Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of allowedConsumerProjects. |
getAllowedConsumerProjectsList()
public ProtocolStringList getAllowedConsumerProjectsList()Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the allowedConsumerProjects. |
getDefaultInstanceForType()
public PscConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PscConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNetworkAttachmentUri()
public String getNetworkAttachmentUri()Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
string network_attachment_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The networkAttachmentUri. |
getNetworkAttachmentUriBytes()
public ByteString getNetworkAttachmentUriBytes()Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
string network_attachment_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for networkAttachmentUri. |
getPscAutoConnectionPolicyEnabled()
public boolean getPscAutoConnectionPolicyEnabled()Optional. Whether to set up the PSC service connection policy automatically.
optional bool psc_auto_connection_policy_enabled = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The pscAutoConnectionPolicyEnabled. |
getPscAutoConnections(int index)
public PscAutoConnectionConfig getPscAutoConnections(int index)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PscAutoConnectionConfig |
|
getPscAutoConnectionsBuilder(int index)
public PscAutoConnectionConfig.Builder getPscAutoConnectionsBuilder(int index)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PscAutoConnectionConfig.Builder |
|
getPscAutoConnectionsBuilderList()
public List<PscAutoConnectionConfig.Builder> getPscAutoConnectionsBuilderList()Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getPscAutoConnectionsCount()
public int getPscAutoConnectionsCount()Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getPscAutoConnectionsList()
public List<PscAutoConnectionConfig> getPscAutoConnectionsList()Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<PscAutoConnectionConfig> |
|
getPscAutoConnectionsOrBuilder(int index)
public PscAutoConnectionConfigOrBuilder getPscAutoConnectionsOrBuilder(int index)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PscAutoConnectionConfigOrBuilder |
|
getPscAutoConnectionsOrBuilderList()
public List<? extends PscAutoConnectionConfigOrBuilder> getPscAutoConnectionsOrBuilderList()Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.sql.v1beta4.PscAutoConnectionConfigOrBuilder> |
|
getPscAutoDnsEnabled()
public boolean getPscAutoDnsEnabled()Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
optional bool psc_auto_dns_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The pscAutoDnsEnabled. |
getPscEnabled()
public boolean getPscEnabled()Whether PSC connectivity is enabled for this instance.
optional bool psc_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The pscEnabled. |
getPscWriteEndpointDnsEnabled()
public boolean getPscWriteEndpointDnsEnabled() Optional. Indicates whether Private Service Connect write endpoint DNS
automation is enabled for this instance. When enabled, Cloud SQL provisions
a universal global DNS record across all networks configured with Private
Service Connect auto-connections that points to the cluster primary
instance. This feature is only supported for Enterprise Plus edition. This
will default to true for new enterprise plus instances when
psc_auto_dns_enabled is enabled.
optional bool psc_write_endpoint_dns_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The pscWriteEndpointDnsEnabled. |
hasPscAutoConnectionPolicyEnabled()
public boolean hasPscAutoConnectionPolicyEnabled()Optional. Whether to set up the PSC service connection policy automatically.
optional bool psc_auto_connection_policy_enabled = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pscAutoConnectionPolicyEnabled field is set. |
hasPscAutoDnsEnabled()
public boolean hasPscAutoDnsEnabled()Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
optional bool psc_auto_dns_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pscAutoDnsEnabled field is set. |
hasPscEnabled()
public boolean hasPscEnabled()Whether PSC connectivity is enabled for this instance.
optional bool psc_enabled = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pscEnabled field is set. |
hasPscWriteEndpointDnsEnabled()
public boolean hasPscWriteEndpointDnsEnabled() Optional. Indicates whether Private Service Connect write endpoint DNS
automation is enabled for this instance. When enabled, Cloud SQL provisions
a universal global DNS record across all networks configured with Private
Service Connect auto-connections that points to the cluster primary
instance. This feature is only supported for Enterprise Plus edition. This
will default to true for new enterprise plus instances when
psc_auto_dns_enabled is enabled.
optional bool psc_write_endpoint_dns_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pscWriteEndpointDnsEnabled field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PscConfig other)
public PscConfig.Builder mergeFrom(PscConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
PscConfig |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PscConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PscConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
removePscAutoConnections(int index)
public PscConfig.Builder removePscAutoConnections(int index)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
setAllowedConsumerProjects(int index, String value)
public PscConfig.Builder setAllowedConsumerProjects(int index, String value)Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe allowedConsumerProjects to set. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
setNetworkAttachmentUri(String value)
public PscConfig.Builder setNetworkAttachmentUri(String value)Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
string network_attachment_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe networkAttachmentUri to set. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
setNetworkAttachmentUriBytes(ByteString value)
public PscConfig.Builder setNetworkAttachmentUriBytes(ByteString value)Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
string network_attachment_uri = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for networkAttachmentUri to set. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
setPscAutoConnectionPolicyEnabled(boolean value)
public PscConfig.Builder setPscAutoConnectionPolicyEnabled(boolean value)Optional. Whether to set up the PSC service connection policy automatically.
optional bool psc_auto_connection_policy_enabled = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe pscAutoConnectionPolicyEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
setPscAutoConnections(int index, PscAutoConnectionConfig value)
public PscConfig.Builder setPscAutoConnections(int index, PscAutoConnectionConfig value)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
PscAutoConnectionConfig |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
setPscAutoConnections(int index, PscAutoConnectionConfig.Builder builderForValue)
public PscConfig.Builder setPscAutoConnections(int index, PscAutoConnectionConfig.Builder builderForValue)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
repeated .google.cloud.sql.v1beta4.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
PscAutoConnectionConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
|
setPscAutoDnsEnabled(boolean value)
public PscConfig.Builder setPscAutoDnsEnabled(boolean value)Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
optional bool psc_auto_dns_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe pscAutoDnsEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
setPscEnabled(boolean value)
public PscConfig.Builder setPscEnabled(boolean value)Whether PSC connectivity is enabled for this instance.
optional bool psc_enabled = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe pscEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |
setPscWriteEndpointDnsEnabled(boolean value)
public PscConfig.Builder setPscWriteEndpointDnsEnabled(boolean value) Optional. Indicates whether Private Service Connect write endpoint DNS
automation is enabled for this instance. When enabled, Cloud SQL provisions
a universal global DNS record across all networks configured with Private
Service Connect auto-connections that points to the cluster primary
instance. This feature is only supported for Enterprise Plus edition. This
will default to true for new enterprise plus instances when
psc_auto_dns_enabled is enabled.
optional bool psc_write_endpoint_dns_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe pscWriteEndpointDnsEnabled to set. |
| Returns | |
|---|---|
| Type | Description |
PscConfig.Builder |
This builder for chaining. |