Interface VpnTunnelOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
VpnTunnel, VpnTunnel.Builder

@Generated public interface VpnTunnelOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Labels for this resource.
    User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
    User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    An optional description of this resource.
    com.google.protobuf.ByteString
    An optional description of this resource.
    [Output Only] Detailed status message for the VPN tunnel.
    com.google.protobuf.ByteString
    [Output Only] Detailed status message for the VPN tunnel.
    long
    [Output Only] The unique identifier for the resource.
    int
    IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    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
    A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.
    Deprecated.
    int
    Labels for this resource.
    Labels for this resource.
    getLabelsOrDefault(String key, String defaultValue)
    Labels for this resource.
    Labels for this resource.
    Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
    com.google.protobuf.ByteString
    Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
    int
    Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
    Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway.
    Name of the resource.
    com.google.protobuf.ByteString
    Name of the resource.
    Input only.
    Input only.
    URL of the peer side external VPN gateway to which this VPN tunnel is connected.
    com.google.protobuf.ByteString
    URL of the peer side external VPN gateway to which this VPN tunnel is connected.
    int
    The interface ID of the external VPN gateway to which this VPN tunnel is connected.
    URL of the peer side HA VPN gateway to which this VPN tunnel is connected.
    com.google.protobuf.ByteString
    URL of the peer side HA VPN gateway to which this VPN tunnel is connected.
    IP address of the peer VPN gateway.
    com.google.protobuf.ByteString
    IP address of the peer VPN gateway.
    [Output Only] URL of the region where the VPN tunnel resides.
    com.google.protobuf.ByteString
    [Output Only] URL of the region where the VPN tunnel resides.
    Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
    com.google.protobuf.ByteString
    Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
    int
    Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
    Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway.
    URL of the router resource to be used for dynamic routing.
    com.google.protobuf.ByteString
    URL of the router resource to be used for dynamic routing.
    [Output Only] Server-defined URL for the resource.
    com.google.protobuf.ByteString
    [Output Only] Server-defined URL for the resource.
    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
    com.google.protobuf.ByteString
    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
    Hash of the shared secret.
    com.google.protobuf.ByteString
    Hash of the shared secret.
    [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
    [Output Only] The status of the VPN tunnel, which can be one of the following: - PROVISIONING: Resource is being allocated for the VPN tunnel
    URL of the Target VPN gateway with which this VPN tunnel is associated.
    com.google.protobuf.ByteString
    URL of the Target VPN gateway with which this VPN tunnel is associated.
    URL of the VPN gateway with which this VPN tunnel is associated.
    com.google.protobuf.ByteString
    URL of the VPN gateway with which this VPN tunnel is associated.
    int
    The interface ID of the VPN gateway with which this VPN tunnel is associated.
    boolean
    User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol.
    boolean
    Output only.
    boolean
    An optional description of this resource.
    boolean
    [Output Only] Detailed status message for the VPN tunnel.
    boolean
    [Output Only] The unique identifier for the resource.
    boolean
    IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway.
    boolean
    Output only.
    boolean
    A fingerprint for the labels being applied to this VpnTunnel, which is essentially a hash of the labels set used for optimistic locking.
    boolean
    Name of the resource.
    boolean
    Input only.
    boolean
    URL of the peer side external VPN gateway to which this VPN tunnel is connected.
    boolean
    The interface ID of the external VPN gateway to which this VPN tunnel is connected.
    boolean
    URL of the peer side HA VPN gateway to which this VPN tunnel is connected.
    boolean
    IP address of the peer VPN gateway.
    boolean
    [Output Only] URL of the region where the VPN tunnel resides.
    boolean
    URL of the router resource to be used for dynamic routing.
    boolean
    [Output Only] Server-defined URL for the resource.
    boolean
    Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway.
    boolean
    Hash of the shared secret.
    boolean
    [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
    URL of the Target VPN gateway with which this VPN tunnel is associated.
    boolean
    URL of the VPN gateway with which this VPN tunnel is associated.
    boolean
    The interface ID of the VPN gateway with which this VPN tunnel is associated.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasCipherSuite

      boolean hasCipherSuite()
       User specified list of ciphers to use for the phase 1 and phase 2 of the
       IKE protocol.
       
      optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228;
      Returns:
      Whether the cipherSuite field is set.
    • getCipherSuite

      VpnTunnelCipherSuite getCipherSuite()
       User specified list of ciphers to use for the phase 1 and phase 2 of the
       IKE protocol.
       
      optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228;
      Returns:
      The cipherSuite.
    • getCipherSuiteOrBuilder

      VpnTunnelCipherSuiteOrBuilder getCipherSuiteOrBuilder()
       User specified list of ciphers to use for the phase 1 and phase 2 of the
       IKE protocol.
       
      optional .google.cloud.compute.v1.VpnTunnelCipherSuite cipher_suite = 443788228;
    • hasCreationTimestamp

      boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       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. [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. [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. [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 error412 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 error412 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 error412 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 thesetLabels method. Each label key/value pair must comply withRFC1035.
       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 thesetLabels method. Each label key/value pair must comply withRFC1035.
       Label values may be empty.
       
      map<string, string> labels = 500195327;
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      Map<String,String> getLabelsMap()
       Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
       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 thesetLabels method. Each label key/value pair must comply withRFC1035.
       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 thesetLabels method. Each label key/value pair must comply withRFC1035.
       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 for Classic VPN tunnels. This field is output only
       for HA VPN tunnels.
       
      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 for Classic VPN tunnels. This field is output only
       for HA VPN tunnels.
       
      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 for Classic VPN tunnels. This field is output only
       for HA VPN tunnels.
       
      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 for Classic VPN tunnels. This field is output only
       for HA VPN tunnels.
       
      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 withRFC1035.
       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 withRFC1035.
       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 withRFC1035.
       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.
    • hasParams

      boolean hasParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862;
      Returns:
      Whether the params field is set.
    • getParams

      VpnTunnelParams getParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862;
      Returns:
      The params.
    • getParamsOrBuilder

      VpnTunnelParamsOrBuilder getParamsOrBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.VpnTunnelParams params = 78313862;
    • 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 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 Google Cloud VPN gateway.
       
      optional string peer_gcp_gateway = 281867452;
      Returns:
      Whether the peerGcpGateway field is set.
    • getPeerGcpGateway

      String getPeerGcpGateway()
       URL of the peer side HA 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 Google Cloud VPN gateway.
       
      optional string peer_gcp_gateway = 281867452;
      Returns:
      The peerGcpGateway.
    • getPeerGcpGatewayBytes

      com.google.protobuf.ByteString getPeerGcpGatewayBytes()
       URL of the peer side HA 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 Google Cloud 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. This field can
       be set only for Classic VPN tunnels.
       
      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. This field can
       be set only for Classic VPN tunnels.
       
      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. This field can
       be set only for Classic VPN tunnels.
       
      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 for Classic VPN tunnels. This field is output only for HA VPN
       tunnels.
       
      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 for Classic VPN tunnels. This field is output only for HA VPN
       tunnels.
       
      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 for Classic VPN tunnels. This field is output only for HA VPN
       tunnels.
       
      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 for Classic VPN tunnels. This field is output only for HA VPN
       tunnels.
       
      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.
       This field can be set only for Classic VPN tunnels.
       
      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.
       This field can be set only for Classic VPN tunnels.
       
      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.
       This field can be set only for Classic VPN tunnels.
       
      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.