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 QuotaOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Quota) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * [Output Only] Quota limit for this metric. 31 * </pre> 32 * 33 * <code>optional double limit = 102976443;</code> 34 * 35 * @return Whether the limit field is set. 36 */ hasLimit()37 boolean hasLimit(); 38 /** 39 * 40 * 41 * <pre> 42 * [Output Only] Quota limit for this metric. 43 * </pre> 44 * 45 * <code>optional double limit = 102976443;</code> 46 * 47 * @return The limit. 48 */ getLimit()49 double getLimit(); 50 51 /** 52 * 53 * 54 * <pre> 55 * [Output Only] Name of the quota metric. 56 * Check the Metric enum for the list of possible values. 57 * </pre> 58 * 59 * <code>optional string metric = 533067184;</code> 60 * 61 * @return Whether the metric field is set. 62 */ hasMetric()63 boolean hasMetric(); 64 /** 65 * 66 * 67 * <pre> 68 * [Output Only] Name of the quota metric. 69 * Check the Metric enum for the list of possible values. 70 * </pre> 71 * 72 * <code>optional string metric = 533067184;</code> 73 * 74 * @return The metric. 75 */ getMetric()76 java.lang.String getMetric(); 77 /** 78 * 79 * 80 * <pre> 81 * [Output Only] Name of the quota metric. 82 * Check the Metric enum for the list of possible values. 83 * </pre> 84 * 85 * <code>optional string metric = 533067184;</code> 86 * 87 * @return The bytes for metric. 88 */ getMetricBytes()89 com.google.protobuf.ByteString getMetricBytes(); 90 91 /** 92 * 93 * 94 * <pre> 95 * [Output Only] Owning resource. This is the resource on which this quota is applied. 96 * </pre> 97 * 98 * <code>optional string owner = 106164915;</code> 99 * 100 * @return Whether the owner field is set. 101 */ hasOwner()102 boolean hasOwner(); 103 /** 104 * 105 * 106 * <pre> 107 * [Output Only] Owning resource. This is the resource on which this quota is applied. 108 * </pre> 109 * 110 * <code>optional string owner = 106164915;</code> 111 * 112 * @return The owner. 113 */ getOwner()114 java.lang.String getOwner(); 115 /** 116 * 117 * 118 * <pre> 119 * [Output Only] Owning resource. This is the resource on which this quota is applied. 120 * </pre> 121 * 122 * <code>optional string owner = 106164915;</code> 123 * 124 * @return The bytes for owner. 125 */ getOwnerBytes()126 com.google.protobuf.ByteString getOwnerBytes(); 127 128 /** 129 * 130 * 131 * <pre> 132 * [Output Only] Current usage of this metric. 133 * </pre> 134 * 135 * <code>optional double usage = 111574433;</code> 136 * 137 * @return Whether the usage field is set. 138 */ hasUsage()139 boolean hasUsage(); 140 /** 141 * 142 * 143 * <pre> 144 * [Output Only] Current usage of this metric. 145 * </pre> 146 * 147 * <code>optional double usage = 111574433;</code> 148 * 149 * @return The usage. 150 */ getUsage()151 double getUsage(); 152 } 153