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 NodeTemplateOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.NodeTemplate) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** <code>repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;</code> */ getAcceleratorsList()27 java.util.List<com.google.cloud.compute.v1.AcceleratorConfig> getAcceleratorsList(); 28 /** <code>repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;</code> */ getAccelerators(int index)29 com.google.cloud.compute.v1.AcceleratorConfig getAccelerators(int index); 30 /** <code>repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;</code> */ getAcceleratorsCount()31 int getAcceleratorsCount(); 32 /** <code>repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;</code> */ 33 java.util.List<? extends com.google.cloud.compute.v1.AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()34 getAcceleratorsOrBuilderList(); 35 /** <code>repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;</code> */ getAcceleratorsOrBuilder(int index)36 com.google.cloud.compute.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); 37 38 /** 39 * 40 * 41 * <pre> 42 * CPU overcommit. 43 * Check the CpuOvercommitType enum for the list of possible values. 44 * </pre> 45 * 46 * <code>optional string cpu_overcommit_type = 247727959;</code> 47 * 48 * @return Whether the cpuOvercommitType field is set. 49 */ hasCpuOvercommitType()50 boolean hasCpuOvercommitType(); 51 /** 52 * 53 * 54 * <pre> 55 * CPU overcommit. 56 * Check the CpuOvercommitType enum for the list of possible values. 57 * </pre> 58 * 59 * <code>optional string cpu_overcommit_type = 247727959;</code> 60 * 61 * @return The cpuOvercommitType. 62 */ getCpuOvercommitType()63 java.lang.String getCpuOvercommitType(); 64 /** 65 * 66 * 67 * <pre> 68 * CPU overcommit. 69 * Check the CpuOvercommitType enum for the list of possible values. 70 * </pre> 71 * 72 * <code>optional string cpu_overcommit_type = 247727959;</code> 73 * 74 * @return The bytes for cpuOvercommitType. 75 */ getCpuOvercommitTypeBytes()76 com.google.protobuf.ByteString getCpuOvercommitTypeBytes(); 77 78 /** 79 * 80 * 81 * <pre> 82 * [Output Only] Creation timestamp in RFC3339 text format. 83 * </pre> 84 * 85 * <code>optional string creation_timestamp = 30525366;</code> 86 * 87 * @return Whether the creationTimestamp field is set. 88 */ hasCreationTimestamp()89 boolean hasCreationTimestamp(); 90 /** 91 * 92 * 93 * <pre> 94 * [Output Only] Creation timestamp in RFC3339 text format. 95 * </pre> 96 * 97 * <code>optional string creation_timestamp = 30525366;</code> 98 * 99 * @return The creationTimestamp. 100 */ getCreationTimestamp()101 java.lang.String getCreationTimestamp(); 102 /** 103 * 104 * 105 * <pre> 106 * [Output Only] Creation timestamp in RFC3339 text format. 107 * </pre> 108 * 109 * <code>optional string creation_timestamp = 30525366;</code> 110 * 111 * @return The bytes for creationTimestamp. 112 */ getCreationTimestampBytes()113 com.google.protobuf.ByteString getCreationTimestampBytes(); 114 115 /** 116 * 117 * 118 * <pre> 119 * An optional description of this resource. Provide this property when you create the resource. 120 * </pre> 121 * 122 * <code>optional string description = 422937596;</code> 123 * 124 * @return Whether the description field is set. 125 */ hasDescription()126 boolean hasDescription(); 127 /** 128 * 129 * 130 * <pre> 131 * An optional description of this resource. Provide this property when you create the resource. 132 * </pre> 133 * 134 * <code>optional string description = 422937596;</code> 135 * 136 * @return The description. 137 */ getDescription()138 java.lang.String getDescription(); 139 /** 140 * 141 * 142 * <pre> 143 * An optional description of this resource. Provide this property when you create the resource. 144 * </pre> 145 * 146 * <code>optional string description = 422937596;</code> 147 * 148 * @return The bytes for description. 149 */ getDescriptionBytes()150 com.google.protobuf.ByteString getDescriptionBytes(); 151 152 /** <code>repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;</code> */ getDisksList()153 java.util.List<com.google.cloud.compute.v1.LocalDisk> getDisksList(); 154 /** <code>repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;</code> */ getDisks(int index)155 com.google.cloud.compute.v1.LocalDisk getDisks(int index); 156 /** <code>repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;</code> */ getDisksCount()157 int getDisksCount(); 158 /** <code>repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;</code> */ getDisksOrBuilderList()159 java.util.List<? extends com.google.cloud.compute.v1.LocalDiskOrBuilder> getDisksOrBuilderList(); 160 /** <code>repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;</code> */ getDisksOrBuilder(int index)161 com.google.cloud.compute.v1.LocalDiskOrBuilder getDisksOrBuilder(int index); 162 163 /** 164 * 165 * 166 * <pre> 167 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 168 * </pre> 169 * 170 * <code>optional uint64 id = 3355;</code> 171 * 172 * @return Whether the id field is set. 173 */ hasId()174 boolean hasId(); 175 /** 176 * 177 * 178 * <pre> 179 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 180 * </pre> 181 * 182 * <code>optional uint64 id = 3355;</code> 183 * 184 * @return The id. 185 */ getId()186 long getId(); 187 188 /** 189 * 190 * 191 * <pre> 192 * [Output Only] The type of the resource. Always compute#nodeTemplate for node templates. 193 * </pre> 194 * 195 * <code>optional string kind = 3292052;</code> 196 * 197 * @return Whether the kind field is set. 198 */ hasKind()199 boolean hasKind(); 200 /** 201 * 202 * 203 * <pre> 204 * [Output Only] The type of the resource. Always compute#nodeTemplate for node templates. 205 * </pre> 206 * 207 * <code>optional string kind = 3292052;</code> 208 * 209 * @return The kind. 210 */ getKind()211 java.lang.String getKind(); 212 /** 213 * 214 * 215 * <pre> 216 * [Output Only] The type of the resource. Always compute#nodeTemplate for node templates. 217 * </pre> 218 * 219 * <code>optional string kind = 3292052;</code> 220 * 221 * @return The bytes for kind. 222 */ getKindBytes()223 com.google.protobuf.ByteString getKindBytes(); 224 225 /** 226 * 227 * 228 * <pre> 229 * The name of the resource, provided by the client when initially creating the resource. The resource 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. 230 * </pre> 231 * 232 * <code>optional string name = 3373707;</code> 233 * 234 * @return Whether the name field is set. 235 */ hasName()236 boolean hasName(); 237 /** 238 * 239 * 240 * <pre> 241 * The name of the resource, provided by the client when initially creating the resource. The resource 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. 242 * </pre> 243 * 244 * <code>optional string name = 3373707;</code> 245 * 246 * @return The name. 247 */ getName()248 java.lang.String getName(); 249 /** 250 * 251 * 252 * <pre> 253 * The name of the resource, provided by the client when initially creating the resource. The resource 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. 254 * </pre> 255 * 256 * <code>optional string name = 3373707;</code> 257 * 258 * @return The bytes for name. 259 */ getNameBytes()260 com.google.protobuf.ByteString getNameBytes(); 261 262 /** 263 * 264 * 265 * <pre> 266 * Labels to use for node affinity, which will be used in instance scheduling. 267 * </pre> 268 * 269 * <code>map<string, string> node_affinity_labels = 339007161;</code> 270 */ getNodeAffinityLabelsCount()271 int getNodeAffinityLabelsCount(); 272 /** 273 * 274 * 275 * <pre> 276 * Labels to use for node affinity, which will be used in instance scheduling. 277 * </pre> 278 * 279 * <code>map<string, string> node_affinity_labels = 339007161;</code> 280 */ containsNodeAffinityLabels(java.lang.String key)281 boolean containsNodeAffinityLabels(java.lang.String key); 282 /** Use {@link #getNodeAffinityLabelsMap()} instead. */ 283 @java.lang.Deprecated getNodeAffinityLabels()284 java.util.Map<java.lang.String, java.lang.String> getNodeAffinityLabels(); 285 /** 286 * 287 * 288 * <pre> 289 * Labels to use for node affinity, which will be used in instance scheduling. 290 * </pre> 291 * 292 * <code>map<string, string> node_affinity_labels = 339007161;</code> 293 */ getNodeAffinityLabelsMap()294 java.util.Map<java.lang.String, java.lang.String> getNodeAffinityLabelsMap(); 295 /** 296 * 297 * 298 * <pre> 299 * Labels to use for node affinity, which will be used in instance scheduling. 300 * </pre> 301 * 302 * <code>map<string, string> node_affinity_labels = 339007161;</code> 303 */ 304 /* nullable */ getNodeAffinityLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)305 java.lang.String getNodeAffinityLabelsOrDefault( 306 java.lang.String key, 307 /* nullable */ 308 java.lang.String defaultValue); 309 /** 310 * 311 * 312 * <pre> 313 * Labels to use for node affinity, which will be used in instance scheduling. 314 * </pre> 315 * 316 * <code>map<string, string> node_affinity_labels = 339007161;</code> 317 */ getNodeAffinityLabelsOrThrow(java.lang.String key)318 java.lang.String getNodeAffinityLabelsOrThrow(java.lang.String key); 319 320 /** 321 * 322 * 323 * <pre> 324 * The node type to use for nodes group that are created from this template. 325 * </pre> 326 * 327 * <code>optional string node_type = 465832791;</code> 328 * 329 * @return Whether the nodeType field is set. 330 */ hasNodeType()331 boolean hasNodeType(); 332 /** 333 * 334 * 335 * <pre> 336 * The node type to use for nodes group that are created from this template. 337 * </pre> 338 * 339 * <code>optional string node_type = 465832791;</code> 340 * 341 * @return The nodeType. 342 */ getNodeType()343 java.lang.String getNodeType(); 344 /** 345 * 346 * 347 * <pre> 348 * The node type to use for nodes group that are created from this template. 349 * </pre> 350 * 351 * <code>optional string node_type = 465832791;</code> 352 * 353 * @return The bytes for nodeType. 354 */ getNodeTypeBytes()355 com.google.protobuf.ByteString getNodeTypeBytes(); 356 357 /** 358 * 359 * 360 * <pre> 361 * Do not use. Instead, use the node_type property. 362 * </pre> 363 * 364 * <code> 365 * optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; 366 * </code> 367 * 368 * @return Whether the nodeTypeFlexibility field is set. 369 */ hasNodeTypeFlexibility()370 boolean hasNodeTypeFlexibility(); 371 /** 372 * 373 * 374 * <pre> 375 * Do not use. Instead, use the node_type property. 376 * </pre> 377 * 378 * <code> 379 * optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; 380 * </code> 381 * 382 * @return The nodeTypeFlexibility. 383 */ getNodeTypeFlexibility()384 com.google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility(); 385 /** 386 * 387 * 388 * <pre> 389 * Do not use. Instead, use the node_type property. 390 * </pre> 391 * 392 * <code> 393 * optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; 394 * </code> 395 */ 396 com.google.cloud.compute.v1.NodeTemplateNodeTypeFlexibilityOrBuilder getNodeTypeFlexibilityOrBuilder()397 getNodeTypeFlexibilityOrBuilder(); 398 399 /** 400 * 401 * 402 * <pre> 403 * [Output Only] The name of the region where the node template resides, such as us-central1. 404 * </pre> 405 * 406 * <code>optional string region = 138946292;</code> 407 * 408 * @return Whether the region field is set. 409 */ hasRegion()410 boolean hasRegion(); 411 /** 412 * 413 * 414 * <pre> 415 * [Output Only] The name of the region where the node template resides, such as us-central1. 416 * </pre> 417 * 418 * <code>optional string region = 138946292;</code> 419 * 420 * @return The region. 421 */ getRegion()422 java.lang.String getRegion(); 423 /** 424 * 425 * 426 * <pre> 427 * [Output Only] The name of the region where the node template resides, such as us-central1. 428 * </pre> 429 * 430 * <code>optional string region = 138946292;</code> 431 * 432 * @return The bytes for region. 433 */ getRegionBytes()434 com.google.protobuf.ByteString getRegionBytes(); 435 436 /** 437 * 438 * 439 * <pre> 440 * [Output Only] Server-defined URL for the resource. 441 * </pre> 442 * 443 * <code>optional string self_link = 456214797;</code> 444 * 445 * @return Whether the selfLink field is set. 446 */ hasSelfLink()447 boolean hasSelfLink(); 448 /** 449 * 450 * 451 * <pre> 452 * [Output Only] Server-defined URL for the resource. 453 * </pre> 454 * 455 * <code>optional string self_link = 456214797;</code> 456 * 457 * @return The selfLink. 458 */ getSelfLink()459 java.lang.String getSelfLink(); 460 /** 461 * 462 * 463 * <pre> 464 * [Output Only] Server-defined URL for the resource. 465 * </pre> 466 * 467 * <code>optional string self_link = 456214797;</code> 468 * 469 * @return The bytes for selfLink. 470 */ getSelfLinkBytes()471 com.google.protobuf.ByteString getSelfLinkBytes(); 472 473 /** 474 * 475 * 476 * <pre> 477 * Sets the binding properties for the physical server. Valid values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information. 478 * </pre> 479 * 480 * <code>optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;</code> 481 * 482 * @return Whether the serverBinding field is set. 483 */ hasServerBinding()484 boolean hasServerBinding(); 485 /** 486 * 487 * 488 * <pre> 489 * Sets the binding properties for the physical server. Valid values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information. 490 * </pre> 491 * 492 * <code>optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;</code> 493 * 494 * @return The serverBinding. 495 */ getServerBinding()496 com.google.cloud.compute.v1.ServerBinding getServerBinding(); 497 /** 498 * 499 * 500 * <pre> 501 * Sets the binding properties for the physical server. Valid values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information. 502 * </pre> 503 * 504 * <code>optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;</code> 505 */ getServerBindingOrBuilder()506 com.google.cloud.compute.v1.ServerBindingOrBuilder getServerBindingOrBuilder(); 507 508 /** 509 * 510 * 511 * <pre> 512 * [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. 513 * Check the Status enum for the list of possible values. 514 * </pre> 515 * 516 * <code>optional string status = 181260274;</code> 517 * 518 * @return Whether the status field is set. 519 */ hasStatus()520 boolean hasStatus(); 521 /** 522 * 523 * 524 * <pre> 525 * [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. 526 * Check the Status enum for the list of possible values. 527 * </pre> 528 * 529 * <code>optional string status = 181260274;</code> 530 * 531 * @return The status. 532 */ getStatus()533 java.lang.String getStatus(); 534 /** 535 * 536 * 537 * <pre> 538 * [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. 539 * Check the Status enum for the list of possible values. 540 * </pre> 541 * 542 * <code>optional string status = 181260274;</code> 543 * 544 * @return The bytes for status. 545 */ getStatusBytes()546 com.google.protobuf.ByteString getStatusBytes(); 547 548 /** 549 * 550 * 551 * <pre> 552 * [Output Only] An optional, human-readable explanation of the status. 553 * </pre> 554 * 555 * <code>optional string status_message = 297428154;</code> 556 * 557 * @return Whether the statusMessage field is set. 558 */ hasStatusMessage()559 boolean hasStatusMessage(); 560 /** 561 * 562 * 563 * <pre> 564 * [Output Only] An optional, human-readable explanation of the status. 565 * </pre> 566 * 567 * <code>optional string status_message = 297428154;</code> 568 * 569 * @return The statusMessage. 570 */ getStatusMessage()571 java.lang.String getStatusMessage(); 572 /** 573 * 574 * 575 * <pre> 576 * [Output Only] An optional, human-readable explanation of the status. 577 * </pre> 578 * 579 * <code>optional string status_message = 297428154;</code> 580 * 581 * @return The bytes for statusMessage. 582 */ getStatusMessageBytes()583 com.google.protobuf.ByteString getStatusMessageBytes(); 584 } 585