Class VpnGatewayStatusVpnConnection (1.20.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 a external VPN gateway or GCP 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
TypeDescription
int

PEER_GCP_GATEWAY_FIELD_NUMBER

public static final int PEER_GCP_GATEWAY_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

TUNNELS_FIELD_NUMBER

public static final int TUNNELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VpnGatewayStatusVpnConnection getDefaultInstance()
Returns
TypeDescription
VpnGatewayStatusVpnConnection

getDescriptor()

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

newBuilder()

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

newBuilder(VpnGatewayStatusVpnConnection prototype)

public static VpnGatewayStatusVpnConnection.Builder newBuilder(VpnGatewayStatusVpnConnection prototype)
Parameter
NameDescription
prototypeVpnGatewayStatusVpnConnection
Returns
TypeDescription
VpnGatewayStatusVpnConnection.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VpnGatewayStatusVpnConnection getDefaultInstanceForType()
Returns
TypeDescription
VpnGatewayStatusVpnConnection

getParserForType()

public Parser<VpnGatewayStatusVpnConnection> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for peerGcpGateway.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public VpnGatewayStatusHighAvailabilityRequirementState getState()

HighAvailabilityRequirementState for the VPN connection.

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

Returns
TypeDescription
VpnGatewayStatusHighAvailabilityRequirementState

The state.

getStateOrBuilder()

public VpnGatewayStatusHighAvailabilityRequirementStateOrBuilder getStateOrBuilder()

HighAvailabilityRequirementState for the VPN connection.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VpnGatewayStatusTunnel

getTunnelsCount()

public int getTunnelsCount()

List of VPN tunnels that are in this VPN connection.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.compute.v1.VpnGatewayStatusTunnelOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

Whether the state field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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