Class Instance.PscInstanceConfig.Builder (0.30.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
TypeDescription
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
NameDescription
valuesIterable<String>

The allowedConsumerNetworks to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The allowedConsumerProjects to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The outgoingServiceAttachmentLinks to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig>
Returns
TypeDescription
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
NameDescription
valueString

The allowedConsumerNetworks to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the allowedConsumerNetworks to add.

Returns
TypeDescription
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
NameDescription
valueString

The allowedConsumerProjects to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the allowedConsumerProjects to add.

Returns
TypeDescription
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
NameDescription
valueString

The outgoingServiceAttachmentLinks to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the outgoingServiceAttachmentLinks to add.

Returns
TypeDescription
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
NameDescription
valueInstance.PscInterfaceConfig
Returns
TypeDescription
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
NameDescription
builderForValueInstance.PscInterfaceConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInstance.PscInterfaceConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstance.PscInterfaceConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Instance.PscInterfaceConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.PscInstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Instance.PscInstanceConfig.Builder
Overrides

build()

public Instance.PscInstanceConfig build()
Returns
TypeDescription
Instance.PscInstanceConfig

buildPartial()

public Instance.PscInstanceConfig buildPartial()
Returns
TypeDescription
Instance.PscInstanceConfig

clear()

public Instance.PscInstanceConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Instance.PscInstanceConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.PscInstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Instance.PscInstanceConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.PscInstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Instance.PscInstanceConfig.Builder

This builder for chaining.

clone()

public Instance.PscInstanceConfig.Builder clone()
Returns
TypeDescription
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
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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>
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.PscInstanceConfig other)

public Instance.PscInstanceConfig.Builder mergeFrom(Instance.PscInstanceConfig other)
Parameter
NameDescription
otherInstance.PscInstanceConfig
Returns
TypeDescription
Instance.PscInstanceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Instance.PscInstanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.PscInstanceConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Instance.PscInstanceConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Instance.PscInstanceConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.PscInstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The allowedConsumerNetworks to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The allowedConsumerProjects to set.

Returns
TypeDescription
Instance.PscInstanceConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.PscInstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The outgoingServiceAttachmentLinks to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The pscEnabled to set.

Returns
TypeDescription
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
NameDescription
indexint
valueInstance.PscInterfaceConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstance.PscInterfaceConfig.Builder
Returns
TypeDescription
Instance.PscInstanceConfig.Builder

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

public Instance.PscInstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceAttachmentLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceAttachmentLink to set.

Returns
TypeDescription
Instance.PscInstanceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.PscInstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Instance.PscInstanceConfig.Builder
Overrides