Class PscAutoConnectionConfig (0.1.0)

public final class PscAutoConnectionConfig extends GeneratedMessage 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 Fields

CONSUMER_NETWORK_FIELD_NUMBER

public static final int CONSUMER_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

CONSUMER_NETWORK_STATUS_FIELD_NUMBER

public static final int CONSUMER_NETWORK_STATUS_FIELD_NUMBER
Field Value
Type Description
int

CONSUMER_PROJECT_FIELD_NUMBER

public static final int CONSUMER_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

INSTANCE_AUTO_DNS_STATUS_FIELD_NUMBER

public static final int INSTANCE_AUTO_DNS_STATUS_FIELD_NUMBER
Field Value
Type Description
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_CONNECTION_POLICY_CREATION_RESULT_FIELD_NUMBER

public static final int SERVICE_CONNECTION_POLICY_CREATION_RESULT_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_CONNECTION_POLICY_FIELD_NUMBER

public static final int SERVICE_CONNECTION_POLICY_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

WRITE_ENDPOINT_AUTO_DNS_STATUS_FIELD_NUMBER

public static final int WRITE_ENDPOINT_AUTO_DNS_STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PscAutoConnectionConfig getDefaultInstance()
Returns
Type Description
PscAutoConnectionConfig

getDescriptor()

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

newBuilder()

public static PscAutoConnectionConfig.Builder newBuilder()
Returns
Type Description
PscAutoConnectionConfig.Builder

newBuilder(PscAutoConnectionConfig prototype)

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

parseDelimitedFrom(InputStream input)

public static PscAutoConnectionConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PscAutoConnectionConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PscAutoConnectionConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PscAutoConnectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PscAutoConnectionConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PscAutoConnectionConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PscAutoConnectionConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PscAutoConnectionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PscAutoConnectionConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PscAutoConnectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PscAutoConnectionConfig> parser()
Returns
Type Description
Parser<PscAutoConnectionConfig>

Methods

equals(Object obj)

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

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

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.

getParserForType()

public Parser<PscAutoConnectionConfig> getParserForType()
Returns
Type Description
Parser<PscAutoConnectionConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PscAutoConnectionConfig.Builder newBuilderForType()
Returns
Type Description
PscAutoConnectionConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public PscAutoConnectionConfig.Builder toBuilder()
Returns
Type Description
PscAutoConnectionConfig.Builder

writeTo(CodedOutputStream output)

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