Class Instance.PscInterfaceConfig.Builder (0.32.0)

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

Configuration for setting up a PSC interface. This information needs to be provided by the customer. PSC interfaces will be created and added to VMs via SLM (adding a network interface will require recreating the VM). For HA instances this will be done via LDTM.

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

Static Methods

getDescriptor()

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

Methods

addAllConsumerEndpointIps(Iterable<String> values)

public Instance.PscInterfaceConfig.Builder addAllConsumerEndpointIps(Iterable<String> values)

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Parameter
Name Description
values Iterable<String>

The consumerEndpointIps to add.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

addConsumerEndpointIps(String value)

public Instance.PscInterfaceConfig.Builder addConsumerEndpointIps(String value)

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Parameter
Name Description
value String

The consumerEndpointIps to add.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

addConsumerEndpointIpsBytes(ByteString value)

public Instance.PscInterfaceConfig.Builder addConsumerEndpointIpsBytes(ByteString value)

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Parameter
Name Description
value ByteString

The bytes of the consumerEndpointIps to add.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearConsumerEndpointIps()

public Instance.PscInterfaceConfig.Builder clearConsumerEndpointIps()

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkAttachment()

public Instance.PscInterfaceConfig.Builder clearNetworkAttachment()

The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}. NetworkAttachment has to be provided when the PSC interface is created.

string network_attachment = 2;

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConsumerEndpointIps(int index)

public String getConsumerEndpointIps(int index)

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The consumerEndpointIps at the given index.

getConsumerEndpointIpsBytes(int index)

public ByteString getConsumerEndpointIpsBytes(int index)

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the consumerEndpointIps at the given index.

getConsumerEndpointIpsCount()

public int getConsumerEndpointIpsCount()

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Returns
Type Description
int

The count of consumerEndpointIps.

getConsumerEndpointIpsList()

public ProtocolStringList getConsumerEndpointIpsList()

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Returns
Type Description
ProtocolStringList

A list containing the consumerEndpointIps.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getNetworkAttachment()

public String getNetworkAttachment()

The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}. NetworkAttachment has to be provided when the PSC interface is created.

string network_attachment = 2;

Returns
Type Description
String

The networkAttachment.

getNetworkAttachmentBytes()

public ByteString getNetworkAttachmentBytes()

The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}. NetworkAttachment has to be provided when the PSC interface is created.

string network_attachment = 2;

Returns
Type Description
ByteString

The bytes for networkAttachment.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConsumerEndpointIps(int index, String value)

public Instance.PscInterfaceConfig.Builder setConsumerEndpointIps(int index, String value)

A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.

repeated string consumer_endpoint_ips = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The consumerEndpointIps to set.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkAttachment(String value)

public Instance.PscInterfaceConfig.Builder setNetworkAttachment(String value)

The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}. NetworkAttachment has to be provided when the PSC interface is created.

string network_attachment = 2;

Parameter
Name Description
value String

The networkAttachment to set.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

setNetworkAttachmentBytes(ByteString value)

public Instance.PscInterfaceConfig.Builder setNetworkAttachmentBytes(ByteString value)

The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}. NetworkAttachment has to be provided when the PSC interface is created.

string network_attachment = 2;

Parameter
Name Description
value ByteString

The bytes for networkAttachment to set.

Returns
Type Description
Instance.PscInterfaceConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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