Class PscAutoConnectionConfig.Builder (0.1.0)

public static final class PscAutoConnectionConfig.Builder extends GeneratedMessage.Builder<PscAutoConnectionConfig.Builder> implements PscAutoConnectionConfigOrBuilder

Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.

Protobuf type google.cloud.sql.v1beta4.PscAutoConnectionConfig

Static Methods

getDescriptor()

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

Methods

build()

public PscAutoConnectionConfig build()
Returns
Type Description
PscAutoConnectionConfig

buildPartial()

public PscAutoConnectionConfig buildPartial()
Returns
Type Description
PscAutoConnectionConfig

clear()

public PscAutoConnectionConfig.Builder clear()
Returns
Type Description
PscAutoConnectionConfig.Builder
Overrides

clearConsumerNetwork()

public PscAutoConnectionConfig.Builder clearConsumerNetwork()

Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name.

For example, projects/project1/global/networks/network1.

The consumer host project of this network might be different from the consumer service project.

string consumer_network = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearConsumerNetworkStatus()

public PscAutoConnectionConfig.Builder clearConsumerNetworkStatus()

The connection policy status of the consumer network.

optional string consumer_network_status = 5;

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearConsumerProject()

public PscAutoConnectionConfig.Builder clearConsumerProject()

Optional. This is the project ID of consumer service project of this consumer endpoint.

Optional. This is only applicable if consumer_network is a shared vpc network.

string consumer_project = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearInstanceAutoDnsStatus()

public PscAutoConnectionConfig.Builder clearInstanceAutoDnsStatus()

Output only. The status of automated DNS provisioning.

optional .google.cloud.sql.v1beta4.AutoDnsStatus instance_auto_dns_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearIpAddress()

public PscAutoConnectionConfig.Builder clearIpAddress()

The IP address of the consumer endpoint.

optional string ip_address = 3 [(.google.api.field_info) = { ... }

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearServiceConnectionPolicy()

public PscAutoConnectionConfig.Builder clearServiceConnectionPolicy()

Output only. The service connection policy created automatically for the consumer network when psc_auto_connection_policy_enabled is true. It is in the format of: projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id} The policy_id is in format of $NETWORK-$RANDOM.

optional string service_connection_policy = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearServiceConnectionPolicyCreationResult()

public PscAutoConnectionConfig.Builder clearServiceConnectionPolicyCreationResult()

Output only. The status of service connection policy creation.

optional string service_connection_policy_creation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearStatus()

public PscAutoConnectionConfig.Builder clearStatus()

The connection status of the consumer endpoint.

optional string status = 4;

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

clearWriteEndpointAutoDnsStatus()

public PscAutoConnectionConfig.Builder clearWriteEndpointAutoDnsStatus()

Output only. The status of automated DNS provisioning for the write endpoint.

optional .google.cloud.sql.v1beta4.AutoDnsStatus write_endpoint_auto_dns_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

getConsumerNetwork()

public String getConsumerNetwork()

Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name.

For example, projects/project1/global/networks/network1.

The consumer host project of this network might be different from the consumer service project.

string consumer_network = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The consumerNetwork.

getConsumerNetworkBytes()

public ByteString getConsumerNetworkBytes()

Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name.

For example, projects/project1/global/networks/network1.

The consumer host project of this network might be different from the consumer service project.

string consumer_network = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for consumerNetwork.

getConsumerNetworkStatus()

public String getConsumerNetworkStatus()

The connection policy status of the consumer network.

optional string consumer_network_status = 5;

Returns
Type Description
String

The consumerNetworkStatus.

getConsumerNetworkStatusBytes()

public ByteString getConsumerNetworkStatusBytes()

The connection policy status of the consumer network.

optional string consumer_network_status = 5;

Returns
Type Description
ByteString

The bytes for consumerNetworkStatus.

getConsumerProject()

public String getConsumerProject()

Optional. This is the project ID of consumer service project of this consumer endpoint.

Optional. This is only applicable if consumer_network is a shared vpc network.

string consumer_project = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The consumerProject.

getConsumerProjectBytes()

public ByteString getConsumerProjectBytes()

Optional. This is the project ID of consumer service project of this consumer endpoint.

Optional. This is only applicable if consumer_network is a shared vpc network.

string consumer_project = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for consumerProject.

getDefaultInstanceForType()

public PscAutoConnectionConfig getDefaultInstanceForType()
Returns
Type Description
PscAutoConnectionConfig

getDescriptorForType()

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

getInstanceAutoDnsStatus()

public AutoDnsStatus getInstanceAutoDnsStatus()

Output only. The status of automated DNS provisioning.

optional .google.cloud.sql.v1beta4.AutoDnsStatus instance_auto_dns_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AutoDnsStatus

The instanceAutoDnsStatus.

getInstanceAutoDnsStatusValue()

public int getInstanceAutoDnsStatusValue()

Output only. The status of automated DNS provisioning.

optional .google.cloud.sql.v1beta4.AutoDnsStatus instance_auto_dns_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for instanceAutoDnsStatus.

getIpAddress()

public String getIpAddress()

The IP address of the consumer endpoint.

optional string ip_address = 3 [(.google.api.field_info) = { ... }

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address of the consumer endpoint.

optional string ip_address = 3 [(.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipAddress.

getServiceConnectionPolicy()

public String getServiceConnectionPolicy()

Output only. The service connection policy created automatically for the consumer network when psc_auto_connection_policy_enabled is true. It is in the format of: projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id} The policy_id is in format of $NETWORK-$RANDOM.

optional string service_connection_policy = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceConnectionPolicy.

getServiceConnectionPolicyBytes()

public ByteString getServiceConnectionPolicyBytes()

Output only. The service connection policy created automatically for the consumer network when psc_auto_connection_policy_enabled is true. It is in the format of: projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id} The policy_id is in format of $NETWORK-$RANDOM.

optional string service_connection_policy = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceConnectionPolicy.

getServiceConnectionPolicyCreationResult()

public String getServiceConnectionPolicyCreationResult()

Output only. The status of service connection policy creation.

optional string service_connection_policy_creation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The serviceConnectionPolicyCreationResult.

getServiceConnectionPolicyCreationResultBytes()

public ByteString getServiceConnectionPolicyCreationResultBytes()

Output only. The status of service connection policy creation.

optional string service_connection_policy_creation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for serviceConnectionPolicyCreationResult.

getStatus()

public String getStatus()

The connection status of the consumer endpoint.

optional string status = 4;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

The connection status of the consumer endpoint.

optional string status = 4;

Returns
Type Description
ByteString

The bytes for status.

getWriteEndpointAutoDnsStatus()

public AutoDnsStatus getWriteEndpointAutoDnsStatus()

Output only. The status of automated DNS provisioning for the write endpoint.

optional .google.cloud.sql.v1beta4.AutoDnsStatus write_endpoint_auto_dns_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AutoDnsStatus

The writeEndpointAutoDnsStatus.

getWriteEndpointAutoDnsStatusValue()

public int getWriteEndpointAutoDnsStatusValue()

Output only. The status of automated DNS provisioning for the write endpoint.

optional .google.cloud.sql.v1beta4.AutoDnsStatus write_endpoint_auto_dns_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for writeEndpointAutoDnsStatus.

hasConsumerNetworkStatus()

public boolean hasConsumerNetworkStatus()

The connection policy status of the consumer network.

optional string consumer_network_status = 5;

Returns
Type Description
boolean

Whether the consumerNetworkStatus field is set.

hasInstanceAutoDnsStatus()

public boolean hasInstanceAutoDnsStatus()

Output only. The status of automated DNS provisioning.

optional .google.cloud.sql.v1beta4.AutoDnsStatus instance_auto_dns_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the instanceAutoDnsStatus field is set.

hasIpAddress()

public boolean hasIpAddress()

The IP address of the consumer endpoint.

optional string ip_address = 3 [(.google.api.field_info) = { ... }

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasServiceConnectionPolicy()

public boolean hasServiceConnectionPolicy()

Output only. The service connection policy created automatically for the consumer network when psc_auto_connection_policy_enabled is true. It is in the format of: projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id} The policy_id is in format of $NETWORK-$RANDOM.

optional string service_connection_policy = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the serviceConnectionPolicy field is set.

hasServiceConnectionPolicyCreationResult()

public boolean hasServiceConnectionPolicyCreationResult()

Output only. The status of service connection policy creation.

optional string service_connection_policy_creation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the serviceConnectionPolicyCreationResult field is set.

hasStatus()

public boolean hasStatus()

The connection status of the consumer endpoint.

optional string status = 4;

Returns
Type Description
boolean

Whether the status field is set.

hasWriteEndpointAutoDnsStatus()

public boolean hasWriteEndpointAutoDnsStatus()

Output only. The status of automated DNS provisioning for the write endpoint.

optional .google.cloud.sql.v1beta4.AutoDnsStatus write_endpoint_auto_dns_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the writeEndpointAutoDnsStatus field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PscAutoConnectionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setConsumerNetwork(String value)

public PscAutoConnectionConfig.Builder setConsumerNetwork(String value)

Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name.

For example, projects/project1/global/networks/network1.

The consumer host project of this network might be different from the consumer service project.

string consumer_network = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The consumerNetwork to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setConsumerNetworkBytes(ByteString value)

public PscAutoConnectionConfig.Builder setConsumerNetworkBytes(ByteString value)

Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name.

For example, projects/project1/global/networks/network1.

The consumer host project of this network might be different from the consumer service project.

string consumer_network = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for consumerNetwork to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setConsumerNetworkStatus(String value)

public PscAutoConnectionConfig.Builder setConsumerNetworkStatus(String value)

The connection policy status of the consumer network.

optional string consumer_network_status = 5;

Parameter
Name Description
value String

The consumerNetworkStatus to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setConsumerNetworkStatusBytes(ByteString value)

public PscAutoConnectionConfig.Builder setConsumerNetworkStatusBytes(ByteString value)

The connection policy status of the consumer network.

optional string consumer_network_status = 5;

Parameter
Name Description
value ByteString

The bytes for consumerNetworkStatus to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setConsumerProject(String value)

public PscAutoConnectionConfig.Builder setConsumerProject(String value)

Optional. This is the project ID of consumer service project of this consumer endpoint.

Optional. This is only applicable if consumer_network is a shared vpc network.

string consumer_project = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The consumerProject to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setConsumerProjectBytes(ByteString value)

public PscAutoConnectionConfig.Builder setConsumerProjectBytes(ByteString value)

Optional. This is the project ID of consumer service project of this consumer endpoint.

Optional. This is only applicable if consumer_network is a shared vpc network.

string consumer_project = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for consumerProject to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setInstanceAutoDnsStatus(AutoDnsStatus value)

public PscAutoConnectionConfig.Builder setInstanceAutoDnsStatus(AutoDnsStatus value)

Output only. The status of automated DNS provisioning.

optional .google.cloud.sql.v1beta4.AutoDnsStatus instance_auto_dns_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AutoDnsStatus

The instanceAutoDnsStatus to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setInstanceAutoDnsStatusValue(int value)

public PscAutoConnectionConfig.Builder setInstanceAutoDnsStatusValue(int value)

Output only. The status of automated DNS provisioning.

optional .google.cloud.sql.v1beta4.AutoDnsStatus instance_auto_dns_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for instanceAutoDnsStatus to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setIpAddress(String value)

public PscAutoConnectionConfig.Builder setIpAddress(String value)

The IP address of the consumer endpoint.

optional string ip_address = 3 [(.google.api.field_info) = { ... }

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public PscAutoConnectionConfig.Builder setIpAddressBytes(ByteString value)

The IP address of the consumer endpoint.

optional string ip_address = 3 [(.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setServiceConnectionPolicy(String value)

public PscAutoConnectionConfig.Builder setServiceConnectionPolicy(String value)

Output only. The service connection policy created automatically for the consumer network when psc_auto_connection_policy_enabled is true. It is in the format of: projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id} The policy_id is in format of $NETWORK-$RANDOM.

optional string service_connection_policy = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The serviceConnectionPolicy to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setServiceConnectionPolicyBytes(ByteString value)

public PscAutoConnectionConfig.Builder setServiceConnectionPolicyBytes(ByteString value)

Output only. The service connection policy created automatically for the consumer network when psc_auto_connection_policy_enabled is true. It is in the format of: projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id} The policy_id is in format of $NETWORK-$RANDOM.

optional string service_connection_policy = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceConnectionPolicy to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setServiceConnectionPolicyCreationResult(String value)

public PscAutoConnectionConfig.Builder setServiceConnectionPolicyCreationResult(String value)

Output only. The status of service connection policy creation.

optional string service_connection_policy_creation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The serviceConnectionPolicyCreationResult to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setServiceConnectionPolicyCreationResultBytes(ByteString value)

public PscAutoConnectionConfig.Builder setServiceConnectionPolicyCreationResultBytes(ByteString value)

Output only. The status of service connection policy creation.

optional string service_connection_policy_creation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for serviceConnectionPolicyCreationResult to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setStatus(String value)

public PscAutoConnectionConfig.Builder setStatus(String value)

The connection status of the consumer endpoint.

optional string status = 4;

Parameter
Name Description
value String

The status to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public PscAutoConnectionConfig.Builder setStatusBytes(ByteString value)

The connection status of the consumer endpoint.

optional string status = 4;

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setWriteEndpointAutoDnsStatus(AutoDnsStatus value)

public PscAutoConnectionConfig.Builder setWriteEndpointAutoDnsStatus(AutoDnsStatus value)

Output only. The status of automated DNS provisioning for the write endpoint.

optional .google.cloud.sql.v1beta4.AutoDnsStatus write_endpoint_auto_dns_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AutoDnsStatus

The writeEndpointAutoDnsStatus to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.

setWriteEndpointAutoDnsStatusValue(int value)

public PscAutoConnectionConfig.Builder setWriteEndpointAutoDnsStatusValue(int value)

Output only. The status of automated DNS provisioning for the write endpoint.

optional .google.cloud.sql.v1beta4.AutoDnsStatus write_endpoint_auto_dns_status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for writeEndpointAutoDnsStatus to set.

Returns
Type Description
PscAutoConnectionConfig.Builder

This builder for chaining.