public final class VpnTunnel extends com.google.protobuf.GeneratedMessageV3 implements VpnTunnelOrBuilder
Represents a Cloud VPN Tunnel resource. For more information about VPN, read the the Cloud VPN Overview.Protobuf type
google.cloud.compute.v1.VpnTunnel| Modifier and Type | Class and Description |
|---|---|
static class |
VpnTunnel.Builder
Represents a Cloud VPN Tunnel resource.
|
static class |
VpnTunnel.Status
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATION_TIMESTAMP_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DETAILED_STATUS_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
IKE_VERSION_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
LOCAL_TRAFFIC_SELECTOR_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PEER_EXTERNAL_GATEWAY_FIELD_NUMBER |
static int |
PEER_EXTERNAL_GATEWAY_INTERFACE_FIELD_NUMBER |
static int |
PEER_GCP_GATEWAY_FIELD_NUMBER |
static int |
PEER_IP_FIELD_NUMBER |
static int |
REGION_FIELD_NUMBER |
static int |
REMOTE_TRAFFIC_SELECTOR_FIELD_NUMBER |
static int |
ROUTER_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
SHARED_SECRET_FIELD_NUMBER |
static int |
SHARED_SECRET_HASH_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
TARGET_VPN_GATEWAY_FIELD_NUMBER |
static int |
VPN_GATEWAY_FIELD_NUMBER |
static int |
VPN_GATEWAY_INTERFACE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
static VpnTunnel |
getDefaultInstance() |
VpnTunnel |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDetailedStatus()
[Output Only] Detailed status message for the VPN tunnel.
|
com.google.protobuf.ByteString |
getDetailedStatusBytes()
[Output Only] Detailed status message for the VPN tunnel.
|
long |
getId()
[Output Only] The unique identifier for the resource.
|
int |
getIkeVersion()
IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.
|
String |
getKind()
[Output Only] Type of resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of resource.
|
String |
getLocalTrafficSelector(int index)
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
|
com.google.protobuf.ByteString |
getLocalTrafficSelectorBytes(int index)
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
|
int |
getLocalTrafficSelectorCount()
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
|
com.google.protobuf.ProtocolStringList |
getLocalTrafficSelectorList()
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
|
String |
getName()
Name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource.
|
com.google.protobuf.Parser<VpnTunnel> |
getParserForType() |
String |
getPeerExternalGateway()
URL of the peer side external VPN gateway to which this VPN tunnel is connected.
|
com.google.protobuf.ByteString |
getPeerExternalGatewayBytes()
URL of the peer side external VPN gateway to which this VPN tunnel is connected.
|
int |
getPeerExternalGatewayInterface()
The interface ID of the external VPN gateway to which this VPN tunnel is connected.
|
String |
getPeerGcpGateway()
URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.
|
com.google.protobuf.ByteString |
getPeerGcpGatewayBytes()
URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.
|
String |
getPeerIp()
IP address of the peer VPN gateway.
|
com.google.protobuf.ByteString |
getPeerIpBytes()
IP address of the peer VPN gateway.
|
String |
getRegion()
[Output Only] URL of the region where the VPN tunnel resides.
|
com.google.protobuf.ByteString |
getRegionBytes()
[Output Only] URL of the region where the VPN tunnel resides.
|
String |
getRemoteTrafficSelector(int index)
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
|
com.google.protobuf.ByteString |
getRemoteTrafficSelectorBytes(int index)
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
|
int |
getRemoteTrafficSelectorCount()
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
|
com.google.protobuf.ProtocolStringList |
getRemoteTrafficSelectorList()
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
|
String |
getRouter()
URL of the router resource to be used for dynamic routing.
|
com.google.protobuf.ByteString |
getRouterBytes()
URL of the router resource to be used for dynamic routing.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
int |
getSerializedSize() |
String |
getSharedSecret()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
|
com.google.protobuf.ByteString |
getSharedSecretBytes()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
|
String |
getSharedSecretHash()
Hash of the shared secret.
|
com.google.protobuf.ByteString |
getSharedSecretHashBytes()
Hash of the shared secret.
|
String |
getStatus()
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.
|
String |
getTargetVpnGateway()
URL of the Target VPN gateway with which this VPN tunnel is associated.
|
com.google.protobuf.ByteString |
getTargetVpnGatewayBytes()
URL of the Target VPN gateway with which this VPN tunnel is associated.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getVpnGateway()
URL of the VPN gateway with which this VPN tunnel is associated.
|
com.google.protobuf.ByteString |
getVpnGatewayBytes()
URL of the VPN gateway with which this VPN tunnel is associated.
|
int |
getVpnGatewayInterface()
The interface ID of the VPN gateway with which this VPN tunnel is associated.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasDetailedStatus()
[Output Only] Detailed status message for the VPN tunnel.
|
int |
hashCode() |
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasIkeVersion()
IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.
|
boolean |
hasKind()
[Output Only] Type of resource.
|
boolean |
hasName()
Name of the resource.
|
boolean |
hasPeerExternalGateway()
URL of the peer side external VPN gateway to which this VPN tunnel is connected.
|
boolean |
hasPeerExternalGatewayInterface()
The interface ID of the external VPN gateway to which this VPN tunnel is connected.
|
boolean |
hasPeerGcpGateway()
URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected.
|
boolean |
hasPeerIp()
IP address of the peer VPN gateway.
|
boolean |
hasRegion()
[Output Only] URL of the region where the VPN tunnel resides.
|
boolean |
hasRouter()
URL of the router resource to be used for dynamic routing.
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasSharedSecret()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
|
boolean |
hasSharedSecretHash()
Hash of the shared secret.
|
boolean |
hasStatus()
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel.
|
boolean |
hasTargetVpnGateway()
URL of the Target VPN gateway with which this VPN tunnel is associated.
|
boolean |
hasVpnGateway()
URL of the VPN gateway with which this VPN tunnel is associated.
|
boolean |
hasVpnGatewayInterface()
The interface ID of the VPN gateway with which this VPN tunnel is associated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static VpnTunnel.Builder |
newBuilder() |
static VpnTunnel.Builder |
newBuilder(VpnTunnel prototype) |
VpnTunnel.Builder |
newBuilderForType() |
protected VpnTunnel.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static VpnTunnel |
parseDelimitedFrom(InputStream input) |
static VpnTunnel |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VpnTunnel |
parseFrom(byte[] data) |
static VpnTunnel |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VpnTunnel |
parseFrom(ByteBuffer data) |
static VpnTunnel |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VpnTunnel |
parseFrom(com.google.protobuf.ByteString data) |
static VpnTunnel |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VpnTunnel |
parseFrom(com.google.protobuf.CodedInputStream input) |
static VpnTunnel |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VpnTunnel |
parseFrom(InputStream input) |
static VpnTunnel |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<VpnTunnel> |
parser() |
VpnTunnel.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int DETAILED_STATUS_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int IKE_VERSION_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int LOCAL_TRAFFIC_SELECTOR_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int PEER_EXTERNAL_GATEWAY_FIELD_NUMBER
public static final int PEER_EXTERNAL_GATEWAY_INTERFACE_FIELD_NUMBER
public static final int PEER_GCP_GATEWAY_FIELD_NUMBER
public static final int PEER_IP_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
public static final int REMOTE_TRAFFIC_SELECTOR_FIELD_NUMBER
public static final int ROUTER_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int SHARED_SECRET_FIELD_NUMBER
public static final int SHARED_SECRET_HASH_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int TARGET_VPN_GATEWAY_FIELD_NUMBER
public static final int VPN_GATEWAY_FIELD_NUMBER
public static final int VPN_GATEWAY_INTERFACE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface VpnTunnelOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface VpnTunnelOrBuilderpublic boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface VpnTunnelOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface VpnTunnelOrBuilderpublic boolean hasDetailedStatus()
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;hasDetailedStatus in interface VpnTunnelOrBuilderpublic String getDetailedStatus()
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;getDetailedStatus in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getDetailedStatusBytes()
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;getDetailedStatusBytes in interface VpnTunnelOrBuilderpublic boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface VpnTunnelOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface VpnTunnelOrBuilderpublic boolean hasIkeVersion()
IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
optional int32 ike_version = 218376220;hasIkeVersion in interface VpnTunnelOrBuilderpublic int getIkeVersion()
IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2.
optional int32 ike_version = 218376220;getIkeVersion in interface VpnTunnelOrBuilderpublic boolean hasKind()
[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;hasKind in interface VpnTunnelOrBuilderpublic String getKind()
[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;getKind in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;getKindBytes in interface VpnTunnelOrBuilderpublic com.google.protobuf.ProtocolStringList getLocalTrafficSelectorList()
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
repeated string local_traffic_selector = 317314613;getLocalTrafficSelectorList in interface VpnTunnelOrBuilderpublic int getLocalTrafficSelectorCount()
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
repeated string local_traffic_selector = 317314613;getLocalTrafficSelectorCount in interface VpnTunnelOrBuilderpublic String getLocalTrafficSelector(int index)
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
repeated string local_traffic_selector = 317314613;getLocalTrafficSelector in interface VpnTunnelOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLocalTrafficSelectorBytes(int index)
Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.
repeated string local_traffic_selector = 317314613;getLocalTrafficSelectorBytes in interface VpnTunnelOrBuilderindex - The index of the value to return.public boolean hasName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface VpnTunnelOrBuilderpublic String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface VpnTunnelOrBuilderpublic boolean hasPeerExternalGateway()
URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;hasPeerExternalGateway in interface VpnTunnelOrBuilderpublic String getPeerExternalGateway()
URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;getPeerExternalGateway in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getPeerExternalGatewayBytes()
URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway.
optional string peer_external_gateway = 384956173;getPeerExternalGatewayBytes in interface VpnTunnelOrBuilderpublic boolean hasPeerExternalGatewayInterface()
The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.
optional int32 peer_external_gateway_interface = 452768391;hasPeerExternalGatewayInterface in interface VpnTunnelOrBuilderpublic int getPeerExternalGatewayInterface()
The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type.
optional int32 peer_external_gateway_interface = 452768391;getPeerExternalGatewayInterface in interface VpnTunnelOrBuilderpublic boolean hasPeerGcpGateway()
URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway.
optional string peer_gcp_gateway = 281867452;hasPeerGcpGateway in interface VpnTunnelOrBuilderpublic String getPeerGcpGateway()
URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway.
optional string peer_gcp_gateway = 281867452;getPeerGcpGateway in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getPeerGcpGatewayBytes()
URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway.
optional string peer_gcp_gateway = 281867452;getPeerGcpGatewayBytes in interface VpnTunnelOrBuilderpublic boolean hasPeerIp()
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;hasPeerIp in interface VpnTunnelOrBuilderpublic String getPeerIp()
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;getPeerIp in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getPeerIpBytes()
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;getPeerIpBytes in interface VpnTunnelOrBuilderpublic boolean hasRegion()
[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;hasRegion in interface VpnTunnelOrBuilderpublic String getRegion()
[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;getRegion in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;getRegionBytes in interface VpnTunnelOrBuilderpublic com.google.protobuf.ProtocolStringList getRemoteTrafficSelectorList()
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
repeated string remote_traffic_selector = 358887098;getRemoteTrafficSelectorList in interface VpnTunnelOrBuilderpublic int getRemoteTrafficSelectorCount()
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
repeated string remote_traffic_selector = 358887098;getRemoteTrafficSelectorCount in interface VpnTunnelOrBuilderpublic String getRemoteTrafficSelector(int index)
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
repeated string remote_traffic_selector = 358887098;getRemoteTrafficSelector in interface VpnTunnelOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getRemoteTrafficSelectorBytes(int index)
Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.
repeated string remote_traffic_selector = 358887098;getRemoteTrafficSelectorBytes in interface VpnTunnelOrBuilderindex - The index of the value to return.public boolean hasRouter()
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;hasRouter in interface VpnTunnelOrBuilderpublic String getRouter()
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;getRouter in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getRouterBytes()
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;getRouterBytes in interface VpnTunnelOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface VpnTunnelOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface VpnTunnelOrBuilderpublic boolean hasSharedSecret()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;hasSharedSecret in interface VpnTunnelOrBuilderpublic String getSharedSecret()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;getSharedSecret in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getSharedSecretBytes()
Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
optional string shared_secret = 381932490;getSharedSecretBytes in interface VpnTunnelOrBuilderpublic boolean hasSharedSecretHash()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;hasSharedSecretHash in interface VpnTunnelOrBuilderpublic String getSharedSecretHash()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;getSharedSecretHash in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getSharedSecretHashBytes()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;getSharedSecretHashBytes in interface VpnTunnelOrBuilderpublic boolean hasStatus()
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;hasStatus in interface VpnTunnelOrBuilderpublic String getStatus()
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatus in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. - ESTABLISHED: Secure session is successfully established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: Resources are being deallocated for the VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is not ready to be used. - NO_INCOMING_PACKETS: No incoming packets from peer. - REJECTED: Tunnel configuration was rejected, can be result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatusBytes in interface VpnTunnelOrBuilderpublic boolean hasTargetVpnGateway()
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
optional string target_vpn_gateway = 532512843;hasTargetVpnGateway in interface VpnTunnelOrBuilderpublic String getTargetVpnGateway()
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
optional string target_vpn_gateway = 532512843;getTargetVpnGateway in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getTargetVpnGatewayBytes()
URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.
optional string target_vpn_gateway = 532512843;getTargetVpnGatewayBytes in interface VpnTunnelOrBuilderpublic boolean hasVpnGateway()
URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;hasVpnGateway in interface VpnTunnelOrBuilderpublic String getVpnGateway()
URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;getVpnGateway in interface VpnTunnelOrBuilderpublic com.google.protobuf.ByteString getVpnGatewayBytes()
URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created.
optional string vpn_gateway = 406684153;getVpnGatewayBytes in interface VpnTunnelOrBuilderpublic boolean hasVpnGatewayInterface()
The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.
optional int32 vpn_gateway_interface = 95979123;hasVpnGatewayInterface in interface VpnTunnelOrBuilderpublic int getVpnGatewayInterface()
The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`.
optional int32 vpn_gateway_interface = 95979123;getVpnGatewayInterface in interface VpnTunnelOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static VpnTunnel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VpnTunnel parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VpnTunnel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VpnTunnel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VpnTunnel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VpnTunnel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VpnTunnel parseFrom(InputStream input) throws IOException
IOExceptionpublic static VpnTunnel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VpnTunnel parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static VpnTunnel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VpnTunnel parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static VpnTunnel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic VpnTunnel.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static VpnTunnel.Builder newBuilder()
public static VpnTunnel.Builder newBuilder(VpnTunnel prototype)
public VpnTunnel.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected VpnTunnel.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static VpnTunnel getDefaultInstance()
public static com.google.protobuf.Parser<VpnTunnel> parser()
public com.google.protobuf.Parser<VpnTunnel> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public VpnTunnel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.