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 RouterStatusNatStatusNatRuleStatusOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. 31 * </pre> 32 * 33 * <code>repeated string active_nat_ips = 208517077;</code> 34 * 35 * @return A list containing the activeNatIps. 36 */ getActiveNatIpsList()37 java.util.List<java.lang.String> getActiveNatIpsList(); 38 /** 39 * 40 * 41 * <pre> 42 * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. 43 * </pre> 44 * 45 * <code>repeated string active_nat_ips = 208517077;</code> 46 * 47 * @return The count of activeNatIps. 48 */ getActiveNatIpsCount()49 int getActiveNatIpsCount(); 50 /** 51 * 52 * 53 * <pre> 54 * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. 55 * </pre> 56 * 57 * <code>repeated string active_nat_ips = 208517077;</code> 58 * 59 * @param index The index of the element to return. 60 * @return The activeNatIps at the given index. 61 */ getActiveNatIps(int index)62 java.lang.String getActiveNatIps(int index); 63 /** 64 * 65 * 66 * <pre> 67 * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. 68 * </pre> 69 * 70 * <code>repeated string active_nat_ips = 208517077;</code> 71 * 72 * @param index The index of the value to return. 73 * @return The bytes of the activeNatIps at the given index. 74 */ getActiveNatIpsBytes(int index)75 com.google.protobuf.ByteString getActiveNatIpsBytes(int index); 76 77 /** 78 * 79 * 80 * <pre> 81 * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. 82 * </pre> 83 * 84 * <code>repeated string drain_nat_ips = 504078535;</code> 85 * 86 * @return A list containing the drainNatIps. 87 */ getDrainNatIpsList()88 java.util.List<java.lang.String> getDrainNatIpsList(); 89 /** 90 * 91 * 92 * <pre> 93 * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. 94 * </pre> 95 * 96 * <code>repeated string drain_nat_ips = 504078535;</code> 97 * 98 * @return The count of drainNatIps. 99 */ getDrainNatIpsCount()100 int getDrainNatIpsCount(); 101 /** 102 * 103 * 104 * <pre> 105 * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. 106 * </pre> 107 * 108 * <code>repeated string drain_nat_ips = 504078535;</code> 109 * 110 * @param index The index of the element to return. 111 * @return The drainNatIps at the given index. 112 */ getDrainNatIps(int index)113 java.lang.String getDrainNatIps(int index); 114 /** 115 * 116 * 117 * <pre> 118 * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. 119 * </pre> 120 * 121 * <code>repeated string drain_nat_ips = 504078535;</code> 122 * 123 * @param index The index of the value to return. 124 * @return The bytes of the drainNatIps at the given index. 125 */ getDrainNatIpsBytes(int index)126 com.google.protobuf.ByteString getDrainNatIpsBytes(int index); 127 128 /** 129 * 130 * 131 * <pre> 132 * The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. 133 * </pre> 134 * 135 * <code>optional int32 min_extra_ips_needed = 353002756;</code> 136 * 137 * @return Whether the minExtraIpsNeeded field is set. 138 */ hasMinExtraIpsNeeded()139 boolean hasMinExtraIpsNeeded(); 140 /** 141 * 142 * 143 * <pre> 144 * The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. 145 * </pre> 146 * 147 * <code>optional int32 min_extra_ips_needed = 353002756;</code> 148 * 149 * @return The minExtraIpsNeeded. 150 */ getMinExtraIpsNeeded()151 int getMinExtraIpsNeeded(); 152 153 /** 154 * 155 * 156 * <pre> 157 * Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. 158 * </pre> 159 * 160 * <code>optional int32 num_vm_endpoints_with_nat_mappings = 512367468;</code> 161 * 162 * @return Whether the numVmEndpointsWithNatMappings field is set. 163 */ hasNumVmEndpointsWithNatMappings()164 boolean hasNumVmEndpointsWithNatMappings(); 165 /** 166 * 167 * 168 * <pre> 169 * Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. 170 * </pre> 171 * 172 * <code>optional int32 num_vm_endpoints_with_nat_mappings = 512367468;</code> 173 * 174 * @return The numVmEndpointsWithNatMappings. 175 */ getNumVmEndpointsWithNatMappings()176 int getNumVmEndpointsWithNatMappings(); 177 178 /** 179 * 180 * 181 * <pre> 182 * Rule number of the rule. 183 * </pre> 184 * 185 * <code>optional int32 rule_number = 535211500;</code> 186 * 187 * @return Whether the ruleNumber field is set. 188 */ hasRuleNumber()189 boolean hasRuleNumber(); 190 /** 191 * 192 * 193 * <pre> 194 * Rule number of the rule. 195 * </pre> 196 * 197 * <code>optional int32 rule_number = 535211500;</code> 198 * 199 * @return The ruleNumber. 200 */ getRuleNumber()201 int getRuleNumber(); 202 } 203