Package com.google.cloud.compute.v1
Interface VpnTunnelOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
VpnTunnel
,VpnTunnel.Builder
public interface VpnTunnelOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels for this resource.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.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
getLabelFingerprint()
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.com.google.protobuf.ByteString
getLabelFingerprintBytes()
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels for this resource.Map<String,String>
getLabelsMap()
Labels for this resource.String
getLabelsOrDefault(String key, String defaultValue)
Labels for this resource.String
getLabelsOrThrow(String key)
Labels for this 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.List<String>
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.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.List<String>
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.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.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.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
hasLabelFingerprint()
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasCreationTimestamp
boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- The bytes for creationTimestamp.
-
hasDescription
boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Returns:
- The bytes for description.
-
hasDetailedStatus
boolean hasDetailedStatus()
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;
- Returns:
- Whether the detailedStatus field is set.
-
getDetailedStatus
String getDetailedStatus()
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;
- Returns:
- The detailedStatus.
-
getDetailedStatusBytes
com.google.protobuf.ByteString getDetailedStatusBytes()
[Output Only] Detailed status message for the VPN tunnel.
optional string detailed_status = 333501025;
- Returns:
- The bytes for detailedStatus.
-
hasId
boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- Whether the id field is set.
-
getId
long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- The id.
-
hasIkeVersion
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;
- Returns:
- Whether the ikeVersion field is set.
-
getIkeVersion
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;
- Returns:
- The ikeVersion.
-
hasKind
boolean hasKind()
[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;
- Returns:
- Whether the kind field is set.
-
getKind
String getKind()
[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;
- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels.
optional string kind = 3292052;
- Returns:
- The bytes for kind.
-
hasLabelFingerprint
boolean hasLabelFingerprint()
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;
- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
String getLabelFingerprint()
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;
- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
com.google.protobuf.ByteString getLabelFingerprintBytes()
A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
optional string label_fingerprint = 178124825;
- Returns:
- The bytes for labelFingerprint.
-
getLabelsCount
int getLabelsCount()
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
containsLabels
boolean containsLabels(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
map<string, string> labels = 500195327;
-
getLocalTrafficSelectorList
List<String> 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;
- Returns:
- A list containing the localTrafficSelector.
-
getLocalTrafficSelectorCount
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;
- Returns:
- The count of localTrafficSelector.
-
getLocalTrafficSelector
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The localTrafficSelector at the given index.
-
getLocalTrafficSelectorBytes
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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the localTrafficSelector at the given index.
-
hasName
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;
- Returns:
- Whether the name field is set.
-
getName
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;
- Returns:
- The name.
-
getNameBytes
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;
- Returns:
- The bytes for name.
-
hasPeerExternalGateway
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;
- Returns:
- Whether the peerExternalGateway field is set.
-
getPeerExternalGateway
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;
- Returns:
- The peerExternalGateway.
-
getPeerExternalGatewayBytes
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;
- Returns:
- The bytes for peerExternalGateway.
-
hasPeerExternalGatewayInterface
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;
- Returns:
- Whether the peerExternalGatewayInterface field is set.
-
getPeerExternalGatewayInterface
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;
- Returns:
- The peerExternalGatewayInterface.
-
hasPeerGcpGateway
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;
- Returns:
- Whether the peerGcpGateway field is set.
-
getPeerGcpGateway
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;
- Returns:
- The peerGcpGateway.
-
getPeerGcpGatewayBytes
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;
- Returns:
- The bytes for peerGcpGateway.
-
hasPeerIp
boolean hasPeerIp()
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;
- Returns:
- Whether the peerIp field is set.
-
getPeerIp
String getPeerIp()
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;
- Returns:
- The peerIp.
-
getPeerIpBytes
com.google.protobuf.ByteString getPeerIpBytes()
IP address of the peer VPN gateway. Only IPv4 is supported.
optional string peer_ip = 383249700;
- Returns:
- The bytes for peerIp.
-
hasRegion
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;
- Returns:
- Whether the region field is set.
-
getRegion
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;
- Returns:
- The region.
-
getRegionBytes
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;
- Returns:
- The bytes for region.
-
getRemoteTrafficSelectorList
List<String> 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;
- Returns:
- A list containing the remoteTrafficSelector.
-
getRemoteTrafficSelectorCount
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;
- Returns:
- The count of remoteTrafficSelector.
-
getRemoteTrafficSelector
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The remoteTrafficSelector at the given index.
-
getRemoteTrafficSelectorBytes
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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the remoteTrafficSelector at the given index.
-
hasRouter
boolean hasRouter()
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;
- Returns:
- Whether the router field is set.
-
getRouter
String getRouter()
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;
- Returns:
- The router.
-
getRouterBytes
com.google.protobuf.ByteString getRouterBytes()
URL of the router resource to be used for dynamic routing.
optional string router = 148608841;
- Returns:
- The bytes for router.
-
hasSelfLink
boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- The selfLink.
-
getSelfLinkBytes
com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- The bytes for selfLink.
-
hasSharedSecret
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;
- Returns:
- Whether the sharedSecret field is set.
-
getSharedSecret
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;
- Returns:
- The sharedSecret.
-
getSharedSecretBytes
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;
- Returns:
- The bytes for sharedSecret.
-
hasSharedSecretHash
boolean hasSharedSecretHash()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;
- Returns:
- Whether the sharedSecretHash field is set.
-
getSharedSecretHash
String getSharedSecretHash()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;
- Returns:
- The sharedSecretHash.
-
getSharedSecretHashBytes
com.google.protobuf.ByteString getSharedSecretHashBytes()
Hash of the shared secret.
optional string shared_secret_hash = 398881891;
- Returns:
- The bytes for sharedSecretHash.
-
hasStatus
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;
- Returns:
- Whether the status field is set.
-
getStatus
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;
- Returns:
- The status.
-
getStatusBytes
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;
- Returns:
- The bytes for status.
-
hasTargetVpnGateway
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;
- Returns:
- Whether the targetVpnGateway field is set.
-
getTargetVpnGateway
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;
- Returns:
- The targetVpnGateway.
-
getTargetVpnGatewayBytes
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;
- Returns:
- The bytes for targetVpnGateway.
-
hasVpnGateway
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;
- Returns:
- Whether the vpnGateway field is set.
-
getVpnGateway
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;
- Returns:
- The vpnGateway.
-
getVpnGatewayBytes
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;
- Returns:
- The bytes for vpnGateway.
-
hasVpnGatewayInterface
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;
- Returns:
- Whether the vpnGatewayInterface field is set.
-
getVpnGatewayInterface
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;
- Returns:
- The vpnGatewayInterface.
-
-