Class VpcAccess.NetworkInterface.Builder (0.33.0)

publicstaticfinalclass VpcAccess.NetworkInterface.BuilderextendsGeneratedMessageV3.Builder<VpcAccess.NetworkInterface.Builder>implementsVpcAccess.NetworkInterfaceOrBuilder

Direct VPC egress settings.

Protobuf type google.cloud.run.v2.VpcAccess.NetworkInterface

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTags(Iterable<String> values)

publicVpcAccess.NetworkInterface.BuilderaddAllTags(Iterable<String>values)

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicVpcAccess.NetworkInterface.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

addTags(String value)

publicVpcAccess.NetworkInterface.BuilderaddTags(Stringvalue)

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

addTagsBytes(ByteString value)

publicVpcAccess.NetworkInterface.BuilderaddTagsBytes(ByteStringvalue)

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

build()

publicVpcAccess.NetworkInterfacebuild()
Returns
Type Description
VpcAccess.NetworkInterface

buildPartial()

publicVpcAccess.NetworkInterfacebuildPartial()
Returns
Type Description
VpcAccess.NetworkInterface

clear()

publicVpcAccess.NetworkInterface.Builderclear()
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicVpcAccess.NetworkInterface.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

clearNetwork()

publicVpcAccess.NetworkInterface.BuilderclearNetwork()

The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.

string network = 1;

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicVpcAccess.NetworkInterface.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

clearSubnetwork()

publicVpcAccess.NetworkInterface.BuilderclearSubnetwork()

The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.

string subnetwork = 2;

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

clearTags()

publicVpcAccess.NetworkInterface.BuilderclearTags()

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

clone()

publicVpcAccess.NetworkInterface.Builderclone()
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

getDefaultInstanceForType()

publicVpcAccess.NetworkInterfacegetDefaultInstanceForType()
Returns
Type Description
VpcAccess.NetworkInterface

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNetwork()

publicStringgetNetwork()

The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.

string network = 1;

Returns
Type Description
String

The network.

getNetworkBytes()

publicByteStringgetNetworkBytes()

The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.

string network = 1;

Returns
Type Description
ByteString

The bytes for network.

getSubnetwork()

publicStringgetSubnetwork()

The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.

string subnetwork = 2;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

publicByteStringgetSubnetworkBytes()

The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.

string subnetwork = 2;

Returns
Type Description
ByteString

The bytes for subnetwork.

getTags(int index)

publicStringgetTags(intindex)

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tags at the given index.

getTagsBytes(int index)

publicByteStringgetTagsBytes(intindex)

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tags at the given index.

getTagsCount()

publicintgetTagsCount()

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Returns
Type Description
int

The count of tags.

getTagsList()

publicProtocolStringListgetTagsList()

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Returns
Type Description
ProtocolStringList

A list containing the tags.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VpcAccess.NetworkInterface other)

publicVpcAccess.NetworkInterface.BuildermergeFrom(VpcAccess.NetworkInterfaceother)
Parameter
Name Description
other VpcAccess.NetworkInterface
Returns
Type Description
VpcAccess.NetworkInterface.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicVpcAccess.NetworkInterface.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicVpcAccess.NetworkInterface.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalVpcAccess.NetworkInterface.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicVpcAccess.NetworkInterface.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

setNetwork(String value)

publicVpcAccess.NetworkInterface.BuildersetNetwork(Stringvalue)

The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.

string network = 1;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

publicVpcAccess.NetworkInterface.BuildersetNetworkBytes(ByteStringvalue)

The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.

string network = 1;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

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

publicVpcAccess.NetworkInterface.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

setSubnetwork(String value)

publicVpcAccess.NetworkInterface.BuildersetSubnetwork(Stringvalue)

The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.

string subnetwork = 2;

Parameter
Name Description
value String

The subnetwork to set.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

publicVpcAccess.NetworkInterface.BuildersetSubnetworkBytes(ByteStringvalue)

The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.

string subnetwork = 2;

Parameter
Name Description
value ByteString

The bytes for subnetwork to set.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

setTags(int index, String value)

publicVpcAccess.NetworkInterface.BuildersetTags(intindex,Stringvalue)

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The tags to set.

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalVpcAccess.NetworkInterface.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VpcAccess.NetworkInterface.Builder
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月30日 UTC.