Class Connector (2.54.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.54.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  Connector   extends   GeneratedMessageV3   implements   ConnectorOrBuilder  
   Definition of a Serverless VPC Access connector.
 Protobuf type google.cloud.vpcaccess.v1.Connector
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  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 ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Connector . Builder   newBuilder ()  
  
  newBuilder(Connector prototype) 
  
    
public   static   Connector . Builder   newBuilder ( Connector   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeConnector  
     
  
  
  
    
public   static   Connector   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Connector   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Connector   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Connector   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Connector   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Connector   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Connector   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Connector   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Connector   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Connector   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Connector   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Connector   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Connector>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  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  
      
        indexint 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  
      
        indexint 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];
 
getDefaultInstanceForType() 
  
    
public   Connector   getDefaultInstanceForType ()  
  
  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  
      
        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 ()  
  
  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];
 
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;
getSubnetOrBuilder() 
  
    
public   Connector . SubnetOrBuilder   getSubnetOrBuilder ()  
   The subnet in which to house the VPC Access Connector.
 .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
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  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Connector . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Connector . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Connector . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]