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 classConnector.BuilderDefinition of a Serverless VPC Access connector.static classConnector.StateState of a connector.static classConnector.SubnetThe subnet in which to house the connectorstatic interfaceConnector.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 intCONNECTED_PROJECTS_FIELD_NUMBERstatic intIP_CIDR_RANGE_FIELD_NUMBERstatic intMACHINE_TYPE_FIELD_NUMBERstatic intMAX_INSTANCES_FIELD_NUMBERstatic intMAX_THROUGHPUT_FIELD_NUMBERstatic intMIN_INSTANCES_FIELD_NUMBERstatic intMIN_THROUGHPUT_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNETWORK_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSUBNET_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetConnectedProjects(int index)Output only.com.google.protobuf.ByteStringgetConnectedProjectsBytes(int index)Output only.intgetConnectedProjectsCount()Output only.com.google.protobuf.ProtocolStringListgetConnectedProjectsList()Output only.static ConnectorgetDefaultInstance()ConnectorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetIpCidrRange()The range of internal addresses that follows RFC 4632 notation.com.google.protobuf.ByteStringgetIpCidrRangeBytes()The range of internal addresses that follows RFC 4632 notation.StringgetMachineType()Machine type of VM Instance underlying connector.com.google.protobuf.ByteStringgetMachineTypeBytes()Machine type of VM Instance underlying connector.intgetMaxInstances()Maximum value of instances in autoscaling group underlying the connector.intgetMaxThroughput()Maximum throughput of the connector in Mbps.intgetMinInstances()Minimum value of instances in autoscaling group underlying the connector.intgetMinThroughput()Minimum throughput of the connector in Mbps.StringgetName()The resource name in the format `projects/*/locations/*/connectors/*`.com.google.protobuf.ByteStringgetNameBytes()The resource name in the format `projects/*/locations/*/connectors/*`.StringgetNetwork()Name of a VPC network.com.google.protobuf.ByteStringgetNetworkBytes()Name of a VPC network.com.google.protobuf.Parser<Connector>getParserForType()intgetSerializedSize()Connector.StategetState()Output only.intgetStateValue()Output only.Connector.SubnetgetSubnet()The subnet in which to house the VPC Access Connector.Connector.SubnetOrBuildergetSubnetOrBuilder()The subnet in which to house the VPC Access Connector.inthashCode()booleanhasSubnet()The subnet in which to house the VPC Access Connector.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Connector.BuildernewBuilder()static Connector.BuildernewBuilder(Connector prototype)Connector.BuildernewBuilderForType()protected Connector.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ConnectorparseDelimitedFrom(InputStream input)static ConnectorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConnectorparseFrom(byte[] data)static ConnectorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConnectorparseFrom(com.google.protobuf.ByteString data)static ConnectorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConnectorparseFrom(com.google.protobuf.CodedInputStream input)static ConnectorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConnectorparseFrom(InputStream input)static ConnectorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConnectorparseFrom(ByteBuffer data)static ConnectorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Connector>parser()Connector.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The resource name in the format `projects/*/locations/*/connectors/*`.
string name = 1;- Specified by:
getNamein 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:
getNameBytesin interfaceConnectorOrBuilder- Returns:
- The bytes for name.
-
getNetwork
public String getNetwork()
Name of a VPC network.
string network = 2;- Specified by:
getNetworkin interfaceConnectorOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
Name of a VPC network.
string network = 2;- Specified by:
getNetworkBytesin 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:
getIpCidrRangein 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:
getIpCidrRangeBytesin 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:
getStateValuein 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:
getStatein 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:
getMinThroughputin 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:
getMaxThroughputin 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:
getConnectedProjectsListin 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:
getConnectedProjectsCountin 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:
getConnectedProjectsin 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:
getConnectedProjectsBytesin 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:
hasSubnetin 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:
getSubnetin 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:
getSubnetOrBuilderin interfaceConnectorOrBuilder
-
getMachineType
public String getMachineType()
Machine type of VM Instance underlying connector. Default is e2-micro
string machine_type = 10;- Specified by:
getMachineTypein 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:
getMachineTypeBytesin 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:
getMinInstancesin interfaceConnectorOrBuilder- Returns:
- The minInstances.
-
getMaxInstances
public int getMaxInstances()
Maximum value of instances in autoscaling group underlying the connector.
int32 max_instances = 12;- Specified by:
getMaxInstancesin interfaceConnectorOrBuilder- Returns:
- The maxInstances.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Connector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Connector getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-