1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 public interface VpnTunnelOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.VpnTunnel) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * [Output Only] Creation timestamp in RFC3339 text format. 31 * </pre> 32 * 33 * <code>optional string creation_timestamp = 30525366;</code> 34 * 35 * @return Whether the creationTimestamp field is set. 36 */ hasCreationTimestamp()37 boolean hasCreationTimestamp(); 38 /** 39 * 40 * 41 * <pre> 42 * [Output Only] Creation timestamp in RFC3339 text format. 43 * </pre> 44 * 45 * <code>optional string creation_timestamp = 30525366;</code> 46 * 47 * @return The creationTimestamp. 48 */ getCreationTimestamp()49 java.lang.String getCreationTimestamp(); 50 /** 51 * 52 * 53 * <pre> 54 * [Output Only] Creation timestamp in RFC3339 text format. 55 * </pre> 56 * 57 * <code>optional string creation_timestamp = 30525366;</code> 58 * 59 * @return The bytes for creationTimestamp. 60 */ getCreationTimestampBytes()61 com.google.protobuf.ByteString getCreationTimestampBytes(); 62 63 /** 64 * 65 * 66 * <pre> 67 * An optional description of this resource. Provide this property when you create the resource. 68 * </pre> 69 * 70 * <code>optional string description = 422937596;</code> 71 * 72 * @return Whether the description field is set. 73 */ hasDescription()74 boolean hasDescription(); 75 /** 76 * 77 * 78 * <pre> 79 * An optional description of this resource. Provide this property when you create the resource. 80 * </pre> 81 * 82 * <code>optional string description = 422937596;</code> 83 * 84 * @return The description. 85 */ getDescription()86 java.lang.String getDescription(); 87 /** 88 * 89 * 90 * <pre> 91 * An optional description of this resource. Provide this property when you create the resource. 92 * </pre> 93 * 94 * <code>optional string description = 422937596;</code> 95 * 96 * @return The bytes for description. 97 */ getDescriptionBytes()98 com.google.protobuf.ByteString getDescriptionBytes(); 99 100 /** 101 * 102 * 103 * <pre> 104 * [Output Only] Detailed status message for the VPN tunnel. 105 * </pre> 106 * 107 * <code>optional string detailed_status = 333501025;</code> 108 * 109 * @return Whether the detailedStatus field is set. 110 */ hasDetailedStatus()111 boolean hasDetailedStatus(); 112 /** 113 * 114 * 115 * <pre> 116 * [Output Only] Detailed status message for the VPN tunnel. 117 * </pre> 118 * 119 * <code>optional string detailed_status = 333501025;</code> 120 * 121 * @return The detailedStatus. 122 */ getDetailedStatus()123 java.lang.String getDetailedStatus(); 124 /** 125 * 126 * 127 * <pre> 128 * [Output Only] Detailed status message for the VPN tunnel. 129 * </pre> 130 * 131 * <code>optional string detailed_status = 333501025;</code> 132 * 133 * @return The bytes for detailedStatus. 134 */ getDetailedStatusBytes()135 com.google.protobuf.ByteString getDetailedStatusBytes(); 136 137 /** 138 * 139 * 140 * <pre> 141 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 142 * </pre> 143 * 144 * <code>optional uint64 id = 3355;</code> 145 * 146 * @return Whether the id field is set. 147 */ hasId()148 boolean hasId(); 149 /** 150 * 151 * 152 * <pre> 153 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 154 * </pre> 155 * 156 * <code>optional uint64 id = 3355;</code> 157 * 158 * @return The id. 159 */ getId()160 long getId(); 161 162 /** 163 * 164 * 165 * <pre> 166 * 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. 167 * </pre> 168 * 169 * <code>optional int32 ike_version = 218376220;</code> 170 * 171 * @return Whether the ikeVersion field is set. 172 */ hasIkeVersion()173 boolean hasIkeVersion(); 174 /** 175 * 176 * 177 * <pre> 178 * 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. 179 * </pre> 180 * 181 * <code>optional int32 ike_version = 218376220;</code> 182 * 183 * @return The ikeVersion. 184 */ getIkeVersion()185 int getIkeVersion(); 186 187 /** 188 * 189 * 190 * <pre> 191 * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. 192 * </pre> 193 * 194 * <code>optional string kind = 3292052;</code> 195 * 196 * @return Whether the kind field is set. 197 */ hasKind()198 boolean hasKind(); 199 /** 200 * 201 * 202 * <pre> 203 * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. 204 * </pre> 205 * 206 * <code>optional string kind = 3292052;</code> 207 * 208 * @return The kind. 209 */ getKind()210 java.lang.String getKind(); 211 /** 212 * 213 * 214 * <pre> 215 * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. 216 * </pre> 217 * 218 * <code>optional string kind = 3292052;</code> 219 * 220 * @return The bytes for kind. 221 */ getKindBytes()222 com.google.protobuf.ByteString getKindBytes(); 223 224 /** 225 * 226 * 227 * <pre> 228 * 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. 229 * </pre> 230 * 231 * <code>repeated string local_traffic_selector = 317314613;</code> 232 * 233 * @return A list containing the localTrafficSelector. 234 */ getLocalTrafficSelectorList()235 java.util.List<java.lang.String> getLocalTrafficSelectorList(); 236 /** 237 * 238 * 239 * <pre> 240 * 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. 241 * </pre> 242 * 243 * <code>repeated string local_traffic_selector = 317314613;</code> 244 * 245 * @return The count of localTrafficSelector. 246 */ getLocalTrafficSelectorCount()247 int getLocalTrafficSelectorCount(); 248 /** 249 * 250 * 251 * <pre> 252 * 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. 253 * </pre> 254 * 255 * <code>repeated string local_traffic_selector = 317314613;</code> 256 * 257 * @param index The index of the element to return. 258 * @return The localTrafficSelector at the given index. 259 */ getLocalTrafficSelector(int index)260 java.lang.String getLocalTrafficSelector(int index); 261 /** 262 * 263 * 264 * <pre> 265 * 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. 266 * </pre> 267 * 268 * <code>repeated string local_traffic_selector = 317314613;</code> 269 * 270 * @param index The index of the value to return. 271 * @return The bytes of the localTrafficSelector at the given index. 272 */ getLocalTrafficSelectorBytes(int index)273 com.google.protobuf.ByteString getLocalTrafficSelectorBytes(int index); 274 275 /** 276 * 277 * 278 * <pre> 279 * 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. 280 * </pre> 281 * 282 * <code>optional string name = 3373707;</code> 283 * 284 * @return Whether the name field is set. 285 */ hasName()286 boolean hasName(); 287 /** 288 * 289 * 290 * <pre> 291 * 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. 292 * </pre> 293 * 294 * <code>optional string name = 3373707;</code> 295 * 296 * @return The name. 297 */ getName()298 java.lang.String getName(); 299 /** 300 * 301 * 302 * <pre> 303 * 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. 304 * </pre> 305 * 306 * <code>optional string name = 3373707;</code> 307 * 308 * @return The bytes for name. 309 */ getNameBytes()310 com.google.protobuf.ByteString getNameBytes(); 311 312 /** 313 * 314 * 315 * <pre> 316 * 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. 317 * </pre> 318 * 319 * <code>optional string peer_external_gateway = 384956173;</code> 320 * 321 * @return Whether the peerExternalGateway field is set. 322 */ hasPeerExternalGateway()323 boolean hasPeerExternalGateway(); 324 /** 325 * 326 * 327 * <pre> 328 * 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. 329 * </pre> 330 * 331 * <code>optional string peer_external_gateway = 384956173;</code> 332 * 333 * @return The peerExternalGateway. 334 */ getPeerExternalGateway()335 java.lang.String getPeerExternalGateway(); 336 /** 337 * 338 * 339 * <pre> 340 * 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. 341 * </pre> 342 * 343 * <code>optional string peer_external_gateway = 384956173;</code> 344 * 345 * @return The bytes for peerExternalGateway. 346 */ getPeerExternalGatewayBytes()347 com.google.protobuf.ByteString getPeerExternalGatewayBytes(); 348 349 /** 350 * 351 * 352 * <pre> 353 * 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. 354 * </pre> 355 * 356 * <code>optional int32 peer_external_gateway_interface = 452768391;</code> 357 * 358 * @return Whether the peerExternalGatewayInterface field is set. 359 */ hasPeerExternalGatewayInterface()360 boolean hasPeerExternalGatewayInterface(); 361 /** 362 * 363 * 364 * <pre> 365 * 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. 366 * </pre> 367 * 368 * <code>optional int32 peer_external_gateway_interface = 452768391;</code> 369 * 370 * @return The peerExternalGatewayInterface. 371 */ getPeerExternalGatewayInterface()372 int getPeerExternalGatewayInterface(); 373 374 /** 375 * 376 * 377 * <pre> 378 * 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. 379 * </pre> 380 * 381 * <code>optional string peer_gcp_gateway = 281867452;</code> 382 * 383 * @return Whether the peerGcpGateway field is set. 384 */ hasPeerGcpGateway()385 boolean hasPeerGcpGateway(); 386 /** 387 * 388 * 389 * <pre> 390 * 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. 391 * </pre> 392 * 393 * <code>optional string peer_gcp_gateway = 281867452;</code> 394 * 395 * @return The peerGcpGateway. 396 */ getPeerGcpGateway()397 java.lang.String getPeerGcpGateway(); 398 /** 399 * 400 * 401 * <pre> 402 * 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. 403 * </pre> 404 * 405 * <code>optional string peer_gcp_gateway = 281867452;</code> 406 * 407 * @return The bytes for peerGcpGateway. 408 */ getPeerGcpGatewayBytes()409 com.google.protobuf.ByteString getPeerGcpGatewayBytes(); 410 411 /** 412 * 413 * 414 * <pre> 415 * IP address of the peer VPN gateway. Only IPv4 is supported. 416 * </pre> 417 * 418 * <code>optional string peer_ip = 383249700;</code> 419 * 420 * @return Whether the peerIp field is set. 421 */ hasPeerIp()422 boolean hasPeerIp(); 423 /** 424 * 425 * 426 * <pre> 427 * IP address of the peer VPN gateway. Only IPv4 is supported. 428 * </pre> 429 * 430 * <code>optional string peer_ip = 383249700;</code> 431 * 432 * @return The peerIp. 433 */ getPeerIp()434 java.lang.String getPeerIp(); 435 /** 436 * 437 * 438 * <pre> 439 * IP address of the peer VPN gateway. Only IPv4 is supported. 440 * </pre> 441 * 442 * <code>optional string peer_ip = 383249700;</code> 443 * 444 * @return The bytes for peerIp. 445 */ getPeerIpBytes()446 com.google.protobuf.ByteString getPeerIpBytes(); 447 448 /** 449 * 450 * 451 * <pre> 452 * [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. 453 * </pre> 454 * 455 * <code>optional string region = 138946292;</code> 456 * 457 * @return Whether the region field is set. 458 */ hasRegion()459 boolean hasRegion(); 460 /** 461 * 462 * 463 * <pre> 464 * [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. 465 * </pre> 466 * 467 * <code>optional string region = 138946292;</code> 468 * 469 * @return The region. 470 */ getRegion()471 java.lang.String getRegion(); 472 /** 473 * 474 * 475 * <pre> 476 * [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. 477 * </pre> 478 * 479 * <code>optional string region = 138946292;</code> 480 * 481 * @return The bytes for region. 482 */ getRegionBytes()483 com.google.protobuf.ByteString getRegionBytes(); 484 485 /** 486 * 487 * 488 * <pre> 489 * 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. 490 * </pre> 491 * 492 * <code>repeated string remote_traffic_selector = 358887098;</code> 493 * 494 * @return A list containing the remoteTrafficSelector. 495 */ getRemoteTrafficSelectorList()496 java.util.List<java.lang.String> getRemoteTrafficSelectorList(); 497 /** 498 * 499 * 500 * <pre> 501 * 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. 502 * </pre> 503 * 504 * <code>repeated string remote_traffic_selector = 358887098;</code> 505 * 506 * @return The count of remoteTrafficSelector. 507 */ getRemoteTrafficSelectorCount()508 int getRemoteTrafficSelectorCount(); 509 /** 510 * 511 * 512 * <pre> 513 * 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. 514 * </pre> 515 * 516 * <code>repeated string remote_traffic_selector = 358887098;</code> 517 * 518 * @param index The index of the element to return. 519 * @return The remoteTrafficSelector at the given index. 520 */ getRemoteTrafficSelector(int index)521 java.lang.String getRemoteTrafficSelector(int index); 522 /** 523 * 524 * 525 * <pre> 526 * 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. 527 * </pre> 528 * 529 * <code>repeated string remote_traffic_selector = 358887098;</code> 530 * 531 * @param index The index of the value to return. 532 * @return The bytes of the remoteTrafficSelector at the given index. 533 */ getRemoteTrafficSelectorBytes(int index)534 com.google.protobuf.ByteString getRemoteTrafficSelectorBytes(int index); 535 536 /** 537 * 538 * 539 * <pre> 540 * URL of the router resource to be used for dynamic routing. 541 * </pre> 542 * 543 * <code>optional string router = 148608841;</code> 544 * 545 * @return Whether the router field is set. 546 */ hasRouter()547 boolean hasRouter(); 548 /** 549 * 550 * 551 * <pre> 552 * URL of the router resource to be used for dynamic routing. 553 * </pre> 554 * 555 * <code>optional string router = 148608841;</code> 556 * 557 * @return The router. 558 */ getRouter()559 java.lang.String getRouter(); 560 /** 561 * 562 * 563 * <pre> 564 * URL of the router resource to be used for dynamic routing. 565 * </pre> 566 * 567 * <code>optional string router = 148608841;</code> 568 * 569 * @return The bytes for router. 570 */ getRouterBytes()571 com.google.protobuf.ByteString getRouterBytes(); 572 573 /** 574 * 575 * 576 * <pre> 577 * [Output Only] Server-defined URL for the resource. 578 * </pre> 579 * 580 * <code>optional string self_link = 456214797;</code> 581 * 582 * @return Whether the selfLink field is set. 583 */ hasSelfLink()584 boolean hasSelfLink(); 585 /** 586 * 587 * 588 * <pre> 589 * [Output Only] Server-defined URL for the resource. 590 * </pre> 591 * 592 * <code>optional string self_link = 456214797;</code> 593 * 594 * @return The selfLink. 595 */ getSelfLink()596 java.lang.String getSelfLink(); 597 /** 598 * 599 * 600 * <pre> 601 * [Output Only] Server-defined URL for the resource. 602 * </pre> 603 * 604 * <code>optional string self_link = 456214797;</code> 605 * 606 * @return The bytes for selfLink. 607 */ getSelfLinkBytes()608 com.google.protobuf.ByteString getSelfLinkBytes(); 609 610 /** 611 * 612 * 613 * <pre> 614 * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. 615 * </pre> 616 * 617 * <code>optional string shared_secret = 381932490;</code> 618 * 619 * @return Whether the sharedSecret field is set. 620 */ hasSharedSecret()621 boolean hasSharedSecret(); 622 /** 623 * 624 * 625 * <pre> 626 * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. 627 * </pre> 628 * 629 * <code>optional string shared_secret = 381932490;</code> 630 * 631 * @return The sharedSecret. 632 */ getSharedSecret()633 java.lang.String getSharedSecret(); 634 /** 635 * 636 * 637 * <pre> 638 * Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. 639 * </pre> 640 * 641 * <code>optional string shared_secret = 381932490;</code> 642 * 643 * @return The bytes for sharedSecret. 644 */ getSharedSecretBytes()645 com.google.protobuf.ByteString getSharedSecretBytes(); 646 647 /** 648 * 649 * 650 * <pre> 651 * Hash of the shared secret. 652 * </pre> 653 * 654 * <code>optional string shared_secret_hash = 398881891;</code> 655 * 656 * @return Whether the sharedSecretHash field is set. 657 */ hasSharedSecretHash()658 boolean hasSharedSecretHash(); 659 /** 660 * 661 * 662 * <pre> 663 * Hash of the shared secret. 664 * </pre> 665 * 666 * <code>optional string shared_secret_hash = 398881891;</code> 667 * 668 * @return The sharedSecretHash. 669 */ getSharedSecretHash()670 java.lang.String getSharedSecretHash(); 671 /** 672 * 673 * 674 * <pre> 675 * Hash of the shared secret. 676 * </pre> 677 * 678 * <code>optional string shared_secret_hash = 398881891;</code> 679 * 680 * @return The bytes for sharedSecretHash. 681 */ getSharedSecretHashBytes()682 com.google.protobuf.ByteString getSharedSecretHashBytes(); 683 684 /** 685 * 686 * 687 * <pre> 688 * [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. 689 * Check the Status enum for the list of possible values. 690 * </pre> 691 * 692 * <code>optional string status = 181260274;</code> 693 * 694 * @return Whether the status field is set. 695 */ hasStatus()696 boolean hasStatus(); 697 /** 698 * 699 * 700 * <pre> 701 * [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. 702 * Check the Status enum for the list of possible values. 703 * </pre> 704 * 705 * <code>optional string status = 181260274;</code> 706 * 707 * @return The status. 708 */ getStatus()709 java.lang.String getStatus(); 710 /** 711 * 712 * 713 * <pre> 714 * [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. 715 * Check the Status enum for the list of possible values. 716 * </pre> 717 * 718 * <code>optional string status = 181260274;</code> 719 * 720 * @return The bytes for status. 721 */ getStatusBytes()722 com.google.protobuf.ByteString getStatusBytes(); 723 724 /** 725 * 726 * 727 * <pre> 728 * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. 729 * </pre> 730 * 731 * <code>optional string target_vpn_gateway = 532512843;</code> 732 * 733 * @return Whether the targetVpnGateway field is set. 734 */ hasTargetVpnGateway()735 boolean hasTargetVpnGateway(); 736 /** 737 * 738 * 739 * <pre> 740 * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. 741 * </pre> 742 * 743 * <code>optional string target_vpn_gateway = 532512843;</code> 744 * 745 * @return The targetVpnGateway. 746 */ getTargetVpnGateway()747 java.lang.String getTargetVpnGateway(); 748 /** 749 * 750 * 751 * <pre> 752 * URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. 753 * </pre> 754 * 755 * <code>optional string target_vpn_gateway = 532512843;</code> 756 * 757 * @return The bytes for targetVpnGateway. 758 */ getTargetVpnGatewayBytes()759 com.google.protobuf.ByteString getTargetVpnGatewayBytes(); 760 761 /** 762 * 763 * 764 * <pre> 765 * 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. 766 * </pre> 767 * 768 * <code>optional string vpn_gateway = 406684153;</code> 769 * 770 * @return Whether the vpnGateway field is set. 771 */ hasVpnGateway()772 boolean hasVpnGateway(); 773 /** 774 * 775 * 776 * <pre> 777 * 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. 778 * </pre> 779 * 780 * <code>optional string vpn_gateway = 406684153;</code> 781 * 782 * @return The vpnGateway. 783 */ getVpnGateway()784 java.lang.String getVpnGateway(); 785 /** 786 * 787 * 788 * <pre> 789 * 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. 790 * </pre> 791 * 792 * <code>optional string vpn_gateway = 406684153;</code> 793 * 794 * @return The bytes for vpnGateway. 795 */ getVpnGatewayBytes()796 com.google.protobuf.ByteString getVpnGatewayBytes(); 797 798 /** 799 * 800 * 801 * <pre> 802 * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`. 803 * </pre> 804 * 805 * <code>optional int32 vpn_gateway_interface = 95979123;</code> 806 * 807 * @return Whether the vpnGatewayInterface field is set. 808 */ hasVpnGatewayInterface()809 boolean hasVpnGatewayInterface(); 810 /** 811 * 812 * 813 * <pre> 814 * The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`. 815 * </pre> 816 * 817 * <code>optional int32 vpn_gateway_interface = 95979123;</code> 818 * 819 * @return The vpnGatewayInterface. 820 */ getVpnGatewayInterface()821 int getVpnGatewayInterface(); 822 } 823