Class VpcAccess.NetworkInterface (0.47.0)

public static final class VpcAccess.NetworkInterface extends GeneratedMessageV3 implements VpcAccess.NetworkInterfaceOrBuilder

Direct VPC egress settings.

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

Static Fields

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORK_FIELD_NUMBER

public static final int SUBNETWORK_FIELD_NUMBER
Field Value
Type Description
int

TAGS_FIELD_NUMBER

public static final int TAGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VpcAccess.NetworkInterface getDefaultInstance()
Returns
Type Description
VpcAccess.NetworkInterface

getDescriptor()

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

newBuilder()

public static VpcAccess.NetworkInterface.Builder newBuilder()
Returns
Type Description
VpcAccess.NetworkInterface.Builder

newBuilder(VpcAccess.NetworkInterface prototype)

public static VpcAccess.NetworkInterface.Builder newBuilder(VpcAccess.NetworkInterface prototype)
Parameter
Name Description
prototype VpcAccess.NetworkInterface
Returns
Type Description
VpcAccess.NetworkInterface.Builder

parseDelimitedFrom(InputStream input)

public static VpcAccess.NetworkInterface parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcAccess.NetworkInterface parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VpcAccess.NetworkInterface parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VpcAccess.NetworkInterface parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VpcAccess.NetworkInterface parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VpcAccess.NetworkInterface parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VpcAccess.NetworkInterface parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcAccess.NetworkInterface parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VpcAccess.NetworkInterface parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcAccess.NetworkInterface parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VpcAccess.NetworkInterface parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VpcAccess.NetworkInterface parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VpcAccess.NetworkInterface> parser()
Returns
Type Description
Parser<NetworkInterface>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<VpcAccess.NetworkInterface> getParserForType()
Returns
Type Description
Parser<NetworkInterface>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VpcAccess.NetworkInterface.Builder newBuilderForType()
Returns
Type Description
VpcAccess.NetworkInterface.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VpcAccess.NetworkInterface.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public VpcAccess.NetworkInterface.Builder toBuilder()
Returns
Type Description
VpcAccess.NetworkInterface.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException