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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PscAutoConnectionConfig.Builder newBuilder()
newBuilder(PscAutoConnectionConfig prototype)
public static PscAutoConnectionConfig.Builder newBuilder(PscAutoConnectionConfig prototype)
public static PscAutoConnectionConfig parseDelimitedFrom(InputStream input)
public static PscAutoConnectionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PscAutoConnectionConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PscAutoConnectionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PscAutoConnectionConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PscAutoConnectionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PscAutoConnectionConfig parseFrom(CodedInputStream input)
public static PscAutoConnectionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PscAutoConnectionConfig parseFrom(InputStream input)
public static PscAutoConnectionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PscAutoConnectionConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PscAutoConnectionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PscAutoConnectionConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
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()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PscAutoConnectionConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PscAutoConnectionConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PscAutoConnectionConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides