/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/edgecontainer/v1/resources.proto

package com.google.cloud.edgecontainer.v1;

public interface VpnConnectionOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.edgecontainer.v1.VpnConnection)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Required. The resource name of VPN connection
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * Required. The resource name of VPN connection
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Output only. The time when the VPN connection was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  boolean hasCreateTime();
  /**
   *
   *
   * <pre>
   * Output only. The time when the VPN connection was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  com.google.protobuf.Timestamp getCreateTime();
  /**
   *
   *
   * <pre>
   * Output only. The time when the VPN connection was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * Output only. The time when the VPN connection was last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  boolean hasUpdateTime();
  /**
   *
   *
   * <pre>
   * Output only. The time when the VPN connection was last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  com.google.protobuf.Timestamp getUpdateTime();
  /**
   *
   *
   * <pre>
   * Output only. The time when the VPN connection was last updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * Labels associated with this resource.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4;</code>
   */
  int getLabelsCount();
  /**
   *
   *
   * <pre>
   * Labels associated with this resource.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4;</code>
   */
  boolean containsLabels(java.lang.String key);
  /** Use {@link #getLabelsMap()} instead. */
  @java.lang.Deprecated
  java.util.Map<java.lang.String, java.lang.String> getLabels();
  /**
   *
   *
   * <pre>
   * Labels associated with this resource.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4;</code>
   */
  java.util.Map<java.lang.String, java.lang.String> getLabelsMap();
  /**
   *
   *
   * <pre>
   * Labels associated with this resource.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4;</code>
   */
  /* nullable */
  java.lang.String getLabelsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue);
  /**
   *
   *
   * <pre>
   * Labels associated with this resource.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 4;</code>
   */
  java.lang.String getLabelsOrThrow(java.lang.String key);

  /**
   *
   *
   * <pre>
   * NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the
   * customer needs to configure NAT such that only one external IP maps to the
   * GMEC Anthos cluster. This is empty if NAT is not used.
   * </pre>
   *
   * <code>string nat_gateway_ip = 5;</code>
   *
   * @return The natGatewayIp.
   */
  java.lang.String getNatGatewayIp();
  /**
   *
   *
   * <pre>
   * NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the
   * customer needs to configure NAT such that only one external IP maps to the
   * GMEC Anthos cluster. This is empty if NAT is not used.
   * </pre>
   *
   * <code>string nat_gateway_ip = 5;</code>
   *
   * @return The bytes for natGatewayIp.
   */
  com.google.protobuf.ByteString getNatGatewayIpBytes();

  /**
   *
   *
   * <pre>
   * Dynamic routing mode of the VPC network, `regional` or `global`.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];
   * </code>
   *
   * @deprecated google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See
   *     google/cloud/edgecontainer/v1/resources.proto;l=361
   * @return The enum numeric value on the wire for bgpRoutingMode.
   */
  @java.lang.Deprecated
  int getBgpRoutingModeValue();
  /**
   *
   *
   * <pre>
   * Dynamic routing mode of the VPC network, `regional` or `global`.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];
   * </code>
   *
   * @deprecated google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See
   *     google/cloud/edgecontainer/v1/resources.proto;l=361
   * @return The bgpRoutingMode.
   */
  @java.lang.Deprecated
  com.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode getBgpRoutingMode();

  /**
   *
   *
   * <pre>
   * The canonical Cluster name to connect to. It is in the form of
   * projects/{project}/locations/{location}/clusters/{cluster}.
   * </pre>
   *
   * <code>string cluster = 7 [(.google.api.resource_reference) = { ... }</code>
   *
   * @return The cluster.
   */
  java.lang.String getCluster();
  /**
   *
   *
   * <pre>
   * The canonical Cluster name to connect to. It is in the form of
   * projects/{project}/locations/{location}/clusters/{cluster}.
   * </pre>
   *
   * <code>string cluster = 7 [(.google.api.resource_reference) = { ... }</code>
   *
   * @return The bytes for cluster.
   */
  com.google.protobuf.ByteString getClusterBytes();

  /**
   *
   *
   * <pre>
   * The network ID of VPC to connect to.
   * </pre>
   *
   * <code>string vpc = 8;</code>
   *
   * @return The vpc.
   */
  java.lang.String getVpc();
  /**
   *
   *
   * <pre>
   * The network ID of VPC to connect to.
   * </pre>
   *
   * <code>string vpc = 8;</code>
   *
   * @return The bytes for vpc.
   */
  com.google.protobuf.ByteString getVpcBytes();

  /**
   *
   *
   * <pre>
   * Optional. Project detail of the VPC network. Required if VPC is in a different
   * project than the cluster project.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the vpcProject field is set.
   */
  boolean hasVpcProject();
  /**
   *
   *
   * <pre>
   * Optional. Project detail of the VPC network. Required if VPC is in a different
   * project than the cluster project.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The vpcProject.
   */
  com.google.cloud.edgecontainer.v1.VpnConnection.VpcProject getVpcProject();
  /**
   *
   *
   * <pre>
   * Optional. Project detail of the VPC network. Required if VPC is in a different
   * project than the cluster project.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  com.google.cloud.edgecontainer.v1.VpnConnection.VpcProjectOrBuilder getVpcProjectOrBuilder();

  /**
   *
   *
   * <pre>
   * Whether this VPN connection has HA enabled on cluster side. If enabled,
   * when creating VPN connection we will attempt to use 2 ANG floating IPs.
   * </pre>
   *
   * <code>bool enable_high_availability = 9;</code>
   *
   * @return The enableHighAvailability.
   */
  boolean getEnableHighAvailability();

  /**
   *
   *
   * <pre>
   * Output only. The created connection details.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the details field is set.
   */
  boolean hasDetails();
  /**
   *
   *
   * <pre>
   * Output only. The created connection details.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The details.
   */
  com.google.cloud.edgecontainer.v1.VpnConnection.Details getDetails();
  /**
   *
   *
   * <pre>
   * Output only. The created connection details.
   * </pre>
   *
   * <code>
   * .google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.cloud.edgecontainer.v1.VpnConnection.DetailsOrBuilder getDetailsOrBuilder();
}
