# Interface ConnectorOrBuilder (2.94.0)

2.94.0 (latest) 2.92.0 2.89.0 2.88.0 2.86.0 2.84.0 2.83.0 2.81.0 2.79.0 2.77.0 2.76.0 2.75.0 2.74.0 2.73.0 2.71.0 2.69.0 2.68.0 2.65.0 2.64.0 2.63.0 2.61.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.53.0 2.52.0 2.50.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.1.10

    public interface ConnectorOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getConnectedProjects(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The connectedProjects at the given index. |

### getConnectedProjectsBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the connectedProjects at the given index. |

### getConnectedProjectsCount()

    public abstract int getConnectedProjectsCount()

Output only. List of projects using the connector.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of connectedProjects. |

### getConnectedProjectsList()

    public abstract List<String> getConnectedProjectsList()

Output only. List of projects using the connector.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the connectedProjects. |

### getIpCidrRange()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ipCidrRange. |

### getIpCidrRangeBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for ipCidrRange. |

### getMachineType()

    public abstract String getMachineType()

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

`string machine_type = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The machineType. |

### getMachineTypeBytes()

    public abstract ByteString getMachineTypeBytes()

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

`string machine_type = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for machineType. |

### getMaxInstances()

    public abstract int getMaxInstances()

Maximum value of instances in autoscaling group underlying the connector.

`int32 max_instances = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxInstances. |

### getMaxThroughput()

    public abstract int getMaxThroughput()

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

`int32 max_throughput = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxThroughput. |

### getMinInstances()

    public abstract int getMinInstances()

Minimum value of instances in autoscaling group underlying the connector.

`int32 min_instances = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The minInstances. |

### getMinThroughput()

    public abstract int getMinThroughput()

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

`int32 min_throughput = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The minThroughput. |

### getName()

    public abstract String getName()

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

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

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

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getNetwork()

    public abstract String getNetwork()

Name of a VPC network.

`string network = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The network. |

### getNetworkBytes()

    public abstract ByteString getNetworkBytes()

Name of a VPC network.

`string network = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for network. |

### getState()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/com.google.cloud.vpcaccess.v1.Connector.State` | The state. |

### getStateValue()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getSubnet()

    public abstract Connector.Subnet getSubnet()

The subnet in which to house the VPC Access Connector.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/com.google.cloud.vpcaccess.v1.Connector.Subnet` | The subnet. |

### getSubnetOrBuilder()

    public abstract Connector.SubnetOrBuilder getSubnetOrBuilder()

The subnet in which to house the VPC Access Connector.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder` |   |

### hasSubnet()

    public abstract boolean hasSubnet()

The subnet in which to house the VPC Access Connector.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the subnet field is set. |