Class Instance.PscInterfaceConfig.Builder (0.72.0)

public static final class Instance.PscInterfaceConfig.Builder extends GeneratedMessage.Builder<Instance.PscInterfaceConfig.Builder> implements Instance.PscInterfaceConfigOrBuilder

Configuration for setting up a PSC interface to enable outbound connectivity.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearNetworkAttachmentResource()

public Instance.PscInterfaceConfig.Builder clearNetworkAttachmentResource()

The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.

string network_attachment_resource = 1;

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNetworkAttachmentResource()

public String getNetworkAttachmentResource()

The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.

string network_attachment_resource = 1;

Returns
Type Description
String

The networkAttachmentResource.

getNetworkAttachmentResourceBytes()

public ByteString getNetworkAttachmentResourceBytes()

The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.

string network_attachment_resource = 1;

Returns
Type Description
ByteString

The bytes for networkAttachmentResource.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.PscInterfaceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNetworkAttachmentResource(String value)

public Instance.PscInterfaceConfig.Builder setNetworkAttachmentResource(String value)

The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.

string network_attachment_resource = 1;

Parameter
Name Description
value String

The networkAttachmentResource to set.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

setNetworkAttachmentResourceBytes(ByteString value)

public Instance.PscInterfaceConfig.Builder setNetworkAttachmentResourceBytes(ByteString value)

The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". The network attachment must be in the same region as the instance.

string network_attachment_resource = 1;

Parameter
Name Description
value ByteString

The bytes for networkAttachmentResource to set.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.