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 InstanceConsumptionInfoOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceConsumptionInfo) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The number of virtual CPUs that are available to the instance. 31 * </pre> 32 * 33 * <code>optional int32 guest_cpus = 393356754;</code> 34 * 35 * @return Whether the guestCpus field is set. 36 */ hasGuestCpus()37 boolean hasGuestCpus(); 38 /** 39 * 40 * 41 * <pre> 42 * The number of virtual CPUs that are available to the instance. 43 * </pre> 44 * 45 * <code>optional int32 guest_cpus = 393356754;</code> 46 * 47 * @return The guestCpus. 48 */ getGuestCpus()49 int getGuestCpus(); 50 51 /** 52 * 53 * 54 * <pre> 55 * The amount of local SSD storage available to the instance, defined in GiB. 56 * </pre> 57 * 58 * <code>optional int32 local_ssd_gb = 329237578;</code> 59 * 60 * @return Whether the localSsdGb field is set. 61 */ hasLocalSsdGb()62 boolean hasLocalSsdGb(); 63 /** 64 * 65 * 66 * <pre> 67 * The amount of local SSD storage available to the instance, defined in GiB. 68 * </pre> 69 * 70 * <code>optional int32 local_ssd_gb = 329237578;</code> 71 * 72 * @return The localSsdGb. 73 */ getLocalSsdGb()74 int getLocalSsdGb(); 75 76 /** 77 * 78 * 79 * <pre> 80 * The amount of physical memory available to the instance, defined in MiB. 81 * </pre> 82 * 83 * <code>optional int32 memory_mb = 116001171;</code> 84 * 85 * @return Whether the memoryMb field is set. 86 */ hasMemoryMb()87 boolean hasMemoryMb(); 88 /** 89 * 90 * 91 * <pre> 92 * The amount of physical memory available to the instance, defined in MiB. 93 * </pre> 94 * 95 * <code>optional int32 memory_mb = 116001171;</code> 96 * 97 * @return The memoryMb. 98 */ getMemoryMb()99 int getMemoryMb(); 100 101 /** 102 * 103 * 104 * <pre> 105 * The minimal guaranteed number of virtual CPUs that are reserved. 106 * </pre> 107 * 108 * <code>optional int32 min_node_cpus = 317231675;</code> 109 * 110 * @return Whether the minNodeCpus field is set. 111 */ hasMinNodeCpus()112 boolean hasMinNodeCpus(); 113 /** 114 * 115 * 116 * <pre> 117 * The minimal guaranteed number of virtual CPUs that are reserved. 118 * </pre> 119 * 120 * <code>optional int32 min_node_cpus = 317231675;</code> 121 * 122 * @return The minNodeCpus. 123 */ getMinNodeCpus()124 int getMinNodeCpus(); 125 } 126