Class VpnGatewayStatusVpnConnection (1.63.0)

public final class VpnGatewayStatusVpnConnection extends GeneratedMessageV3 implements VpnGatewayStatusVpnConnectionOrBuilder

A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.

Protobuf type google.cloud.compute.v1.VpnGatewayStatusVpnConnection

Static Fields

PEER_EXTERNAL_GATEWAY_FIELD_NUMBER

public static final int PEER_EXTERNAL_GATEWAY_FIELD_NUMBER
Field Value
Type Description
int

PEER_GCP_GATEWAY_FIELD_NUMBER

public static final int PEER_GCP_GATEWAY_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TUNNELS_FIELD_NUMBER

public static final int TUNNELS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VpnGatewayStatusVpnConnection getDefaultInstance()
Returns
Type Description
VpnGatewayStatusVpnConnection

getDescriptor()

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

newBuilder()

public static VpnGatewayStatusVpnConnection.Builder newBuilder()
Returns
Type Description
VpnGatewayStatusVpnConnection.Builder

newBuilder(VpnGatewayStatusVpnConnection prototype)

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

parseDelimitedFrom(InputStream input)

public static VpnGatewayStatusVpnConnection parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VpnGatewayStatusVpnConnection
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static VpnGatewayStatusVpnConnection parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VpnGatewayStatusVpnConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static VpnGatewayStatusVpnConnection parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VpnGatewayStatusVpnConnection
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static VpnGatewayStatusVpnConnection parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VpnGatewayStatusVpnConnection
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static VpnGatewayStatusVpnConnection parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VpnGatewayStatusVpnConnection
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<VpnGatewayStatusVpnConnection> parser()
Returns
Type Description
Parser<VpnGatewayStatusVpnConnection>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VpnGatewayStatusVpnConnection getDefaultInstanceForType()
Returns
Type Description
VpnGatewayStatusVpnConnection

getParserForType()

public Parser<VpnGatewayStatusVpnConnection> getParserForType()
Returns
Type Description
Parser<VpnGatewayStatusVpnConnection>
Overrides

getPeerExternalGateway()

public String getPeerExternalGateway()

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Returns
Type Description
String

The peerExternalGateway.

getPeerExternalGatewayBytes()

public ByteString getPeerExternalGatewayBytes()

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Returns
Type Description
ByteString

The bytes for peerExternalGateway.

getPeerGcpGateway()

public String getPeerGcpGateway()

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Returns
Type Description
String

The peerGcpGateway.

getPeerGcpGatewayBytes()

public ByteString getPeerGcpGatewayBytes()

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Returns
Type Description
ByteString

The bytes for peerGcpGateway.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public VpnGatewayStatusHighAvailabilityRequirementState getState()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
Type Description
VpnGatewayStatusHighAvailabilityRequirementState

The state.

getStateOrBuilder()

public VpnGatewayStatusHighAvailabilityRequirementStateOrBuilder getStateOrBuilder()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
Type Description
VpnGatewayStatusHighAvailabilityRequirementStateOrBuilder

getTunnels(int index)

public VpnGatewayStatusTunnel getTunnels(int index)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
Name Description
index int
Returns
Type Description
VpnGatewayStatusTunnel

getTunnelsCount()

public int getTunnelsCount()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
Type Description
int

getTunnelsList()

public List<VpnGatewayStatusTunnel> getTunnelsList()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
Type Description
List<VpnGatewayStatusTunnel>

getTunnelsOrBuilder(int index)

public VpnGatewayStatusTunnelOrBuilder getTunnelsOrBuilder(int index)

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Parameter
Name Description
index int
Returns
Type Description
VpnGatewayStatusTunnelOrBuilder

getTunnelsOrBuilderList()

public List<? extends VpnGatewayStatusTunnelOrBuilder> getTunnelsOrBuilderList()

List of VPN tunnels that are in this VPN connection.

repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.VpnGatewayStatusTunnelOrBuilder>

hasPeerExternalGateway()

public boolean hasPeerExternalGateway()

URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_external_gateway = 384956173;

Returns
Type Description
boolean

Whether the peerExternalGateway field is set.

hasPeerGcpGateway()

public boolean hasPeerGcpGateway()

URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.

optional string peer_gcp_gateway = 281867452;

Returns
Type Description
boolean

Whether the peerGcpGateway field is set.

hasState()

public boolean hasState()

HighAvailabilityRequirementState for the VPN connection.

optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;

Returns
Type Description
boolean

Whether the state field is set.

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 VpnGatewayStatusVpnConnection.Builder newBuilderForType()
Returns
Type Description
VpnGatewayStatusVpnConnection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public VpnGatewayStatusVpnConnection.Builder toBuilder()
Returns
Type Description
VpnGatewayStatusVpnConnection.Builder

writeTo(CodedOutputStream output)

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