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 RouterNatRuleOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RouterNatRule) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The action to be enforced for traffic that matches this rule. 31 * </pre> 32 * 33 * <code>optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;</code> 34 * 35 * @return Whether the action field is set. 36 */ hasAction()37 boolean hasAction(); 38 /** 39 * 40 * 41 * <pre> 42 * The action to be enforced for traffic that matches this rule. 43 * </pre> 44 * 45 * <code>optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;</code> 46 * 47 * @return The action. 48 */ getAction()49 com.google.cloud.compute.v1.RouterNatRuleAction getAction(); 50 /** 51 * 52 * 53 * <pre> 54 * The action to be enforced for traffic that matches this rule. 55 * </pre> 56 * 57 * <code>optional .google.cloud.compute.v1.RouterNatRuleAction action = 187661878;</code> 58 */ getActionOrBuilder()59 com.google.cloud.compute.v1.RouterNatRuleActionOrBuilder getActionOrBuilder(); 60 61 /** 62 * 63 * 64 * <pre> 65 * An optional description of this rule. 66 * </pre> 67 * 68 * <code>optional string description = 422937596;</code> 69 * 70 * @return Whether the description field is set. 71 */ hasDescription()72 boolean hasDescription(); 73 /** 74 * 75 * 76 * <pre> 77 * An optional description of this rule. 78 * </pre> 79 * 80 * <code>optional string description = 422937596;</code> 81 * 82 * @return The description. 83 */ getDescription()84 java.lang.String getDescription(); 85 /** 86 * 87 * 88 * <pre> 89 * An optional description of this rule. 90 * </pre> 91 * 92 * <code>optional string description = 422937596;</code> 93 * 94 * @return The bytes for description. 95 */ getDescriptionBytes()96 com.google.protobuf.ByteString getDescriptionBytes(); 97 98 /** 99 * 100 * 101 * <pre> 102 * 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'" 103 * </pre> 104 * 105 * <code>optional string match = 103668165;</code> 106 * 107 * @return Whether the match field is set. 108 */ hasMatch()109 boolean hasMatch(); 110 /** 111 * 112 * 113 * <pre> 114 * 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'" 115 * </pre> 116 * 117 * <code>optional string match = 103668165;</code> 118 * 119 * @return The match. 120 */ getMatch()121 java.lang.String getMatch(); 122 /** 123 * 124 * 125 * <pre> 126 * 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'" 127 * </pre> 128 * 129 * <code>optional string match = 103668165;</code> 130 * 131 * @return The bytes for match. 132 */ getMatchBytes()133 com.google.protobuf.ByteString getMatchBytes(); 134 135 /** 136 * 137 * 138 * <pre> 139 * 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. 140 * </pre> 141 * 142 * <code>optional uint32 rule_number = 535211500;</code> 143 * 144 * @return Whether the ruleNumber field is set. 145 */ hasRuleNumber()146 boolean hasRuleNumber(); 147 /** 148 * 149 * 150 * <pre> 151 * 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. 152 * </pre> 153 * 154 * <code>optional uint32 rule_number = 535211500;</code> 155 * 156 * @return The ruleNumber. 157 */ getRuleNumber()158 int getRuleNumber(); 159 } 160