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
Fields
PEER_EXTERNAL_GATEWAY_FIELD_NUMBER
public static final int PEER_EXTERNAL_GATEWAY_FIELD_NUMBER
Field Value
PEER_GCP_GATEWAY_FIELD_NUMBER
public static final int PEER_GCP_GATEWAY_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
TUNNELS_FIELD_NUMBER
public static final int TUNNELS_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static VpnGatewayStatusVpnConnection getDefaultInstance()
Returns
getDefaultInstanceForType()
public VpnGatewayStatusVpnConnection getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getParserForType()
public Parser<VpnGatewayStatusVpnConnection> getParserForType()
Returns
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
Overrides
getState()
public VpnGatewayStatusHighAvailabilityRequirementState getState()
HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;
Returns
getStateOrBuilder()
public VpnGatewayStatusHighAvailabilityRequirementStateOrBuilder getStateOrBuilder()
HighAvailabilityRequirementState for the VPN connection.
optional .google.cloud.compute.v1.VpnGatewayStatusHighAvailabilityRequirementState state = 109757585;
Returns
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
Returns
getTunnelsCount()
public int getTunnelsCount()
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
Returns
getTunnelsList()
public List<VpnGatewayStatusTunnel> getTunnelsList()
List of VPN tunnels that are in this VPN connection.
repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931;
Returns
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
Returns
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> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static VpnGatewayStatusVpnConnection.Builder newBuilder()
Returns
newBuilder(VpnGatewayStatusVpnConnection prototype)
public static VpnGatewayStatusVpnConnection.Builder newBuilder(VpnGatewayStatusVpnConnection prototype)
Parameter
Returns
newBuilderForType()
public VpnGatewayStatusVpnConnection.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected VpnGatewayStatusVpnConnection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static VpnGatewayStatusVpnConnection parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static VpnGatewayStatusVpnConnection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static VpnGatewayStatusVpnConnection parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VpnGatewayStatusVpnConnection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static VpnGatewayStatusVpnConnection parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VpnGatewayStatusVpnConnection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static VpnGatewayStatusVpnConnection parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static VpnGatewayStatusVpnConnection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static VpnGatewayStatusVpnConnection parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static VpnGatewayStatusVpnConnection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static VpnGatewayStatusVpnConnection parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VpnGatewayStatusVpnConnection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<VpnGatewayStatusVpnConnection> parser()
Returns
toBuilder()
public VpnGatewayStatusVpnConnection.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions