Class VpcAccess.NetworkInterface.Builder (0.28.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
TypeDescription
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
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
VpcAccess.NetworkInterface.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.NetworkInterface.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The tags to add.

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

The bytes of the tags to add.

Returns
TypeDescription
VpcAccess.NetworkInterface.Builder

This builder for chaining.

build()

public VpcAccess.NetworkInterface build()
Returns
TypeDescription
VpcAccess.NetworkInterface

buildPartial()

public VpcAccess.NetworkInterface buildPartial()
Returns
TypeDescription
VpcAccess.NetworkInterface

clear()

public VpcAccess.NetworkInterface.Builder clear()
Returns
TypeDescription
VpcAccess.NetworkInterface.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VpcAccess.NetworkInterface.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
VpcAccess.NetworkInterface.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VpcAccess.NetworkInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VpcAccess.NetworkInterface.Builder

This builder for chaining.

clone()

public VpcAccess.NetworkInterface.Builder clone()
Returns
TypeDescription
VpcAccess.NetworkInterface.Builder
Overrides

getDefaultInstanceForType()

public VpcAccess.NetworkInterface getDefaultInstanceForType()
Returns
TypeDescription
VpcAccess.NetworkInterface

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Network tags applied to this Cloud Run resource.

repeated string tags = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the tags.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpcAccess.NetworkInterface other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.NetworkInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The network to set.

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

The bytes for network to set.

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

The subnetwork to set.

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

The bytes for subnetwork to set.

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

The index to set the value at.

valueString

The tags to set.

Returns
TypeDescription
VpcAccess.NetworkInterface.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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