Class 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 type google.cloud.vpcaccess.v1.Connector
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         The resource name in the format `projects/*/locations/*/connectors/*`.
         
        string name = 1;
        Specified by:
        getName in interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        Returns:
        The bytes for name.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         Name of a VPC network.
         
        string network = 2;
        Specified by:
        getNetworkBytes in interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        Returns:
        The subnet.
      • getMachineType

        public String getMachineType()
         Machine type of VM Instance underlying connector. Default is e2-micro
         
        string machine_type = 10;
        Specified by:
        getMachineType in interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        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 interface ConnectorOrBuilder
        Returns:
        The maxInstances.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Connector.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Connector.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Connector.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Connector getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder