Class Instance.PscInstanceConfig.Builder (0.44.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

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.

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. Currently we only support 0 or 1 PSC interface.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig>
Returns
Type Description
Instance.PscInstanceConfig.Builder

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.

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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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

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

clearPscDnsName()

public Instance.PscInstanceConfig.Builder clearPscDnsName()

Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog

string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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

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

getPscDnsName()

public String getPscDnsName()

Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog

string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The pscDnsName.

getPscDnsNameBytes()

public ByteString getPscDnsNameBytes()

Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog

string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for pscDnsName.

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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

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

Parameter
Name Description
index int
Returns
Type Description
Instance.PscInstanceConfig.Builder

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

setPscDnsName(String value)

public Instance.PscInstanceConfig.Builder setPscDnsName(String value)

Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog

string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The pscDnsName to set.

Returns
Type Description
Instance.PscInstanceConfig.Builder

This builder for chaining.

setPscDnsNameBytes(ByteString value)

public Instance.PscInstanceConfig.Builder setPscDnsNameBytes(ByteString value)

Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog

string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for pscDnsName 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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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. Currently we only support 0 or 1 PSC interface.

repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.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