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 TargetInstanceOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.TargetInstance) 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] The unique identifier for the resource. This identifier is defined by the server. 105 * </pre> 106 * 107 * <code>optional uint64 id = 3355;</code> 108 * 109 * @return Whether the id field is set. 110 */ hasId()111 boolean hasId(); 112 /** 113 * 114 * 115 * <pre> 116 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 117 * </pre> 118 * 119 * <code>optional uint64 id = 3355;</code> 120 * 121 * @return The id. 122 */ getId()123 long getId(); 124 125 /** 126 * 127 * 128 * <pre> 129 * A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance 130 * </pre> 131 * 132 * <code>optional string instance = 18257045;</code> 133 * 134 * @return Whether the instance field is set. 135 */ hasInstance()136 boolean hasInstance(); 137 /** 138 * 139 * 140 * <pre> 141 * A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance 142 * </pre> 143 * 144 * <code>optional string instance = 18257045;</code> 145 * 146 * @return The instance. 147 */ getInstance()148 java.lang.String getInstance(); 149 /** 150 * 151 * 152 * <pre> 153 * A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance 154 * </pre> 155 * 156 * <code>optional string instance = 18257045;</code> 157 * 158 * @return The bytes for instance. 159 */ getInstanceBytes()160 com.google.protobuf.ByteString getInstanceBytes(); 161 162 /** 163 * 164 * 165 * <pre> 166 * [Output Only] The type of the resource. Always compute#targetInstance for target instances. 167 * </pre> 168 * 169 * <code>optional string kind = 3292052;</code> 170 * 171 * @return Whether the kind field is set. 172 */ hasKind()173 boolean hasKind(); 174 /** 175 * 176 * 177 * <pre> 178 * [Output Only] The type of the resource. Always compute#targetInstance for target instances. 179 * </pre> 180 * 181 * <code>optional string kind = 3292052;</code> 182 * 183 * @return The kind. 184 */ getKind()185 java.lang.String getKind(); 186 /** 187 * 188 * 189 * <pre> 190 * [Output Only] The type of the resource. Always compute#targetInstance for target instances. 191 * </pre> 192 * 193 * <code>optional string kind = 3292052;</code> 194 * 195 * @return The bytes for kind. 196 */ getKindBytes()197 com.google.protobuf.ByteString getKindBytes(); 198 199 /** 200 * 201 * 202 * <pre> 203 * 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. 204 * </pre> 205 * 206 * <code>optional string name = 3373707;</code> 207 * 208 * @return Whether the name field is set. 209 */ hasName()210 boolean hasName(); 211 /** 212 * 213 * 214 * <pre> 215 * 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. 216 * </pre> 217 * 218 * <code>optional string name = 3373707;</code> 219 * 220 * @return The name. 221 */ getName()222 java.lang.String getName(); 223 /** 224 * 225 * 226 * <pre> 227 * 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. 228 * </pre> 229 * 230 * <code>optional string name = 3373707;</code> 231 * 232 * @return The bytes for name. 233 */ getNameBytes()234 com.google.protobuf.ByteString getNameBytes(); 235 236 /** 237 * 238 * 239 * <pre> 240 * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. 241 * Check the NatPolicy enum for the list of possible values. 242 * </pre> 243 * 244 * <code>optional string nat_policy = 509780496;</code> 245 * 246 * @return Whether the natPolicy field is set. 247 */ hasNatPolicy()248 boolean hasNatPolicy(); 249 /** 250 * 251 * 252 * <pre> 253 * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. 254 * Check the NatPolicy enum for the list of possible values. 255 * </pre> 256 * 257 * <code>optional string nat_policy = 509780496;</code> 258 * 259 * @return The natPolicy. 260 */ getNatPolicy()261 java.lang.String getNatPolicy(); 262 /** 263 * 264 * 265 * <pre> 266 * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. 267 * Check the NatPolicy enum for the list of possible values. 268 * </pre> 269 * 270 * <code>optional string nat_policy = 509780496;</code> 271 * 272 * @return The bytes for natPolicy. 273 */ getNatPolicyBytes()274 com.google.protobuf.ByteString getNatPolicyBytes(); 275 276 /** 277 * 278 * 279 * <pre> 280 * The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. 281 * </pre> 282 * 283 * <code>optional string network = 232872494;</code> 284 * 285 * @return Whether the network field is set. 286 */ hasNetwork()287 boolean hasNetwork(); 288 /** 289 * 290 * 291 * <pre> 292 * The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. 293 * </pre> 294 * 295 * <code>optional string network = 232872494;</code> 296 * 297 * @return The network. 298 */ getNetwork()299 java.lang.String getNetwork(); 300 /** 301 * 302 * 303 * <pre> 304 * The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. 305 * </pre> 306 * 307 * <code>optional string network = 232872494;</code> 308 * 309 * @return The bytes for network. 310 */ getNetworkBytes()311 com.google.protobuf.ByteString getNetworkBytes(); 312 313 /** 314 * 315 * 316 * <pre> 317 * [Output Only] Server-defined URL for the resource. 318 * </pre> 319 * 320 * <code>optional string self_link = 456214797;</code> 321 * 322 * @return Whether the selfLink field is set. 323 */ hasSelfLink()324 boolean hasSelfLink(); 325 /** 326 * 327 * 328 * <pre> 329 * [Output Only] Server-defined URL for the resource. 330 * </pre> 331 * 332 * <code>optional string self_link = 456214797;</code> 333 * 334 * @return The selfLink. 335 */ getSelfLink()336 java.lang.String getSelfLink(); 337 /** 338 * 339 * 340 * <pre> 341 * [Output Only] Server-defined URL for the resource. 342 * </pre> 343 * 344 * <code>optional string self_link = 456214797;</code> 345 * 346 * @return The bytes for selfLink. 347 */ getSelfLinkBytes()348 com.google.protobuf.ByteString getSelfLinkBytes(); 349 350 /** 351 * 352 * 353 * <pre> 354 * [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 355 * </pre> 356 * 357 * <code>optional string zone = 3744684;</code> 358 * 359 * @return Whether the zone field is set. 360 */ hasZone()361 boolean hasZone(); 362 /** 363 * 364 * 365 * <pre> 366 * [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 367 * </pre> 368 * 369 * <code>optional string zone = 3744684;</code> 370 * 371 * @return The zone. 372 */ getZone()373 java.lang.String getZone(); 374 /** 375 * 376 * 377 * <pre> 378 * [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 379 * </pre> 380 * 381 * <code>optional string zone = 3744684;</code> 382 * 383 * @return The bytes for zone. 384 */ getZoneBytes()385 com.google.protobuf.ByteString getZoneBytes(); 386 } 387