Class VpcAccess.NetworkInterface.Builder (0.42.0)

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

Direct VPC egress settings.

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

Static Methods

getDescriptor()

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

Methods

addAllTags(Iterable<String> values)

public VpcAccess.NetworkInterface.Builder addAllTags(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)

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

addTags(String value)

public VpcAccess.NetworkInterface.Builder addTags(String value)

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)

public VpcAccess.NetworkInterface.Builder addTagsBytes(ByteString value)

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()

public VpcAccess.NetworkInterface build()
Returns
Type Description
VpcAccess.NetworkInterface

buildPartial()

public VpcAccess.NetworkInterface buildPartial()
Returns
Type Description
VpcAccess.NetworkInterface

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetwork()

public VpcAccess.NetworkInterface.Builder clearNetwork()

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)

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

clearSubnetwork()

public VpcAccess.NetworkInterface.Builder clearSubnetwork()

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()

public VpcAccess.NetworkInterface.Builder clearTags()

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VpcAccess.NetworkInterface getDefaultInstanceForType()
Returns
Type Description
VpcAccess.NetworkInterface

getDescriptorForType()

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

getNetwork()

public String getNetwork()

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()

public ByteString getNetworkBytes()

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()

public String getSubnetwork()

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()

public ByteString getSubnetworkBytes()

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)

public String getTags(int index)

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)

public ByteString getTagsBytes(int index)

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()

public int getTagsCount()

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Returns
Type Description
ProtocolStringList

A list containing the tags.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VpcAccess.NetworkInterface other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetwork(String value)

public VpcAccess.NetworkInterface.Builder setNetwork(String value)

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)

public VpcAccess.NetworkInterface.Builder setNetworkBytes(ByteString value)

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)

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

setSubnetwork(String value)

public VpcAccess.NetworkInterface.Builder setSubnetwork(String value)

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)

public VpcAccess.NetworkInterface.Builder setSubnetworkBytes(ByteString value)

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)

public VpcAccess.NetworkInterface.Builder setTags(int index, String value)

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)

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