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/tpu/v2alpha1/cloud_tpu.proto 18 19 package com.google.cloud.tpu.v2alpha1; 20 21 public interface QueuedResourceOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.QueuedResource) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Output only. Immutable. The name of the QueuedResource. 31 * </pre> 32 * 33 * <code> 34 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; 35 * </code> 36 * 37 * @return The name. 38 */ getName()39 java.lang.String getName(); 40 /** 41 * 42 * 43 * <pre> 44 * Output only. Immutable. The name of the QueuedResource. 45 * </pre> 46 * 47 * <code> 48 * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; 49 * </code> 50 * 51 * @return The bytes for name. 52 */ getNameBytes()53 com.google.protobuf.ByteString getNameBytes(); 54 55 /** 56 * 57 * 58 * <pre> 59 * Defines a TPU resource. 60 * </pre> 61 * 62 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;</code> 63 * 64 * @return Whether the tpu field is set. 65 */ hasTpu()66 boolean hasTpu(); 67 /** 68 * 69 * 70 * <pre> 71 * Defines a TPU resource. 72 * </pre> 73 * 74 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;</code> 75 * 76 * @return The tpu. 77 */ getTpu()78 com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu getTpu(); 79 /** 80 * 81 * 82 * <pre> 83 * Defines a TPU resource. 84 * </pre> 85 * 86 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.Tpu tpu = 2;</code> 87 */ getTpuOrBuilder()88 com.google.cloud.tpu.v2alpha1.QueuedResource.TpuOrBuilder getTpuOrBuilder(); 89 90 /** 91 * 92 * 93 * <pre> 94 * The BestEffort tier. 95 * </pre> 96 * 97 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;</code> 98 * 99 * @return Whether the bestEffort field is set. 100 */ hasBestEffort()101 boolean hasBestEffort(); 102 /** 103 * 104 * 105 * <pre> 106 * The BestEffort tier. 107 * </pre> 108 * 109 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;</code> 110 * 111 * @return The bestEffort. 112 */ getBestEffort()113 com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort getBestEffort(); 114 /** 115 * 116 * 117 * <pre> 118 * The BestEffort tier. 119 * </pre> 120 * 121 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort best_effort = 3;</code> 122 */ getBestEffortOrBuilder()123 com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffortOrBuilder getBestEffortOrBuilder(); 124 125 /** 126 * 127 * 128 * <pre> 129 * The Guaranteed tier 130 * </pre> 131 * 132 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;</code> 133 * 134 * @return Whether the guaranteed field is set. 135 */ hasGuaranteed()136 boolean hasGuaranteed(); 137 /** 138 * 139 * 140 * <pre> 141 * The Guaranteed tier 142 * </pre> 143 * 144 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;</code> 145 * 146 * @return The guaranteed. 147 */ getGuaranteed()148 com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed getGuaranteed(); 149 /** 150 * 151 * 152 * <pre> 153 * The Guaranteed tier 154 * </pre> 155 * 156 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed guaranteed = 4;</code> 157 */ getGuaranteedOrBuilder()158 com.google.cloud.tpu.v2alpha1.QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder(); 159 160 /** 161 * 162 * 163 * <pre> 164 * The queueing policy of the QueuedRequest. 165 * </pre> 166 * 167 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;</code> 168 * 169 * @return Whether the queueingPolicy field is set. 170 */ hasQueueingPolicy()171 boolean hasQueueingPolicy(); 172 /** 173 * 174 * 175 * <pre> 176 * The queueing policy of the QueuedRequest. 177 * </pre> 178 * 179 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;</code> 180 * 181 * @return The queueingPolicy. 182 */ getQueueingPolicy()183 com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getQueueingPolicy(); 184 /** 185 * 186 * 187 * <pre> 188 * The queueing policy of the QueuedRequest. 189 * </pre> 190 * 191 * <code>.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5;</code> 192 */ getQueueingPolicyOrBuilder()193 com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder(); 194 195 /** 196 * 197 * 198 * <pre> 199 * Output only. State of the QueuedResource request. 200 * </pre> 201 * 202 * <code> 203 * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 204 * </code> 205 * 206 * @return Whether the state field is set. 207 */ hasState()208 boolean hasState(); 209 /** 210 * 211 * 212 * <pre> 213 * Output only. State of the QueuedResource request. 214 * </pre> 215 * 216 * <code> 217 * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 218 * </code> 219 * 220 * @return The state. 221 */ getState()222 com.google.cloud.tpu.v2alpha1.QueuedResourceState getState(); 223 /** 224 * 225 * 226 * <pre> 227 * Output only. State of the QueuedResource request. 228 * </pre> 229 * 230 * <code> 231 * .google.cloud.tpu.v2alpha1.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 232 * </code> 233 */ getStateOrBuilder()234 com.google.cloud.tpu.v2alpha1.QueuedResourceStateOrBuilder getStateOrBuilder(); 235 236 /** 237 * 238 * 239 * <pre> 240 * Name of the reservation in which the resource should be provisioned. 241 * Format: projects/{project}/locations/{zone}/reservations/{reservation} 242 * </pre> 243 * 244 * <code>string reservation_name = 8;</code> 245 * 246 * @return The reservationName. 247 */ getReservationName()248 java.lang.String getReservationName(); 249 /** 250 * 251 * 252 * <pre> 253 * Name of the reservation in which the resource should be provisioned. 254 * Format: projects/{project}/locations/{zone}/reservations/{reservation} 255 * </pre> 256 * 257 * <code>string reservation_name = 8;</code> 258 * 259 * @return The bytes for reservationName. 260 */ getReservationNameBytes()261 com.google.protobuf.ByteString getReservationNameBytes(); 262 getResourceCase()263 public com.google.cloud.tpu.v2alpha1.QueuedResource.ResourceCase getResourceCase(); 264 getTierCase()265 public com.google.cloud.tpu.v2alpha1.QueuedResource.TierCase getTierCase(); 266 } 267