Class Connector.Builder (2.53.0)

public static final class Connector.Builder extends GeneratedMessageV3.Builder<Connector.Builder> implements ConnectorOrBuilder

Definition of a Serverless VPC Access connector.

Protobuf type google.cloud.vpcaccess.v1.Connector

Implements

ConnectorOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllConnectedProjects(Iterable<String> values)

public Connector.Builder addAllConnectedProjects(Iterable<String> values)

Output only. List of projects using the connector.

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

Parameter
Name Description
values Iterable<String>

The connectedProjects to add.

Returns
Type Description
Connector.Builder

This builder for chaining.

addConnectedProjects(String value)

public Connector.Builder addConnectedProjects(String value)

Output only. List of projects using the connector.

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

Parameter
Name Description
value String

The connectedProjects to add.

Returns
Type Description
Connector.Builder

This builder for chaining.

addConnectedProjectsBytes(ByteString value)

public Connector.Builder addConnectedProjectsBytes(ByteString value)

Output only. List of projects using the connector.

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

Parameter
Name Description
value ByteString

The bytes of the connectedProjects to add.

Returns
Type Description
Connector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Connector build()
Returns
Type Description
Connector

buildPartial()

public Connector buildPartial()
Returns
Type Description
Connector

clear()

public Connector.Builder clear()
Returns
Type Description
Connector.Builder
Overrides

clearConnectedProjects()

public Connector.Builder clearConnectedProjects()

Output only. List of projects using the connector.

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

Returns
Type Description
Connector.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpCidrRange()

public Connector.Builder clearIpCidrRange()

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

string ip_cidr_range = 3;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearMachineType()

public Connector.Builder clearMachineType()

Machine type of VM Instance underlying connector. Default is e2-micro

string machine_type = 10;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearMaxInstances()

public Connector.Builder clearMaxInstances()

Maximum value of instances in autoscaling group underlying the connector.

int32 max_instances = 12;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearMaxThroughput()

public Connector.Builder clearMaxThroughput()

Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

int32 max_throughput = 6;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearMinInstances()

public Connector.Builder clearMinInstances()

Minimum value of instances in autoscaling group underlying the connector.

int32 min_instances = 11;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearMinThroughput()

public Connector.Builder clearMinThroughput()

Minimum throughput of the connector in Mbps. Default and min is 200.

int32 min_throughput = 5;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearName()

public Connector.Builder clearName()

The resource name in the format projects/*/locations/*/connectors/*.

string name = 1;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearNetwork()

public Connector.Builder clearNetwork()

Name of a VPC network.

string network = 2;

Returns
Type Description
Connector.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Connector.Builder clearState()

Output only. State of the VPC access connector.

.google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connector.Builder

This builder for chaining.

clearSubnet()

public Connector.Builder clearSubnet()

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Returns
Type Description
Connector.Builder

clone()

public Connector.Builder clone()
Returns
Type Description
Connector.Builder
Overrides

getConnectedProjects(int index)

public String getConnectedProjects(int index)

Output only. List of projects using the connector.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The connectedProjects at the given index.

getConnectedProjectsBytes(int index)

public ByteString getConnectedProjectsBytes(int index)

Output only. List of projects using the connector.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the connectedProjects at the given index.

getConnectedProjectsCount()

public int getConnectedProjectsCount()

Output only. List of projects using the connector.

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

Returns
Type Description
int

The count of connectedProjects.

getConnectedProjectsList()

public ProtocolStringList getConnectedProjectsList()

Output only. List of projects using the connector.

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

Returns
Type Description
ProtocolStringList

A list containing the connectedProjects.

getDefaultInstanceForType()

public Connector getDefaultInstanceForType()
Returns
Type Description
Connector

getDescriptorForType()

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

getIpCidrRange()

public String getIpCidrRange()

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

string ip_cidr_range = 3;

Returns
Type Description
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

string ip_cidr_range = 3;

Returns
Type Description
ByteString

The bytes for ipCidrRange.

getMachineType()

public String getMachineType()

Machine type of VM Instance underlying connector. Default is e2-micro

string machine_type = 10;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Machine type of VM Instance underlying connector. Default is e2-micro

string machine_type = 10;

Returns
Type Description
ByteString

The bytes for machineType.

getMaxInstances()

public int getMaxInstances()

Maximum value of instances in autoscaling group underlying the connector.

int32 max_instances = 12;

Returns
Type Description
int

The maxInstances.

getMaxThroughput()

public int getMaxThroughput()

Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

int32 max_throughput = 6;

Returns
Type Description
int

The maxThroughput.

getMinInstances()

public int getMinInstances()

Minimum value of instances in autoscaling group underlying the connector.

int32 min_instances = 11;

Returns
Type Description
int

The minInstances.

getMinThroughput()

public int getMinThroughput()

Minimum throughput of the connector in Mbps. Default and min is 200.

int32 min_throughput = 5;

Returns
Type Description
int

The minThroughput.

getName()

public String getName()

The resource name in the format projects/*/locations/*/connectors/*.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name in the format projects/*/locations/*/connectors/*.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Name of a VPC network.

string network = 2;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Name of a VPC network.

string network = 2;

Returns
Type Description
ByteString

The bytes for network.

getState()

public Connector.State getState()

Output only. State of the VPC access connector.

.google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connector.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the VPC access connector.

.google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubnet()

public Connector.Subnet getSubnet()

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Returns
Type Description
Connector.Subnet

The subnet.

getSubnetBuilder()

public Connector.Subnet.Builder getSubnetBuilder()

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Returns
Type Description
Connector.Subnet.Builder

getSubnetOrBuilder()

public Connector.SubnetOrBuilder getSubnetOrBuilder()

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Returns
Type Description
Connector.SubnetOrBuilder

hasSubnet()

public boolean hasSubnet()

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Returns
Type Description
boolean

Whether the subnet field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Connector other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubnet(Connector.Subnet value)

public Connector.Builder mergeSubnet(Connector.Subnet value)

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Parameter
Name Description
value Connector.Subnet
Returns
Type Description
Connector.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConnectedProjects(int index, String value)

public Connector.Builder setConnectedProjects(int index, String value)

Output only. List of projects using the connector.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The connectedProjects to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpCidrRange(String value)

public Connector.Builder setIpCidrRange(String value)

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

string ip_cidr_range = 3;

Parameter
Name Description
value String

The ipCidrRange to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setIpCidrRangeBytes(ByteString value)

public Connector.Builder setIpCidrRangeBytes(ByteString value)

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

string ip_cidr_range = 3;

Parameter
Name Description
value ByteString

The bytes for ipCidrRange to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setMachineType(String value)

public Connector.Builder setMachineType(String value)

Machine type of VM Instance underlying connector. Default is e2-micro

string machine_type = 10;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public Connector.Builder setMachineTypeBytes(ByteString value)

Machine type of VM Instance underlying connector. Default is e2-micro

string machine_type = 10;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setMaxInstances(int value)

public Connector.Builder setMaxInstances(int value)

Maximum value of instances in autoscaling group underlying the connector.

int32 max_instances = 12;

Parameter
Name Description
value int

The maxInstances to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setMaxThroughput(int value)

public Connector.Builder setMaxThroughput(int value)

Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

int32 max_throughput = 6;

Parameter
Name Description
value int

The maxThroughput to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setMinInstances(int value)

public Connector.Builder setMinInstances(int value)

Minimum value of instances in autoscaling group underlying the connector.

int32 min_instances = 11;

Parameter
Name Description
value int

The minInstances to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setMinThroughput(int value)

public Connector.Builder setMinThroughput(int value)

Minimum throughput of the connector in Mbps. Default and min is 200.

int32 min_throughput = 5;

Parameter
Name Description
value int

The minThroughput to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setName(String value)

public Connector.Builder setName(String value)

The resource name in the format projects/*/locations/*/connectors/*.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Connector.Builder setNameBytes(ByteString value)

The resource name in the format projects/*/locations/*/connectors/*.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setNetwork(String value)

public Connector.Builder setNetwork(String value)

Name of a VPC network.

string network = 2;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Connector.Builder setNetworkBytes(ByteString value)

Name of a VPC network.

string network = 2;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

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

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

setState(Connector.State value)

public Connector.Builder setState(Connector.State value)

Output only. State of the VPC access connector.

.google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Connector.State

The state to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setStateValue(int value)

public Connector.Builder setStateValue(int value)

Output only. State of the VPC access connector.

.google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Connector.Builder

This builder for chaining.

setSubnet(Connector.Subnet value)

public Connector.Builder setSubnet(Connector.Subnet value)

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Parameter
Name Description
value Connector.Subnet
Returns
Type Description
Connector.Builder

setSubnet(Connector.Subnet.Builder builderForValue)

public Connector.Builder setSubnet(Connector.Subnet.Builder builderForValue)

The subnet in which to house the VPC Access Connector.

.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;

Parameter
Name Description
builderForValue Connector.Subnet.Builder
Returns
Type Description
Connector.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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