Class Connector (2.44.0)

public final class Connector extends GeneratedMessageV3 implements ConnectorOrBuilder

Definition of a Serverless VPC Access connector.

Protobuf type google.cloud.vpcaccess.v1.Connector

Implements

ConnectorOrBuilder

Static Fields

CONNECTED_PROJECTS_FIELD_NUMBER

public static final int CONNECTED_PROJECTS_FIELD_NUMBER
Field Value
Type Description
int

IP_CIDR_RANGE_FIELD_NUMBER

public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MAX_INSTANCES_FIELD_NUMBER

public static final int MAX_INSTANCES_FIELD_NUMBER
Field Value
Type Description
int

MAX_THROUGHPUT_FIELD_NUMBER

public static final int MAX_THROUGHPUT_FIELD_NUMBER
Field Value
Type Description
int

MIN_INSTANCES_FIELD_NUMBER

public static final int MIN_INSTANCES_FIELD_NUMBER
Field Value
Type Description
int

MIN_THROUGHPUT_FIELD_NUMBER

public static final int MIN_THROUGHPUT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUBNET_FIELD_NUMBER

public static final int SUBNET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Connector getDefaultInstance()
Returns
Type Description
Connector

getDescriptor()

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

newBuilder()

public static Connector.Builder newBuilder()
Returns
Type Description
Connector.Builder

newBuilder(Connector prototype)

public static Connector.Builder newBuilder(Connector prototype)
Parameter
Name Description
prototype Connector
Returns
Type Description
Connector.Builder

parseDelimitedFrom(InputStream input)

public static Connector parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Connector
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Connector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connector
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Connector parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Connector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Connector parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Connector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Connector parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Connector
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connector
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Connector parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Connector
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connector
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Connector parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Connector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Connector
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Connector> parser()
Returns
Type Description
Parser<Connector>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<Connector> getParserForType()
Returns
Type Description
Parser<Connector>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Connector.Builder newBuilderForType()
Returns
Type Description
Connector.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Connector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Connector.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Connector.Builder toBuilder()
Returns
Type Description
Connector.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException