Class VpnGatewayStatusTunnel (1.54.0)

public final class VpnGatewayStatusTunnel extends GeneratedMessageV3 implements VpnGatewayStatusTunnelOrBuilder

Contains some information about a VPN tunnel.

Protobuf type google.cloud.compute.v1.VpnGatewayStatusTunnel

Static Fields

LOCAL_GATEWAY_INTERFACE_FIELD_NUMBER

public static final int LOCAL_GATEWAY_INTERFACE_FIELD_NUMBER
Field Value
Type Description
int

PEER_GATEWAY_INTERFACE_FIELD_NUMBER

public static final int PEER_GATEWAY_INTERFACE_FIELD_NUMBER
Field Value
Type Description
int

TUNNEL_URL_FIELD_NUMBER

public static final int TUNNEL_URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VpnGatewayStatusTunnel getDefaultInstance()
Returns
Type Description
VpnGatewayStatusTunnel

getDescriptor()

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

newBuilder()

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

newBuilder(VpnGatewayStatusTunnel prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VpnGatewayStatusTunnel getDefaultInstanceForType()
Returns
Type Description
VpnGatewayStatusTunnel

getLocalGatewayInterface()

public int getLocalGatewayInterface()

The VPN gateway interface this VPN tunnel is associated with.

optional uint32 local_gateway_interface = 158764330;

Returns
Type Description
int

The localGatewayInterface.

getParserForType()

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

getPeerGatewayInterface()

public int getPeerGatewayInterface()

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.

optional uint32 peer_gateway_interface = 214380385;

Returns
Type Description
int

The peerGatewayInterface.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTunnelUrl()

public String getTunnelUrl()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
Type Description
String

The tunnelUrl.

getTunnelUrlBytes()

public ByteString getTunnelUrlBytes()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
Type Description
ByteString

The bytes for tunnelUrl.

hasLocalGatewayInterface()

public boolean hasLocalGatewayInterface()

The VPN gateway interface this VPN tunnel is associated with.

optional uint32 local_gateway_interface = 158764330;

Returns
Type Description
boolean

Whether the localGatewayInterface field is set.

hasPeerGatewayInterface()

public boolean hasPeerGatewayInterface()

The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.

optional uint32 peer_gateway_interface = 214380385;

Returns
Type Description
boolean

Whether the peerGatewayInterface field is set.

hasTunnelUrl()

public boolean hasTunnelUrl()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
Type Description
boolean

Whether the tunnelUrl 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 VpnGatewayStatusTunnel.Builder newBuilderForType()
Returns
Type Description
VpnGatewayStatusTunnel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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