Class Connector (2.22.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
TypeDescription
int

IP_CIDR_RANGE_FIELD_NUMBER

public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_INSTANCES_FIELD_NUMBER

public static final int MAX_INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_THROUGHPUT_FIELD_NUMBER

public static final int MAX_THROUGHPUT_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_INSTANCES_FIELD_NUMBER

public static final int MIN_INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_THROUGHPUT_FIELD_NUMBER

public static final int MIN_THROUGHPUT_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

SUBNET_FIELD_NUMBER

public static final int SUBNET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Connector getDefaultInstance()
Returns
TypeDescription
Connector

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Connector.Builder newBuilder()
Returns
TypeDescription
Connector.Builder

newBuilder(Connector prototype)

public static Connector.Builder newBuilder(Connector prototype)
Parameter
NameDescription
prototypeConnector
Returns
TypeDescription
Connector.Builder

parseDelimitedFrom(InputStream input)

public static Connector parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Connector
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Connector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connector
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Connector parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Connector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Connector parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Connector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Connector parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Connector
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Connector parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Connector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connector
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Connector parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Connector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Connector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Connector
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Connector> parser()
Returns
TypeDescription
Parser<Connector>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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

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.

getParserForType()

public Parser<Connector> getParserForType()
Returns
TypeDescription
Parser<Connector>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Connector.Builder newBuilderForType()
Returns
TypeDescription
Connector.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Connector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Connector.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Connector.Builder toBuilder()
Returns
TypeDescription
Connector.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException