- 2.79.0 (latest)
 - 2.77.0
 - 2.76.0
 - 2.75.0
 - 2.74.0
 - 2.73.0
 - 2.71.0
 - 2.69.0
 - 2.68.0
 - 2.65.0
 - 2.64.0
 - 2.63.0
 - 2.61.0
 - 2.60.0
 - 2.59.0
 - 2.58.0
 - 2.57.0
 - 2.56.0
 - 2.55.0
 - 2.54.0
 - 2.53.0
 - 2.52.0
 - 2.50.0
 - 2.49.0
 - 2.48.0
 - 2.47.0
 - 2.46.0
 - 2.45.0
 - 2.44.0
 - 2.43.0
 - 2.42.0
 - 2.41.0
 - 2.40.0
 - 2.38.0
 - 2.37.0
 - 2.36.0
 - 2.35.0
 - 2.34.0
 - 2.33.0
 - 2.32.0
 - 2.31.0
 - 2.30.0
 - 2.29.0
 - 2.28.0
 - 2.25.0
 - 2.24.0
 - 2.23.0
 - 2.22.0
 - 2.21.0
 - 2.20.0
 - 2.19.0
 - 2.18.0
 - 2.17.0
 - 2.16.0
 - 2.15.0
 - 2.14.0
 - 2.13.0
 - 2.12.0
 - 2.10.0
 - 2.9.0
 - 2.8.0
 - 2.7.0
 - 2.6.0
 - 2.5.0
 - 2.1.10
 
public static final class Connector.Builder extends GeneratedMessageV3.Builder<Connector.Builder> implements ConnectorOrBuilderDefinition of a Serverless VPC Access connector.
 Protobuf type google.cloud.vpcaccess.v1.Connector
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Connector.BuilderImplements
ConnectorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addAllConnectedProjects(Iterable<String> values)
public Connector.Builder addAllConnectedProjects(Iterable<String> values)Output only. List of projects using the connector.
 repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<String>The connectedProjects to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
addConnectedProjects(String value)
public Connector.Builder addConnectedProjects(String value)Output only. List of projects using the connector.
 repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe connectedProjects to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
addConnectedProjectsBytes(ByteString value)
public Connector.Builder addConnectedProjectsBytes(ByteString value)Output only. List of projects using the connector.
 repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes of the connectedProjects to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Connector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
build()
public Connector build()| Returns | |
|---|---|
| Type | Description | 
Connector | 
        |
buildPartial()
public Connector buildPartial()| Returns | |
|---|---|
| Type | Description | 
Connector | 
        |
clear()
public Connector.Builder clear()| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
clearConnectedProjects()
public Connector.Builder clearConnectedProjects()Output only. List of projects using the connector.
 repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public Connector.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
clearIpCidrRange()
public Connector.Builder clearIpCidrRange() The range of internal addresses that follows RFC 4632 notation.
 Example: 10.132.0.0/28.
 string ip_cidr_range = 3;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearMachineType()
public Connector.Builder clearMachineType()Machine type of VM Instance underlying connector. Default is e2-micro
 string machine_type = 10;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearMaxInstances()
public Connector.Builder clearMaxInstances()Maximum value of instances in autoscaling group underlying the connector.
 int32 max_instances = 12;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearMaxThroughput()
public Connector.Builder clearMaxThroughput()Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
 int32 max_throughput = 6;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearMinInstances()
public Connector.Builder clearMinInstances()Minimum value of instances in autoscaling group underlying the connector.
 int32 min_instances = 11;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearMinThroughput()
public Connector.Builder clearMinThroughput()Minimum throughput of the connector in Mbps. Default and min is 200.
 int32 min_throughput = 5;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearName()
public Connector.Builder clearName() The resource name in the format projects/*/locations/*/connectors/*.
 string name = 1;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearNetwork()
public Connector.Builder clearNetwork()Name of a VPC network.
 string network = 2;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public Connector.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
clearState()
public Connector.Builder clearState()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 | 
Connector.Builder | 
        This builder for chaining.  | 
      
clearSubnet()
public Connector.Builder clearSubnet()The subnet in which to house the VPC Access Connector.
 .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
clone()
public Connector.Builder clone()| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
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 | 
        intThe 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 | 
        intThe 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 | |
|---|---|
| Type | Description | 
ProtocolStringList | 
        A list containing the connectedProjects.  | 
      
getDefaultInstanceForType()
public Connector getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
Connector | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
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()
public String 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.  | 
      
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 | |
|---|---|
| Type | Description | 
Connector.State | 
        The state.  | 
      
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 | |
|---|---|
| Type | Description | 
Connector.Subnet | 
        The subnet.  | 
      
getSubnetBuilder()
public Connector.Subnet.Builder getSubnetBuilder()The subnet in which to house the VPC Access Connector.
 .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
| Returns | |
|---|---|
| Type | Description | 
Connector.Subnet.Builder | 
        |
getSubnetOrBuilder()
public Connector.SubnetOrBuilder getSubnetOrBuilder()The subnet in which to house the VPC Access Connector.
 .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
| Returns | |
|---|---|
| Type | Description | 
Connector.SubnetOrBuilder | 
        |
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.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(Connector other)
public Connector.Builder mergeFrom(Connector other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Connector | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Connector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public Connector.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
mergeSubnet(Connector.Subnet value)
public Connector.Builder mergeSubnet(Connector.Subnet value)The subnet in which to house the VPC Access Connector.
 .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Connector.Subnet | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Connector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
setConnectedProjects(int index, String value)
public Connector.Builder setConnectedProjects(int index, String value)Output only. List of projects using the connector.
 repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameters | |
|---|---|
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        StringThe connectedProjects to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public Connector.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
setIpCidrRange(String value)
public Connector.Builder setIpCidrRange(String value) The range of internal addresses that follows RFC 4632 notation.
 Example: 10.132.0.0/28.
 string ip_cidr_range = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe ipCidrRange to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setIpCidrRangeBytes(ByteString value)
public Connector.Builder setIpCidrRangeBytes(ByteString value) The range of internal addresses that follows RFC 4632 notation.
 Example: 10.132.0.0/28.
 string ip_cidr_range = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for ipCidrRange to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setMachineType(String value)
public Connector.Builder setMachineType(String value)Machine type of VM Instance underlying connector. Default is e2-micro
 string machine_type = 10;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe machineType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setMachineTypeBytes(ByteString value)
public Connector.Builder setMachineTypeBytes(ByteString value)Machine type of VM Instance underlying connector. Default is e2-micro
 string machine_type = 10;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for machineType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setMaxInstances(int value)
public Connector.Builder setMaxInstances(int value)Maximum value of instances in autoscaling group underlying the connector.
 int32 max_instances = 12;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe maxInstances to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setMaxThroughput(int value)
public Connector.Builder setMaxThroughput(int value)Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
 int32 max_throughput = 6;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe maxThroughput to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setMinInstances(int value)
public Connector.Builder setMinInstances(int value)Minimum value of instances in autoscaling group underlying the connector.
 int32 min_instances = 11;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe minInstances to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setMinThroughput(int value)
public Connector.Builder setMinThroughput(int value)Minimum throughput of the connector in Mbps. Default and min is 200.
 int32 min_throughput = 5;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe minThroughput to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setName(String value)
public Connector.Builder setName(String value) The resource name in the format projects/*/locations/*/connectors/*.
 string name = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setNameBytes(ByteString value)
public Connector.Builder setNameBytes(ByteString value) The resource name in the format projects/*/locations/*/connectors/*.
 string name = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setNetwork(String value)
public Connector.Builder setNetwork(String value)Name of a VPC network.
 string network = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe network to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setNetworkBytes(ByteString value)
public Connector.Builder setNetworkBytes(ByteString value)Name of a VPC network.
 string network = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for network to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Connector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
setState(Connector.State value)
public Connector.Builder setState(Connector.State value)Output only. State of the VPC access connector.
 
 .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Connector.StateThe state to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setStateValue(int value)
public Connector.Builder setStateValue(int value)Output only. State of the VPC access connector.
 
 .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe enum numeric value on the wire for state to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        This builder for chaining.  | 
      
setSubnet(Connector.Subnet value)
public Connector.Builder setSubnet(Connector.Subnet value)The subnet in which to house the VPC Access Connector.
 .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Connector.Subnet | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
setSubnet(Connector.Subnet.Builder builderForValue)
public Connector.Builder setSubnet(Connector.Subnet.Builder builderForValue)The subnet in which to house the VPC Access Connector.
 .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        Connector.Subnet.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |
setUnknownFields(UnknownFieldSet unknownFields)
public final Connector.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
Connector.Builder | 
        |