Package com.google.cloud.vpcaccess.v1
Class Connector
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.vpcaccess.v1.Connector
-
- All Implemented Interfaces:
ConnectorOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Connector extends com.google.protobuf.GeneratedMessageV3 implements ConnectorOrBuilder
Definition of a Serverless VPC Access connector.
Protobuf typegoogle.cloud.vpcaccess.v1.Connector
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Connector.Builder
Definition of a Serverless VPC Access connector.static class
Connector.State
State of a connector.static class
Connector.Subnet
The subnet in which to house the connectorstatic interface
Connector.SubnetOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONNECTED_PROJECTS_FIELD_NUMBER
static int
IP_CIDR_RANGE_FIELD_NUMBER
static int
MACHINE_TYPE_FIELD_NUMBER
static int
MAX_INSTANCES_FIELD_NUMBER
static int
MAX_THROUGHPUT_FIELD_NUMBER
static int
MIN_INSTANCES_FIELD_NUMBER
static int
MIN_THROUGHPUT_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NETWORK_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
SUBNET_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getConnectedProjects(int index)
Output only.com.google.protobuf.ByteString
getConnectedProjectsBytes(int index)
Output only.int
getConnectedProjectsCount()
Output only.com.google.protobuf.ProtocolStringList
getConnectedProjectsList()
Output only.static Connector
getDefaultInstance()
Connector
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getIpCidrRange()
The range of internal addresses that follows RFC 4632 notation.com.google.protobuf.ByteString
getIpCidrRangeBytes()
The range of internal addresses that follows RFC 4632 notation.String
getMachineType()
Machine type of VM Instance underlying connector.com.google.protobuf.ByteString
getMachineTypeBytes()
Machine type of VM Instance underlying connector.int
getMaxInstances()
Maximum value of instances in autoscaling group underlying the connector.int
getMaxThroughput()
Maximum throughput of the connector in Mbps.int
getMinInstances()
Minimum value of instances in autoscaling group underlying the connector.int
getMinThroughput()
Minimum throughput of the connector in Mbps.String
getName()
The resource name in the format `projects/*/locations/*/connectors/*`.com.google.protobuf.ByteString
getNameBytes()
The resource name in the format `projects/*/locations/*/connectors/*`.String
getNetwork()
Name of a VPC network.com.google.protobuf.ByteString
getNetworkBytes()
Name of a VPC network.com.google.protobuf.Parser<Connector>
getParserForType()
int
getSerializedSize()
Connector.State
getState()
Output only.int
getStateValue()
Output only.Connector.Subnet
getSubnet()
The subnet in which to house the VPC Access Connector.Connector.SubnetOrBuilder
getSubnetOrBuilder()
The subnet in which to house the VPC Access Connector.int
hashCode()
boolean
hasSubnet()
The subnet in which to house the VPC Access Connector.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Connector.Builder
newBuilder()
static Connector.Builder
newBuilder(Connector prototype)
Connector.Builder
newBuilderForType()
protected Connector.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Connector
parseDelimitedFrom(InputStream input)
static Connector
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Connector
parseFrom(byte[] data)
static Connector
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Connector
parseFrom(com.google.protobuf.ByteString data)
static Connector
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Connector
parseFrom(com.google.protobuf.CodedInputStream input)
static Connector
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Connector
parseFrom(InputStream input)
static Connector
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Connector
parseFrom(ByteBuffer data)
static Connector
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Connector>
parser()
Connector.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IP_CIDR_RANGE_FIELD_NUMBER
public static final int IP_CIDR_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_THROUGHPUT_FIELD_NUMBER
public static final int MIN_THROUGHPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_THROUGHPUT_FIELD_NUMBER
public static final int MAX_THROUGHPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONNECTED_PROJECTS_FIELD_NUMBER
public static final int CONNECTED_PROJECTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBNET_FIELD_NUMBER
public static final int SUBNET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_INSTANCES_FIELD_NUMBER
public static final int MIN_INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_INSTANCES_FIELD_NUMBER
public static final int MAX_INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The resource name in the format `projects/*/locations/*/connectors/*`.
string name = 1;
- Specified by:
getName
in interfaceConnectorOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name in the format `projects/*/locations/*/connectors/*`.
string name = 1;
- Specified by:
getNameBytes
in interfaceConnectorOrBuilder
- Returns:
- The bytes for name.
-
getNetwork
public String getNetwork()
Name of a VPC network.
string network = 2;
- Specified by:
getNetwork
in interfaceConnectorOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
Name of a VPC network.
string network = 2;
- Specified by:
getNetworkBytes
in interfaceConnectorOrBuilder
- Returns:
- The bytes for network.
-
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;
- Specified by:
getIpCidrRange
in interfaceConnectorOrBuilder
- Returns:
- The ipCidrRange.
-
getIpCidrRangeBytes
public com.google.protobuf.ByteString getIpCidrRangeBytes()
The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`.
string ip_cidr_range = 3;
- Specified by:
getIpCidrRangeBytes
in interfaceConnectorOrBuilder
- Returns:
- The bytes for ipCidrRange.
-
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];
- Specified by:
getStateValue
in interfaceConnectorOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
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];
- Specified by:
getState
in interfaceConnectorOrBuilder
- Returns:
- The state.
-
getMinThroughput
public int getMinThroughput()
Minimum throughput of the connector in Mbps. Default and min is 200.
int32 min_throughput = 5;
- Specified by:
getMinThroughput
in interfaceConnectorOrBuilder
- Returns:
- The minThroughput.
-
getMaxThroughput
public int getMaxThroughput()
Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
int32 max_throughput = 6;
- Specified by:
getMaxThroughput
in interfaceConnectorOrBuilder
- Returns:
- The maxThroughput.
-
getConnectedProjectsList
public com.google.protobuf.ProtocolStringList getConnectedProjectsList()
Output only. List of projects using the connector.
repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConnectedProjectsList
in interfaceConnectorOrBuilder
- Returns:
- A list containing the connectedProjects.
-
getConnectedProjectsCount
public int getConnectedProjectsCount()
Output only. List of projects using the connector.
repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConnectedProjectsCount
in interfaceConnectorOrBuilder
- Returns:
- The count of connectedProjects.
-
getConnectedProjects
public String getConnectedProjects(int index)
Output only. List of projects using the connector.
repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConnectedProjects
in interfaceConnectorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The connectedProjects at the given index.
-
getConnectedProjectsBytes
public com.google.protobuf.ByteString getConnectedProjectsBytes(int index)
Output only. List of projects using the connector.
repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConnectedProjectsBytes
in interfaceConnectorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the connectedProjects at the given index.
-
hasSubnet
public boolean hasSubnet()
The subnet in which to house the VPC Access Connector.
.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
- Specified by:
hasSubnet
in interfaceConnectorOrBuilder
- Returns:
- Whether the subnet field is set.
-
getSubnet
public Connector.Subnet getSubnet()
The subnet in which to house the VPC Access Connector.
.google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
- Specified by:
getSubnet
in interfaceConnectorOrBuilder
- Returns:
- 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;
- Specified by:
getSubnetOrBuilder
in interfaceConnectorOrBuilder
-
getMachineType
public String getMachineType()
Machine type of VM Instance underlying connector. Default is e2-micro
string machine_type = 10;
- Specified by:
getMachineType
in interfaceConnectorOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
Machine type of VM Instance underlying connector. Default is e2-micro
string machine_type = 10;
- Specified by:
getMachineTypeBytes
in interfaceConnectorOrBuilder
- Returns:
- The bytes for machineType.
-
getMinInstances
public int getMinInstances()
Minimum value of instances in autoscaling group underlying the connector.
int32 min_instances = 11;
- Specified by:
getMinInstances
in interfaceConnectorOrBuilder
- Returns:
- The minInstances.
-
getMaxInstances
public int getMaxInstances()
Maximum value of instances in autoscaling group underlying the connector.
int32 max_instances = 12;
- Specified by:
getMaxInstances
in interfaceConnectorOrBuilder
- Returns:
- The maxInstances.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Connector parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Connector parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Connector parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Connector parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Connector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Connector parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Connector parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Connector parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Connector parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Connector parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Connector parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Connector parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Connector.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Connector.Builder newBuilder()
-
newBuilder
public static Connector.Builder newBuilder(Connector prototype)
-
toBuilder
public Connector.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Connector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Connector getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Connector> parser()
-
getParserForType
public com.google.protobuf.Parser<Connector> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Connector getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-