Class VpnConnection (0.8.0)

public final class VpnConnection extends GeneratedMessageV3 implements VpnConnectionOrBuilder

A VPN connection .

Protobuf type google.cloud.edgecontainer.v1.VpnConnection

Static Fields

BGP_ROUTING_MODE_FIELD_NUMBER

public static final int BGP_ROUTING_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

CLUSTER_FIELD_NUMBER

public static final int CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DETAILS_FIELD_NUMBER

public static final int DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_HIGH_AVAILABILITY_FIELD_NUMBER

public static final int ENABLE_HIGH_AVAILABILITY_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NAT_GATEWAY_IP_FIELD_NUMBER

public static final int NAT_GATEWAY_IP_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

VPC_FIELD_NUMBER

public static final int VPC_FIELD_NUMBER
Field Value
TypeDescription
int

VPC_PROJECT_FIELD_NUMBER

public static final int VPC_PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VpnConnection getDefaultInstance()
Returns
TypeDescription
VpnConnection

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static VpnConnection.Builder newBuilder()
Returns
TypeDescription
VpnConnection.Builder

newBuilder(VpnConnection prototype)

public static VpnConnection.Builder newBuilder(VpnConnection prototype)
Parameter
NameDescription
prototypeVpnConnection
Returns
TypeDescription
VpnConnection.Builder

parseDelimitedFrom(InputStream input)

public static VpnConnection parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpnConnection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VpnConnection parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VpnConnection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VpnConnection parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VpnConnection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VpnConnection parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VpnConnection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VpnConnection parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpnConnection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VpnConnection parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VpnConnection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpnConnection
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VpnConnection> parser()
Returns
TypeDescription
Parser<VpnConnection>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBgpRoutingMode() (deprecated)

public VpnConnection.BgpRoutingMode getBgpRoutingMode()

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

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

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

Returns
TypeDescription
VpnConnection.BgpRoutingMode

The bgpRoutingMode.

getBgpRoutingModeValue() (deprecated)

public int getBgpRoutingModeValue()

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

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for bgpRoutingMode.

getCluster()

public String getCluster()

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
TypeDescription
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

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
TypeDescription
ByteString

The bytes for cluster.

getCreateTime()

public Timestamp getCreateTime()

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

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public VpnConnection getDefaultInstanceForType()
Returns
TypeDescription
VpnConnection

getDetails()

public VpnConnection.Details getDetails()

Output only. The created connection details.

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

Returns
TypeDescription
VpnConnection.Details

The details.

getDetailsOrBuilder()

public VpnConnection.DetailsOrBuilder getDetailsOrBuilder()

Output only. The created connection details.

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

Returns
TypeDescription
VpnConnection.DetailsOrBuilder

getEnableHighAvailability()

public boolean getEnableHighAvailability()

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
TypeDescription
boolean

The enableHighAvailability.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getName()

public String getName()

Required. The resource name of VPN connection

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of VPN connection

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

Returns
TypeDescription
ByteString

The bytes for name.

getNatGatewayIp()

public String getNatGatewayIp()

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
TypeDescription
String

The natGatewayIp.

getNatGatewayIpBytes()

public ByteString getNatGatewayIpBytes()

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
TypeDescription
ByteString

The bytes for natGatewayIp.

getParserForType()

public Parser<VpnConnection> getParserForType()
Returns
TypeDescription
Parser<VpnConnection>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

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

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

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

Returns
TypeDescription
TimestampOrBuilder

getVpc()

public String getVpc()

The network ID of VPC to connect to.

string vpc = 8;

Returns
TypeDescription
String

The vpc.

getVpcBytes()

public ByteString getVpcBytes()

The network ID of VPC to connect to.

string vpc = 8;

Returns
TypeDescription
ByteString

The bytes for vpc.

getVpcProject()

public VpnConnection.VpcProject getVpcProject()

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
TypeDescription
VpnConnection.VpcProject

The vpcProject.

getVpcProjectOrBuilder()

public VpnConnection.VpcProjectOrBuilder getVpcProjectOrBuilder()

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
TypeDescription
VpnConnection.VpcProjectOrBuilder

hasCreateTime()

public boolean hasCreateTime()

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

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDetails()

public boolean hasDetails()

Output only. The created connection details.

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

Returns
TypeDescription
boolean

Whether the details field is set.

hasUpdateTime()

public boolean hasUpdateTime()

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

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVpcProject()

public boolean hasVpcProject()

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
TypeDescription
boolean

Whether the vpcProject field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VpnConnection.Builder newBuilderForType()
Returns
TypeDescription
VpnConnection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VpnConnection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VpnConnection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VpnConnection.Builder toBuilder()
Returns
TypeDescription
VpnConnection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException