Class Instance.PscInstanceConfig.Builder (0.23.0)

public static final class Instance.PscInstanceConfig.Builder extends GeneratedMessageV3.Builder<Instance.PscInstanceConfig.Builder> implements Instance.PscInstanceConfigOrBuilder

PscInstanceConfig contains PSC related configuration at an instance level.

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

Static Methods

getDescriptor()

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

Methods

addAllAllowedConsumerNetworks(Iterable<String> values)

public Instance.PscInstanceConfig.Builder addAllAllowedConsumerNetworks(Iterable<String> values)

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
Name Description
values Iterable<String>

The allowedConsumerNetworks to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

addAllAllowedConsumerProjects(Iterable<String> values)

public Instance.PscInstanceConfig.Builder addAllAllowedConsumerProjects(Iterable<String> values)

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
Name Description
values Iterable<String>

The allowedConsumerProjects to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

public Instance.PscInstanceConfig.Builder addAllOutgoingServiceAttachmentLinks(Iterable<String> values)

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
Name Description
values Iterable<String>

The outgoingServiceAttachmentLinks to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

addAllPscInterfaceConfigs(Iterable<? extends Instance.PscInterfaceConfig> values)

public Instance.PscInstanceConfig.Builder addAllPscInterfaceConfigs(Iterable<? extends Instance.PscInterfaceConfig> values)

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
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig>
Returns
Type Description
Instance.PscInstanceConfig.Builder

addAllowedConsumerNetworks(String value)

public Instance.PscInstanceConfig.Builder addAllowedConsumerNetworks(String value)

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
Name Description
value String

The allowedConsumerNetworks to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

addAllowedConsumerNetworksBytes(ByteString value)

public Instance.PscInstanceConfig.Builder addAllowedConsumerNetworksBytes(ByteString value)

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
Name Description
value ByteString

The bytes of the allowedConsumerNetworks to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

addAllowedConsumerProjects(String value)

public Instance.PscInstanceConfig.Builder addAllowedConsumerProjects(String value)

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
Name Description
value String

The allowedConsumerProjects to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

addAllowedConsumerProjectsBytes(ByteString value)

public Instance.PscInstanceConfig.Builder addAllowedConsumerProjectsBytes(ByteString value)

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
Name Description
value ByteString

The bytes of the allowedConsumerProjects to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

public Instance.PscInstanceConfig.Builder addOutgoingServiceAttachmentLinks(String value)

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
Name Description
value String

The outgoingServiceAttachmentLinks to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

addOutgoingServiceAttachmentLinksBytes(ByteString value)

public Instance.PscInstanceConfig.Builder addOutgoingServiceAttachmentLinksBytes(ByteString value)

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
Name Description
value ByteString

The bytes of the outgoingServiceAttachmentLinks to add.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

addPscInterfaceConfigs(Instance.PscInterfaceConfig value)

public Instance.PscInstanceConfig.Builder addPscInterfaceConfigs(Instance.PscInterfaceConfig value)

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
Name Description
value Instance.PscInterfaceConfig
Returns
Type Description
Instance.PscInstanceConfig.Builder

addPscInterfaceConfigs(Instance.PscInterfaceConfig.Builder builderForValue)

public Instance.PscInstanceConfig.Builder addPscInterfaceConfigs(Instance.PscInterfaceConfig.Builder builderForValue)

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
Name Description
builderForValue Instance.PscInterfaceConfig.Builder
Returns
Type Description
Instance.PscInstanceConfig.Builder

addPscInterfaceConfigs(int index, Instance.PscInterfaceConfig value)

public Instance.PscInstanceConfig.Builder addPscInterfaceConfigs(int index, Instance.PscInterfaceConfig value)

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];

Parameters
Name Description
index int
value Instance.PscInterfaceConfig
Returns
Type Description
Instance.PscInstanceConfig.Builder

addPscInterfaceConfigs(int index, Instance.PscInterfaceConfig.Builder builderForValue)

public Instance.PscInstanceConfig.Builder addPscInterfaceConfigs(int index, Instance.PscInterfaceConfig.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Instance.PscInterfaceConfig.Builder
Returns
Type Description
Instance.PscInstanceConfig.Builder

addPscInterfaceConfigsBuilder()

public Instance.PscInterfaceConfig.Builder addPscInterfaceConfigsBuilder()

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
Type Description
Instance.PscInterfaceConfig.Builder

addPscInterfaceConfigsBuilder(int index)

public Instance.PscInterfaceConfig.Builder addPscInterfaceConfigsBuilder(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
Name Description
index int
Returns
Type Description
Instance.PscInterfaceConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.PscInstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides

build()

public Instance.PscInstanceConfig build()
Returns
Type Description
Instance.PscInstanceConfig

buildPartial()

public Instance.PscInstanceConfig buildPartial()
Returns
Type Description
Instance.PscInstanceConfig

clear()

public Instance.PscInstanceConfig.Builder clear()
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides

clearAllowedConsumerNetworks()

public Instance.PscInstanceConfig.Builder clearAllowedConsumerNetworks()

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
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

clearAllowedConsumerProjects()

public Instance.PscInstanceConfig.Builder clearAllowedConsumerProjects()

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
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.PscInstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.PscInstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides
public Instance.PscInstanceConfig.Builder clearOutgoingServiceAttachmentLinks()

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
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

clearPscEnabled()

public Instance.PscInstanceConfig.Builder clearPscEnabled()

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
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

clearPscInterfaceConfigs()

public Instance.PscInstanceConfig.Builder clearPscInterfaceConfigs()

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
Type Description
Instance.PscInstanceConfig.Builder
public Instance.PscInstanceConfig.Builder clearServiceAttachmentLink()

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
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

clone()

public Instance.PscInstanceConfig.Builder clone()
Returns
Type Description
Instance.PscInstanceConfig.Builder
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
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. 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
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. 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
Type Description
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
Type Description
ProtocolStringList

A list containing the allowedConsumerProjects.

getDefaultInstanceForType()

public Instance.PscInstanceConfig getDefaultInstanceForType()
Returns
Type Description
Instance.PscInstanceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the outgoingServiceAttachmentLinks.

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
Type Description
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
Name Description
index int
Returns
Type Description
Instance.PscInterfaceConfig

getPscInterfaceConfigsBuilder(int index)

public Instance.PscInterfaceConfig.Builder getPscInterfaceConfigsBuilder(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
Name Description
index int
Returns
Type Description
Instance.PscInterfaceConfig.Builder

getPscInterfaceConfigsBuilderList()

public List<Instance.PscInterfaceConfig.Builder> getPscInterfaceConfigsBuilderList()

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
Type Description
List<Builder>

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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder>
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
Type Description
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
Type Description
ByteString

The bytes for serviceAttachmentLink.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.PscInstanceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.PscInstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides

removePscInterfaceConfigs(int index)

public Instance.PscInstanceConfig.Builder removePscInterfaceConfigs(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
Name Description
index int
Returns
Type Description
Instance.PscInstanceConfig.Builder

setAllowedConsumerNetworks(int index, String value)

public Instance.PscInstanceConfig.Builder setAllowedConsumerNetworks(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedConsumerNetworks to set.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

setAllowedConsumerProjects(int index, String value)

public Instance.PscInstanceConfig.Builder setAllowedConsumerProjects(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedConsumerProjects to set.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.PscInstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides
public Instance.PscInstanceConfig.Builder setOutgoingServiceAttachmentLinks(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The outgoingServiceAttachmentLinks to set.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

setPscEnabled(boolean value)

public Instance.PscInstanceConfig.Builder setPscEnabled(boolean value)

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];

Parameter
Name Description
value boolean

The pscEnabled to set.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

setPscInterfaceConfigs(int index, Instance.PscInterfaceConfig value)

public Instance.PscInstanceConfig.Builder setPscInterfaceConfigs(int index, Instance.PscInterfaceConfig value)

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];

Parameters
Name Description
index int
value Instance.PscInterfaceConfig
Returns
Type Description
Instance.PscInstanceConfig.Builder

setPscInterfaceConfigs(int index, Instance.PscInterfaceConfig.Builder builderForValue)

public Instance.PscInstanceConfig.Builder setPscInterfaceConfigs(int index, Instance.PscInterfaceConfig.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Instance.PscInterfaceConfig.Builder
Returns
Type Description
Instance.PscInstanceConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Instance.PscInstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides
public Instance.PscInstanceConfig.Builder setServiceAttachmentLink(String value)

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];

Parameter
Name Description
value String

The serviceAttachmentLink to set.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

setServiceAttachmentLinkBytes(ByteString value)

public Instance.PscInstanceConfig.Builder setServiceAttachmentLinkBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for serviceAttachmentLink to set.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.PscInstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.PscInstanceConfig.Builder
Overrides