Class VpcAccess.NetworkInterface.Builder (0.53.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)

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpcAccess.NetworkInterface.Builder

This builder for chaining.

clearTags()

public VpcAccess.NetworkInterface.Builder clearTags()

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for network.

getSubnetwork()

public String getSubnetwork()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subnetwork.

getTags(int index)

public String getTags(int index)

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Network tags applied to this Cloud Run resource.

repeated string tags = 3 [(.google.api.field_behavior) = OPTIONAL];

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