Class VpcAccess.NetworkInterface (0.52.0)

publicstaticfinalclass VpcAccess.NetworkInterfaceextendsGeneratedMessageV3implementsVpcAccess.NetworkInterfaceOrBuilder

Direct VPC egress settings.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

NETWORK_FIELD_NUMBER

publicstaticfinalintNETWORK_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORK_FIELD_NUMBER

publicstaticfinalintSUBNETWORK_FIELD_NUMBER
Field Value
Type Description
int

TAGS_FIELD_NUMBER

publicstaticfinalintTAGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticVpcAccess.NetworkInterfacegetDefaultInstance()
Returns
Type Description
VpcAccess.NetworkInterface

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticVpcAccess.NetworkInterface.BuildernewBuilder()
Returns
Type Description
VpcAccess.NetworkInterface.Builder

newBuilder(VpcAccess.NetworkInterface prototype)

publicstaticVpcAccess.NetworkInterface.BuildernewBuilder(VpcAccess.NetworkInterfaceprototype)
Parameter
Name Description
prototype VpcAccess.NetworkInterface
Returns
Type Description
VpcAccess.NetworkInterface.Builder

parseDelimitedFrom(InputStream input)

publicstaticVpcAccess.NetworkInterfaceparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccess.NetworkInterfaceparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticVpcAccess.NetworkInterfaceparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccess.NetworkInterfaceparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticVpcAccess.NetworkInterfaceparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccess.NetworkInterfaceparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticVpcAccess.NetworkInterfaceparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccess.NetworkInterfaceparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticVpcAccess.NetworkInterfaceparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccess.NetworkInterfaceparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticVpcAccess.NetworkInterfaceparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccess.NetworkInterfaceparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess.NetworkInterface
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicVpcAccess.NetworkInterfacegetDefaultInstanceForType()
Returns
Type Description
VpcAccess.NetworkInterface

getNetwork()

publicStringgetNetwork()

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

publicByteStringgetNetworkBytes()

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

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSubnetwork()

publicStringgetSubnetwork()

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

publicByteStringgetSubnetworkBytes()

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)

publicStringgetTags(intindex)

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)

publicByteStringgetTagsBytes(intindex)

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

publicintgetTagsCount()

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

publicProtocolStringListgetTagsList()

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

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicVpcAccess.NetworkInterface.BuildernewBuilderForType()
Returns
Type Description
VpcAccess.NetworkInterface.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedVpcAccess.NetworkInterface.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VpcAccess.NetworkInterface.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicVpcAccess.NetworkInterface.BuildertoBuilder()
Returns
Type Description
VpcAccess.NetworkInterface.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.