Class VpnConnection (0.54.0)

publicfinalclass VpnConnectionextendsGeneratedMessageV3implementsVpnConnectionOrBuilder

A VPN connection .

Protobuf type google.cloud.edgecontainer.v1.VpnConnection

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

BGP_ROUTING_MODE_FIELD_NUMBER

publicstaticfinalintBGP_ROUTING_MODE_FIELD_NUMBER
Field Value
Type Description
int

CLUSTER_FIELD_NUMBER

publicstaticfinalintCLUSTER_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DETAILS_FIELD_NUMBER

publicstaticfinalintDETAILS_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_HIGH_AVAILABILITY_FIELD_NUMBER

publicstaticfinalintENABLE_HIGH_AVAILABILITY_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

publicstaticfinalintLABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

NAT_GATEWAY_IP_FIELD_NUMBER

publicstaticfinalintNAT_GATEWAY_IP_FIELD_NUMBER
Field Value
Type Description
int

ROUTER_FIELD_NUMBER

publicstaticfinalintROUTER_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

VPC_FIELD_NUMBER

publicstaticfinalintVPC_FIELD_NUMBER
Field Value
Type Description
int

VPC_PROJECT_FIELD_NUMBER

publicstaticfinalintVPC_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticVpnConnectiongetDefaultInstance()
Returns
Type Description
VpnConnection

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticVpnConnection.BuildernewBuilder()
Returns
Type Description
VpnConnection.Builder

newBuilder(VpnConnection prototype)

publicstaticVpnConnection.BuildernewBuilder(VpnConnectionprototype)
Parameter
Name Description
prototype VpnConnection
Returns
Type Description
VpnConnection.Builder

parseDelimitedFrom(InputStream input)

publicstaticVpnConnectionparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VpnConnection
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticVpnConnectionparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
VpnConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticVpnConnectionparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
VpnConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticVpnConnectionparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VpnConnection
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticVpnConnectionparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VpnConnection
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticVpnConnectionparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VpnConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getBgpRoutingMode() (deprecated)

publicVpnConnection.BgpRoutingModegetBgpRoutingMode()

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=763

Dynamic routing mode of the VPC network, regional or global.

.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];

Returns
Type Description
VpnConnection.BgpRoutingMode

The bgpRoutingMode.

getBgpRoutingModeValue() (deprecated)

publicintgetBgpRoutingModeValue()

Deprecated. google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=763

Dynamic routing mode of the VPC network, regional or global.

.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for bgpRoutingMode.

getCluster()

publicStringgetCluster()

The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.

string cluster = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The cluster.

getClusterBytes()

publicByteStringgetClusterBytes()

The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.

string cluster = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for cluster.

getCreateTime()

publicTimestampgetCreateTime()

Output only. The time when the VPN connection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The time when the VPN connection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicVpnConnectiongetDefaultInstanceForType()
Returns
Type Description
VpnConnection

getDetails()

publicVpnConnection.DetailsgetDetails()

Output only. The created connection details.

.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VpnConnection.Details

The details.

getDetailsOrBuilder()

publicVpnConnection.DetailsOrBuildergetDetailsOrBuilder()

Output only. The created connection details.

.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VpnConnection.DetailsOrBuilder

getEnableHighAvailability()

publicbooleangetEnableHighAvailability()

Whether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs.

bool enable_high_availability = 9;

Returns
Type Description
boolean

The enableHighAvailability.

getLabels() (deprecated)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getName()

publicStringgetName()

Required. The resource name of VPN connection

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Required. The resource name of VPN connection

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getNatGatewayIp()

publicStringgetNatGatewayIp()

NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.

string nat_gateway_ip = 5;

Returns
Type Description
String

The natGatewayIp.

getNatGatewayIpBytes()

publicByteStringgetNatGatewayIpBytes()

NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.

string nat_gateway_ip = 5;

Returns
Type Description
ByteString

The bytes for natGatewayIp.

getParserForType()

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

getRouter()

publicStringgetRouter()

Optional. The VPN connection Cloud Router name.

string router = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The router.

getRouterBytes()

publicByteStringgetRouterBytes()

Optional. The VPN connection Cloud Router name.

string router = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for router.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

publicTimestampgetUpdateTime()

Output only. The time when the VPN connection was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

Output only. The time when the VPN connection was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVpc()

publicStringgetVpc()

The network ID of VPC to connect to.

string vpc = 8;

Returns
Type Description
String

The vpc.

getVpcBytes()

publicByteStringgetVpcBytes()

The network ID of VPC to connect to.

string vpc = 8;

Returns
Type Description
ByteString

The bytes for vpc.

getVpcProject()

publicVpnConnection.VpcProjectgetVpcProject()

Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.

.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpnConnection.VpcProject

The vpcProject.

getVpcProjectOrBuilder()

publicVpnConnection.VpcProjectOrBuildergetVpcProjectOrBuilder()

Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.

.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpnConnection.VpcProjectOrBuilder

hasCreateTime()

publicbooleanhasCreateTime()

Output only. The time when the VPN connection was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDetails()

publicbooleanhasDetails()

Output only. The created connection details.

.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the details field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

Output only. The time when the VPN connection was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasVpcProject()

publicbooleanhasVpcProject()

Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.

.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the vpcProject field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicVpnConnection.BuildernewBuilderForType()
Returns
Type Description
VpnConnection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedVpnConnection.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VpnConnection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicVpnConnection.BuildertoBuilder()
Returns
Type Description
VpnConnection.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.