Class Instance.PscInstanceConfig (0.30.0)

public static final class Instance.PscInstanceConfig extends GeneratedMessageV3 implements Instance.PscInstanceConfigOrBuilder

PscInstanceConfig contains PSC related configuration at an instance level.

Protobuf type google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig

Static Fields

ALLOWED_CONSUMER_NETWORKS_FIELD_NUMBER

public static final int ALLOWED_CONSUMER_NETWORKS_FIELD_NUMBER
Field Value
TypeDescription
int

ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER

public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int OUTGOING_SERVICE_ATTACHMENT_LINKS_FIELD_NUMBER
Field Value
TypeDescription
int

PSC_ENABLED_FIELD_NUMBER

public static final int PSC_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

PSC_INTERFACE_CONFIGS_FIELD_NUMBER

public static final int PSC_INTERFACE_CONFIGS_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Instance.PscInstanceConfig getDefaultInstance()
Returns
TypeDescription
Instance.PscInstanceConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Instance.PscInstanceConfig.Builder newBuilder()
Returns
TypeDescription
Instance.PscInstanceConfig.Builder

newBuilder(Instance.PscInstanceConfig prototype)

public static Instance.PscInstanceConfig.Builder newBuilder(Instance.PscInstanceConfig prototype)
Parameter
NameDescription
prototypeInstance.PscInstanceConfig
Returns
TypeDescription
Instance.PscInstanceConfig.Builder

parseDelimitedFrom(InputStream input)

public static Instance.PscInstanceConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Instance.PscInstanceConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Instance.PscInstanceConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Instance.PscInstanceConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Instance.PscInstanceConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Instance.PscInstanceConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Instance.PscInstanceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.PscInstanceConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Instance.PscInstanceConfig> parser()
Returns
TypeDescription
Parser<PscInstanceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAllowedConsumerNetworks(int index)

public String getAllowedConsumerNetworks(int index)

Optional. List of consumer networks that are allowed to create PSC endpoints to service-attachments to this instance.

repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedConsumerNetworks at the given index.

getAllowedConsumerNetworksBytes(int index)

public ByteString getAllowedConsumerNetworksBytes(int index)

Optional. List of consumer networks that are allowed to create PSC endpoints to service-attachments to this instance.

repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedConsumerNetworks at the given index.

getAllowedConsumerNetworksCount()

public int getAllowedConsumerNetworksCount()

Optional. List of consumer networks that are allowed to create PSC endpoints to service-attachments to this instance.

repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of allowedConsumerNetworks.

getAllowedConsumerNetworksList()

public ProtocolStringList getAllowedConsumerNetworksList()

Optional. List of consumer networks that are allowed to create PSC endpoints to service-attachments to this instance.

repeated string allowed_consumer_networks = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the allowedConsumerNetworks.

getAllowedConsumerProjects(int index)

public String getAllowedConsumerProjects(int index)

Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedConsumerProjects at the given index.

getAllowedConsumerProjectsBytes(int index)

public ByteString getAllowedConsumerProjectsBytes(int index)

Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedConsumerProjects at the given index.

getAllowedConsumerProjectsCount()

public int getAllowedConsumerProjectsCount()

Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.

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

Returns
TypeDescription
int

The count of allowedConsumerProjects.

getAllowedConsumerProjectsList()

public ProtocolStringList getAllowedConsumerProjectsList()

Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.

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

Returns
TypeDescription
ProtocolStringList

A list containing the allowedConsumerProjects.

getDefaultInstanceForType()

public Instance.PscInstanceConfig getDefaultInstanceForType()
Returns
TypeDescription
Instance.PscInstanceConfig
public String getOutgoingServiceAttachmentLinks(int index)

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.

repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The outgoingServiceAttachmentLinks at the given index.

getOutgoingServiceAttachmentLinksBytes(int index)

public ByteString getOutgoingServiceAttachmentLinksBytes(int index)

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.

repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the outgoingServiceAttachmentLinks at the given index.

getOutgoingServiceAttachmentLinksCount()

public int getOutgoingServiceAttachmentLinksCount()

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.

repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of outgoingServiceAttachmentLinks.

public ProtocolStringList getOutgoingServiceAttachmentLinksList()

Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.

repeated string outgoing_service_attachment_links = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the outgoingServiceAttachmentLinks.

getParserForType()

public Parser<Instance.PscInstanceConfig> getParserForType()
Returns
TypeDescription
Parser<PscInstanceConfig>
Overrides

getPscEnabled()

public boolean getPscEnabled()

Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.

bool psc_enabled = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The pscEnabled.

getPscInterfaceConfigs(int index)

public Instance.PscInterfaceConfig getPscInterfaceConfigs(int index)

Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.PscInterfaceConfig

getPscInterfaceConfigsCount()

public int getPscInterfaceConfigsCount()

Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getPscInterfaceConfigsList()

public List<Instance.PscInterfaceConfig> getPscInterfaceConfigsList()

Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<PscInterfaceConfig>

getPscInterfaceConfigsOrBuilder(int index)

public Instance.PscInterfaceConfigOrBuilder getPscInterfaceConfigsOrBuilder(int index)

Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.PscInterfaceConfigOrBuilder

getPscInterfaceConfigsOrBuilderList()

public List<? extends Instance.PscInterfaceConfigOrBuilder> getPscInterfaceConfigsOrBuilderList()

Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides
public String getServiceAttachmentLink()

Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>

string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The serviceAttachmentLink.

getServiceAttachmentLinkBytes()

public ByteString getServiceAttachmentLinkBytes()

Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>

string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for serviceAttachmentLink.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Instance.PscInstanceConfig.Builder newBuilderForType()
Returns
TypeDescription
Instance.PscInstanceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Instance.PscInstanceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Instance.PscInstanceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Instance.PscInstanceConfig.Builder toBuilder()
Returns
TypeDescription
Instance.PscInstanceConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException