Class VpnGatewayStatusTunnel (1.46.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
TypeDescription
int

PEER_GATEWAY_INTERFACE_FIELD_NUMBER

public static final int PEER_GATEWAY_INTERFACE_FIELD_NUMBER
Field Value
TypeDescription
int

TUNNEL_URL_FIELD_NUMBER

public static final int TUNNEL_URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VpnGatewayStatusTunnel getDefaultInstance()
Returns
TypeDescription
VpnGatewayStatusTunnel

getDescriptor()

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

newBuilder()

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

newBuilder(VpnGatewayStatusTunnel prototype)

public static VpnGatewayStatusTunnel.Builder newBuilder(VpnGatewayStatusTunnel prototype)
Parameter
NameDescription
prototypeVpnGatewayStatusTunnel
Returns
TypeDescription
VpnGatewayStatusTunnel.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public VpnGatewayStatusTunnel getDefaultInstanceForType()
Returns
TypeDescription
VpnGatewayStatusTunnel

getLocalGatewayInterface()

public int getLocalGatewayInterface()

The VPN gateway interface this VPN tunnel is associated with.

optional uint32 local_gateway_interface = 158764330;

Returns
TypeDescription
int

The localGatewayInterface.

getParserForType()

public Parser<VpnGatewayStatusTunnel> getParserForType()
Returns
TypeDescription
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
TypeDescription
int

The peerGatewayInterface.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTunnelUrl()

public String getTunnelUrl()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
TypeDescription
String

The tunnelUrl.

getTunnelUrlBytes()

public ByteString getTunnelUrlBytes()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

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

Whether the peerGatewayInterface field is set.

hasTunnelUrl()

public boolean hasTunnelUrl()

URL reference to the VPN tunnel.

optional string tunnel_url = 78975256;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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