public final class Connector extends GeneratedMessageV3 implements ConnectorOrBuilder
Definition of a Serverless VPC Access connector.
Protobuf type google.cloud.vpcaccess.v1.Connector
Static Fields
CONNECTED_PROJECTS_FIELD_NUMBER
public static final int CONNECTED_PROJECTS_FIELD_NUMBER
Field Value
IP_CIDR_RANGE_FIELD_NUMBER
public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
MAX_INSTANCES_FIELD_NUMBER
public static final int MAX_INSTANCES_FIELD_NUMBER
Field Value
MAX_THROUGHPUT_FIELD_NUMBER
public static final int MAX_THROUGHPUT_FIELD_NUMBER
Field Value
MIN_INSTANCES_FIELD_NUMBER
public static final int MIN_INSTANCES_FIELD_NUMBER
Field Value
MIN_THROUGHPUT_FIELD_NUMBER
public static final int MIN_THROUGHPUT_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
SUBNET_FIELD_NUMBER
public static final int SUBNET_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Connector getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Connector.Builder newBuilder()
Returns
newBuilder(Connector prototype)
public static Connector.Builder newBuilder(Connector prototype)
Parameter
Returns
public static Connector parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Connector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Connector parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Connector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Connector parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Connector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Connector parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Connector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Connector parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Connector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Connector parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Connector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Connector> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
getDefaultInstanceForType()
public Connector getDefaultInstanceForType()
Returns
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()
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
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
getParserForType()
public Parser<Connector> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
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
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
getSubnetOrBuilder()
public Connector.SubnetOrBuilder getSubnetOrBuilder()
The subnet in which to house the VPC Access Connector.
.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Connector.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Connector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Connector.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions