Class VpcAccess.Builder (0.54.0)

public static final class VpcAccess.Builder extends GeneratedMessageV3.Builder<VpcAccess.Builder> implements VpcAccessOrBuilder

VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

Protobuf type google.cloud.run.v2.VpcAccess

Implements

VpcAccessOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNetworkInterfaces(Iterable<? extends VpcAccess.NetworkInterface> values)

public VpcAccess.Builder addAllNetworkInterfaces(Iterable<? extends VpcAccess.NetworkInterface> values)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.run.v2.VpcAccess.NetworkInterface>
Returns
Type Description
VpcAccess.Builder

addNetworkInterfaces(VpcAccess.NetworkInterface value)

public VpcAccess.Builder addNetworkInterfaces(VpcAccess.NetworkInterface value)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VpcAccess.NetworkInterface
Returns
Type Description
VpcAccess.Builder

addNetworkInterfaces(VpcAccess.NetworkInterface.Builder builderForValue)

public VpcAccess.Builder addNetworkInterfaces(VpcAccess.NetworkInterface.Builder builderForValue)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue VpcAccess.NetworkInterface.Builder
Returns
Type Description
VpcAccess.Builder

addNetworkInterfaces(int index, VpcAccess.NetworkInterface value)

public VpcAccess.Builder addNetworkInterfaces(int index, VpcAccess.NetworkInterface value)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value VpcAccess.NetworkInterface
Returns
Type Description
VpcAccess.Builder

addNetworkInterfaces(int index, VpcAccess.NetworkInterface.Builder builderForValue)

public VpcAccess.Builder addNetworkInterfaces(int index, VpcAccess.NetworkInterface.Builder builderForValue)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue VpcAccess.NetworkInterface.Builder
Returns
Type Description
VpcAccess.Builder

addNetworkInterfacesBuilder()

public VpcAccess.NetworkInterface.Builder addNetworkInterfacesBuilder()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpcAccess.NetworkInterface.Builder

addNetworkInterfacesBuilder(int index)

public VpcAccess.NetworkInterface.Builder addNetworkInterfacesBuilder(int index)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpcAccess.Builder
Overrides

build()

public VpcAccess build()
Returns
Type Description
VpcAccess

buildPartial()

public VpcAccess buildPartial()
Returns
Type Description
VpcAccess

clear()

public VpcAccess.Builder clear()
Returns
Type Description
VpcAccess.Builder
Overrides

clearConnector()

public VpcAccess.Builder clearConnector()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
VpcAccess.Builder

This builder for chaining.

clearEgress()

public VpcAccess.Builder clearEgress()

Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpcAccess.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VpcAccess.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VpcAccess.Builder
Overrides

clearNetworkInterfaces()

public VpcAccess.Builder clearNetworkInterfaces()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpcAccess.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VpcAccess.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VpcAccess.Builder
Overrides

clone()

public VpcAccess.Builder clone()
Returns
Type Description
VpcAccess.Builder
Overrides

getConnector()

public String getConnector()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The connector.

getConnectorBytes()

public ByteString getConnectorBytes()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for connector.

getDefaultInstanceForType()

public VpcAccess getDefaultInstanceForType()
Returns
Type Description
VpcAccess

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEgress()

public VpcAccess.VpcEgress getEgress()

Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpcAccess.VpcEgress

The egress.

getEgressValue()

public int getEgressValue()

Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for egress.

getNetworkInterfaces(int index)

public VpcAccess.NetworkInterface getNetworkInterfaces(int index)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterface

getNetworkInterfacesBuilder(int index)

public VpcAccess.NetworkInterface.Builder getNetworkInterfacesBuilder(int index)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterface.Builder

getNetworkInterfacesBuilderList()

public List<VpcAccess.NetworkInterface.Builder> getNetworkInterfacesBuilderList()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getNetworkInterfacesList()

public List<VpcAccess.NetworkInterface> getNetworkInterfacesList()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public VpcAccess.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

public List<? extends VpcAccess.NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.run.v2.VpcAccess.NetworkInterfaceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VpcAccess other)

public VpcAccess.Builder mergeFrom(VpcAccess other)
Parameter
Name Description
other VpcAccess
Returns
Type Description
VpcAccess.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpcAccess.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VpcAccess.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VpcAccess.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpcAccess.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpcAccess.Builder
Overrides

removeNetworkInterfaces(int index)

public VpcAccess.Builder removeNetworkInterfaces(int index)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.Builder

setConnector(String value)

public VpcAccess.Builder setConnector(String value)

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The connector to set.

Returns
Type Description
VpcAccess.Builder

This builder for chaining.

setConnectorBytes(ByteString value)

public VpcAccess.Builder setConnectorBytes(ByteString value)

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for connector to set.

Returns
Type Description
VpcAccess.Builder

This builder for chaining.

setEgress(VpcAccess.VpcEgress value)

public VpcAccess.Builder setEgress(VpcAccess.VpcEgress value)

Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VpcAccess.VpcEgress

The egress to set.

Returns
Type Description
VpcAccess.Builder

This builder for chaining.

setEgressValue(int value)

public VpcAccess.Builder setEgressValue(int value)

Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for egress to set.

Returns
Type Description
VpcAccess.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpcAccess.Builder
Overrides

setNetworkInterfaces(int index, VpcAccess.NetworkInterface value)

public VpcAccess.Builder setNetworkInterfaces(int index, VpcAccess.NetworkInterface value)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value VpcAccess.NetworkInterface
Returns
Type Description
VpcAccess.Builder

setNetworkInterfaces(int index, VpcAccess.NetworkInterface.Builder builderForValue)

public VpcAccess.Builder setNetworkInterfaces(int index, VpcAccess.NetworkInterface.Builder builderForValue)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue VpcAccess.NetworkInterface.Builder
Returns
Type Description
VpcAccess.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VpcAccess.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VpcAccess.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VpcAccess.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpcAccess.Builder
Overrides