Class Instance.PscInterfaceConfig.Builder (0.30.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.v1alpha.Instance.PscInterfaceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The consumerEndpointIps to add.

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

The consumerEndpointIps to add.

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

The bytes of the consumerEndpointIps to add.

Returns
TypeDescription
Instance.PscInterfaceConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.PscInterfaceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Instance.PscInterfaceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.PscInterfaceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Instance.PscInterfaceConfig.Builder
Overrides

clone()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the consumerEndpointIps.

getDefaultInstanceForType()

public Instance.PscInterfaceConfig getDefaultInstanceForType()
Returns
TypeDescription
Instance.PscInterfaceConfig

getDescriptorForType()

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

The bytes for networkAttachment.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.PscInterfaceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The consumerEndpointIps to set.

Returns
TypeDescription
Instance.PscInterfaceConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The networkAttachment to set.

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

The bytes for networkAttachment to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Instance.PscInterfaceConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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