Class Connector.Builder (2.16.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
TypeDescription
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
NameDescription
valuesIterable<String>

The connectedProjects to add.

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

The connectedProjects to add.

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

The bytes of the connectedProjects to add.

Returns
TypeDescription
Connector.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Connector build()
Returns
TypeDescription
Connector

buildPartial()

public Connector buildPartial()
Returns
TypeDescription
Connector

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearName()

public Connector.Builder clearName()

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

string name = 1;

Returns
TypeDescription
Connector.Builder

This builder for chaining.

clearNetwork()

public Connector.Builder clearNetwork()

Name of a VPC network.

string network = 2;

Returns
TypeDescription
Connector.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Connector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Connector.Builder

clone()

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

The index of the element to return.

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

The index of the value to return.

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

A list containing the connectedProjects.

getDefaultInstanceForType()

public Connector getDefaultInstanceForType()
Returns
TypeDescription
Connector

getDescriptorForType()

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

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

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

string machine_type = 10;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMaxInstances()

public int getMaxInstances()

Maximum value of instances in autoscaling group underlying the connector.

int32 max_instances = 12;

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

The maxThroughput.

getMinInstances()

public int getMinInstances()

Minimum value of instances in autoscaling group underlying the connector.

int32 min_instances = 11;

Returns
TypeDescription
int

The minInstances.

getMinThroughput()

public int getMinThroughput()

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

int32 min_throughput = 5;

Returns
TypeDescription
int

The minThroughput.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Name of a VPC network.

string network = 2;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Name of a VPC network.

string network = 2;

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

Whether the subnet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Connector other)

public Connector.Builder mergeFrom(Connector other)
Parameter
NameDescription
otherConnector
Returns
TypeDescription
Connector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Connector.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueConnector.Subnet
Returns
TypeDescription
Connector.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The connectedProjects to set.

Returns
TypeDescription
Connector.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The ipCidrRange to set.

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

The bytes for ipCidrRange to set.

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

The machineType to set.

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

The bytes for machineType to set.

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

The maxInstances to set.

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

The maxThroughput to set.

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

The minInstances to set.

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

The minThroughput to set.

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
Connector.Builder

This builder for chaining.

setNetwork(String value)

public Connector.Builder setNetwork(String value)

Name of a VPC network.

string network = 2;

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
Connector.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Connector.Builder setNetworkBytes(ByteString value)

Name of a VPC network.

string network = 2;

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueConnector.State

The state to set.

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

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

Returns
TypeDescription
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
NameDescription
valueConnector.Subnet
Returns
TypeDescription
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
NameDescription
builderForValueConnector.Subnet.Builder
Returns
TypeDescription
Connector.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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