Class VpcAccess (0.28.0)

publicfinalclass VpcAccessextendsGeneratedMessageV3implementsVpcAccessOrBuilder

VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

Protobuf type google.cloud.run.v2.VpcAccess

Implements

VpcAccessOrBuilder

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

Static Fields

CONNECTOR_FIELD_NUMBER

publicstaticfinalintCONNECTOR_FIELD_NUMBER
Field Value
Type Description
int

EGRESS_FIELD_NUMBER

publicstaticfinalintEGRESS_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_INTERFACES_FIELD_NUMBER

publicstaticfinalintNETWORK_INTERFACES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticVpcAccessgetDefaultInstance()
Returns
Type Description
VpcAccess

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticVpcAccess.BuildernewBuilder()
Returns
Type Description
VpcAccess.Builder

newBuilder(VpcAccess prototype)

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

parseDelimitedFrom(InputStream input)

publicstaticVpcAccessparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VpcAccess
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccessparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticVpcAccessparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
VpcAccess
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccessparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticVpcAccessparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
VpcAccess
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccessparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticVpcAccessparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VpcAccess
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccessparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticVpcAccessparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VpcAccess
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccessparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticVpcAccessparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VpcAccess
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticVpcAccessparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcAccess
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

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

getConnector()

publicStringgetConnector()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The connector.

getConnectorBytes()

publicByteStringgetConnectorBytes()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for connector.

getDefaultInstanceForType()

publicVpcAccessgetDefaultInstanceForType()
Returns
Type Description
VpcAccess

getEgress()

publicVpcAccess.VpcEgressgetEgress()

Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Returns
Type Description
VpcAccess.VpcEgress

The egress.

getEgressValue()

publicintgetEgressValue()

Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Returns
Type Description
int

The enum numeric value on the wire for egress.

getNetworkInterfaces(int index)

publicVpcAccess.NetworkInterfacegetNetworkInterfaces(intindex)

Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterface

getNetworkInterfacesCount()

publicintgetNetworkInterfacesCount()

Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
Type Description
int

getNetworkInterfacesList()

publicList<VpcAccess.NetworkInterface>getNetworkInterfacesList()

Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
Type Description
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

publicVpcAccess.NetworkInterfaceOrBuildergetNetworkInterfacesOrBuilder(intindex)

Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

publicList<?extendsVpcAccess.NetworkInterfaceOrBuilder>getNetworkInterfacesOrBuilderList()

Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
Type Description
List<? extends com.google.cloud.run.v2.VpcAccess.NetworkInterfaceOrBuilder>

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicVpcAccess.BuildernewBuilderForType()
Returns
Type Description
VpcAccess.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicVpcAccess.BuildertoBuilder()
Returns
Type Description
VpcAccess.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.