Class VpcAccess.Builder (0.41.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
TypeDescription
Descriptor

Methods

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

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.VpcAccess.NetworkInterface>
Returns
TypeDescription
VpcAccess.Builder

addNetworkInterfaces(VpcAccess.NetworkInterface value)

public VpcAccess.Builder addNetworkInterfaces(VpcAccess.NetworkInterface value)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
valueVpcAccess.NetworkInterface
Returns
TypeDescription
VpcAccess.Builder

addNetworkInterfaces(VpcAccess.NetworkInterface.Builder builderForValue)

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
builderForValueVpcAccess.NetworkInterface.Builder
Returns
TypeDescription
VpcAccess.Builder

addNetworkInterfaces(int index, VpcAccess.NetworkInterface value)

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameters
NameDescription
indexint
valueVpcAccess.NetworkInterface
Returns
TypeDescription
VpcAccess.Builder

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

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameters
NameDescription
indexint
builderForValueVpcAccess.NetworkInterface.Builder
Returns
TypeDescription
VpcAccess.Builder

addNetworkInterfacesBuilder()

public VpcAccess.NetworkInterface.Builder addNetworkInterfacesBuilder()

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
TypeDescription
VpcAccess.NetworkInterface.Builder

addNetworkInterfacesBuilder(int index)

public VpcAccess.NetworkInterface.Builder addNetworkInterfacesBuilder(int index)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpcAccess.NetworkInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpcAccess.Builder
Overrides

build()

public VpcAccess build()
Returns
TypeDescription
VpcAccess

buildPartial()

public VpcAccess buildPartial()
Returns
TypeDescription
VpcAccess

clear()

public VpcAccess.Builder clear()
Returns
TypeDescription
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
TypeDescription
VpcAccess.Builder

This builder for chaining.

clearEgress()

public VpcAccess.Builder clearEgress()

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

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VpcAccess.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VpcAccess.Builder
Overrides

clearNetworkInterfaces()

public VpcAccess.Builder clearNetworkInterfaces()

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
TypeDescription
VpcAccess.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VpcAccess.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VpcAccess.Builder
Overrides

clone()

public VpcAccess.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for connector.

getDefaultInstanceForType()

public VpcAccess getDefaultInstanceForType()
Returns
TypeDescription
VpcAccess

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEgress()

public VpcAccess.VpcEgress getEgress()

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

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Returns
TypeDescription
VpcAccess.VpcEgress

The egress.

getEgressValue()

public int getEgressValue()

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

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for egress.

getNetworkInterfaces(int index)

public VpcAccess.NetworkInterface getNetworkInterfaces(int index)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpcAccess.NetworkInterface

getNetworkInterfacesBuilder(int index)

public VpcAccess.NetworkInterface.Builder getNetworkInterfacesBuilder(int index)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpcAccess.NetworkInterface.Builder

getNetworkInterfacesBuilderList()

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
TypeDescription
List<Builder>

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
TypeDescription
int

getNetworkInterfacesList()

public List<VpcAccess.NetworkInterface> getNetworkInterfacesList()

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
TypeDescription
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public VpcAccess.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpcAccess.NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpcAccess other)

public VpcAccess.Builder mergeFrom(VpcAccess other)
Parameter
NameDescription
otherVpcAccess
Returns
TypeDescription
VpcAccess.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpcAccess.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VpcAccess.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VpcAccess.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpcAccess.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpcAccess.Builder
Overrides

removeNetworkInterfaces(int index)

public VpcAccess.Builder removeNetworkInterfaces(int index)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The connector to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for connector to set.

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

setEgress(VpcAccess.VpcEgress value)

public VpcAccess.Builder setEgress(VpcAccess.VpcEgress value)

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

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Parameter
NameDescription
valueVpcAccess.VpcEgress

The egress to set.

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

setEgressValue(int value)

public VpcAccess.Builder setEgressValue(int value)

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

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpcAccess.Builder
Overrides

setNetworkInterfaces(int index, VpcAccess.NetworkInterface value)

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameters
NameDescription
indexint
valueVpcAccess.NetworkInterface
Returns
TypeDescription
VpcAccess.Builder

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

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameters
NameDescription
indexint
builderForValueVpcAccess.NetworkInterface.Builder
Returns
TypeDescription
VpcAccess.Builder

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

public VpcAccess.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VpcAccess.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VpcAccess.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpcAccess.Builder
Overrides