/*
 * 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/compute/v1/compute.proto

package com.google.cloud.compute.v1;

public interface RouterNatRuleOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RouterNatRule)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * The action to be enforced for traffic that matches this rule.
   * </pre>
   *
   * <code>optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;</code>
   *
   * @return Whether the action field is set.
   */
  boolean hasAction();
  /**
   *
   *
   * <pre>
   * The action to be enforced for traffic that matches this rule.
   * </pre>
   *
   * <code>optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;</code>
   *
   * @return The action.
   */
  com.google.cloud.compute.v1.RouterNatRuleAction getAction();
  /**
   *
   *
   * <pre>
   * The action to be enforced for traffic that matches this rule.
   * </pre>
   *
   * <code>optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;</code>
   */
  com.google.cloud.compute.v1.RouterNatRuleActionOrBuilder getActionOrBuilder();

  /**
   *
   *
   * <pre>
   * An optional description of this rule.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return Whether the description field is set.
   */
  boolean hasDescription();
  /**
   *
   *
   * <pre>
   * An optional description of this rule.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return The description.
   */
  java.lang.String getDescription();
  /**
   *
   *
   * <pre>
   * An optional description of this rule.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return The bytes for description.
   */
  com.google.protobuf.ByteString getDescriptionBytes();

  /**
   *
   *
   * <pre>
   * CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'"
   * </pre>
   *
   * <code>optional string match = 103668165;</code>
   *
   * @return Whether the match field is set.
   */
  boolean hasMatch();
  /**
   *
   *
   * <pre>
   * CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'"
   * </pre>
   *
   * <code>optional string match = 103668165;</code>
   *
   * @return The match.
   */
  java.lang.String getMatch();
  /**
   *
   *
   * <pre>
   * CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'"
   * </pre>
   *
   * <code>optional string match = 103668165;</code>
   *
   * @return The bytes for match.
   */
  com.google.protobuf.ByteString getMatchBytes();

  /**
   *
   *
   * <pre>
   * An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
   * </pre>
   *
   * <code>optional uint32 rule_number = 535211500;</code>
   *
   * @return Whether the ruleNumber field is set.
   */
  boolean hasRuleNumber();
  /**
   *
   *
   * <pre>
   * An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
   * </pre>
   *
   * <code>optional uint32 rule_number = 535211500;</code>
   *
   * @return The ruleNumber.
   */
  int getRuleNumber();
}
