public final class PscConfig extends GeneratedMessage implements PscConfigOrBuilder
PSC settings for a Cloud SQL instance.
Protobuf type google.cloud.sql.v1.PscConfig
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
ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER
public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NETWORK_ATTACHMENT_URI_FIELD_NUMBER
public static final int NETWORK_ATTACHMENT_URI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PSC_AUTO_CONNECTIONS_FIELD_NUMBER
public static final int PSC_AUTO_CONNECTIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PSC_AUTO_CONNECTION_POLICY_ENABLED_FIELD_NUMBER
public static final int PSC_AUTO_CONNECTION_POLICY_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PSC_AUTO_DNS_ENABLED_FIELD_NUMBER
public static final int PSC_AUTO_DNS_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PSC_ENABLED_FIELD_NUMBER
public static final int PSC_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PSC_WRITE_ENDPOINT_DNS_ENABLED_FIELD_NUMBER
public static final int PSC_WRITE_ENDPOINT_DNS_ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static PscConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PscConfig.Builder newBuilder()
newBuilder(PscConfig prototype)
public static PscConfig.Builder newBuilder(PscConfig prototype)
| Parameter |
| Name |
Description |
prototype |
PscConfig
|
public static PscConfig parseDelimitedFrom(InputStream input)
public static PscConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PscConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PscConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PscConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PscConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PscConfig parseFrom(CodedInputStream input)
public static PscConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PscConfig parseFrom(InputStream input)
public static PscConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PscConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PscConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PscConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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 |
int
The 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 |
int
The 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()
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.
|
getParserForType()
public Parser<PscConfig> getParserForType()
Overrides
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.v1.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
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.v1.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.v1.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
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.v1.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
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.v1.PscAutoConnectionConfig psc_auto_connections = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.sql.v1.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.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PscConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PscConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PscConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides