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/channel/v1/offers.proto 18 19 package com.google.cloud.channel.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Represents the type for a monetizable resource(any entity on which billing 26 * happens). For example, this could be MINUTES for Google Voice and GB for 27 * Google Drive. One SKU can map to multiple monetizable resources. 28 * </pre> 29 * 30 * Protobuf enum {@code google.cloud.channel.v1.ResourceType} 31 */ 32 public enum ResourceType implements com.google.protobuf.ProtocolMessageEnum { 33 /** 34 * 35 * 36 * <pre> 37 * Not used. 38 * </pre> 39 * 40 * <code>RESOURCE_TYPE_UNSPECIFIED = 0;</code> 41 */ 42 RESOURCE_TYPE_UNSPECIFIED(0), 43 /** 44 * 45 * 46 * <pre> 47 * Seat. 48 * </pre> 49 * 50 * <code>SEAT = 1;</code> 51 */ 52 SEAT(1), 53 /** 54 * 55 * 56 * <pre> 57 * Monthly active user. 58 * </pre> 59 * 60 * <code>MAU = 2;</code> 61 */ 62 MAU(2), 63 /** 64 * 65 * 66 * <pre> 67 * GB (used for storage SKUs). 68 * </pre> 69 * 70 * <code>GB = 3;</code> 71 */ 72 GB(3), 73 /** 74 * 75 * 76 * <pre> 77 * Active licensed users(for Voice SKUs). 78 * </pre> 79 * 80 * <code>LICENSED_USER = 4;</code> 81 */ 82 LICENSED_USER(4), 83 /** 84 * 85 * 86 * <pre> 87 * Voice usage. 88 * </pre> 89 * 90 * <code>MINUTES = 5;</code> 91 */ 92 MINUTES(5), 93 /** 94 * 95 * 96 * <pre> 97 * For IaaS SKUs like Google Cloud Platform, monetization is based on usage 98 * accrued on your billing account irrespective of the type of monetizable 99 * resource. This enum represents an aggregated resource/container for all 100 * usage SKUs on a billing account. Currently, only applicable to Google Cloud 101 * Platform. 102 * </pre> 103 * 104 * <code>IAAS_USAGE = 6;</code> 105 */ 106 IAAS_USAGE(6), 107 /** 108 * 109 * 110 * <pre> 111 * For Google Cloud Platform subscriptions like Anthos or SAP. 112 * </pre> 113 * 114 * <code>SUBSCRIPTION = 7;</code> 115 */ 116 SUBSCRIPTION(7), 117 UNRECOGNIZED(-1), 118 ; 119 120 /** 121 * 122 * 123 * <pre> 124 * Not used. 125 * </pre> 126 * 127 * <code>RESOURCE_TYPE_UNSPECIFIED = 0;</code> 128 */ 129 public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; 130 /** 131 * 132 * 133 * <pre> 134 * Seat. 135 * </pre> 136 * 137 * <code>SEAT = 1;</code> 138 */ 139 public static final int SEAT_VALUE = 1; 140 /** 141 * 142 * 143 * <pre> 144 * Monthly active user. 145 * </pre> 146 * 147 * <code>MAU = 2;</code> 148 */ 149 public static final int MAU_VALUE = 2; 150 /** 151 * 152 * 153 * <pre> 154 * GB (used for storage SKUs). 155 * </pre> 156 * 157 * <code>GB = 3;</code> 158 */ 159 public static final int GB_VALUE = 3; 160 /** 161 * 162 * 163 * <pre> 164 * Active licensed users(for Voice SKUs). 165 * </pre> 166 * 167 * <code>LICENSED_USER = 4;</code> 168 */ 169 public static final int LICENSED_USER_VALUE = 4; 170 /** 171 * 172 * 173 * <pre> 174 * Voice usage. 175 * </pre> 176 * 177 * <code>MINUTES = 5;</code> 178 */ 179 public static final int MINUTES_VALUE = 5; 180 /** 181 * 182 * 183 * <pre> 184 * For IaaS SKUs like Google Cloud Platform, monetization is based on usage 185 * accrued on your billing account irrespective of the type of monetizable 186 * resource. This enum represents an aggregated resource/container for all 187 * usage SKUs on a billing account. Currently, only applicable to Google Cloud 188 * Platform. 189 * </pre> 190 * 191 * <code>IAAS_USAGE = 6;</code> 192 */ 193 public static final int IAAS_USAGE_VALUE = 6; 194 /** 195 * 196 * 197 * <pre> 198 * For Google Cloud Platform subscriptions like Anthos or SAP. 199 * </pre> 200 * 201 * <code>SUBSCRIPTION = 7;</code> 202 */ 203 public static final int SUBSCRIPTION_VALUE = 7; 204 getNumber()205 public final int getNumber() { 206 if (this == UNRECOGNIZED) { 207 throw new java.lang.IllegalArgumentException( 208 "Can't get the number of an unknown enum value."); 209 } 210 return value; 211 } 212 213 /** 214 * @param value The numeric wire value of the corresponding enum entry. 215 * @return The enum associated with the given numeric wire value. 216 * @deprecated Use {@link #forNumber(int)} instead. 217 */ 218 @java.lang.Deprecated valueOf(int value)219 public static ResourceType valueOf(int value) { 220 return forNumber(value); 221 } 222 223 /** 224 * @param value The numeric wire value of the corresponding enum entry. 225 * @return The enum associated with the given numeric wire value. 226 */ forNumber(int value)227 public static ResourceType forNumber(int value) { 228 switch (value) { 229 case 0: 230 return RESOURCE_TYPE_UNSPECIFIED; 231 case 1: 232 return SEAT; 233 case 2: 234 return MAU; 235 case 3: 236 return GB; 237 case 4: 238 return LICENSED_USER; 239 case 5: 240 return MINUTES; 241 case 6: 242 return IAAS_USAGE; 243 case 7: 244 return SUBSCRIPTION; 245 default: 246 return null; 247 } 248 } 249 internalGetValueMap()250 public static com.google.protobuf.Internal.EnumLiteMap<ResourceType> internalGetValueMap() { 251 return internalValueMap; 252 } 253 254 private static final com.google.protobuf.Internal.EnumLiteMap<ResourceType> internalValueMap = 255 new com.google.protobuf.Internal.EnumLiteMap<ResourceType>() { 256 public ResourceType findValueByNumber(int number) { 257 return ResourceType.forNumber(number); 258 } 259 }; 260 getValueDescriptor()261 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 262 if (this == UNRECOGNIZED) { 263 throw new java.lang.IllegalStateException( 264 "Can't get the descriptor of an unrecognized enum value."); 265 } 266 return getDescriptor().getValues().get(ordinal()); 267 } 268 getDescriptorForType()269 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 270 return getDescriptor(); 271 } 272 getDescriptor()273 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 274 return com.google.cloud.channel.v1.OffersProto.getDescriptor().getEnumTypes().get(3); 275 } 276 277 private static final ResourceType[] VALUES = values(); 278 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)279 public static ResourceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 280 if (desc.getType() != getDescriptor()) { 281 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 282 } 283 if (desc.getIndex() == -1) { 284 return UNRECOGNIZED; 285 } 286 return VALUES[desc.getIndex()]; 287 } 288 289 private final int value; 290 ResourceType(int value)291 private ResourceType(int value) { 292 this.value = value; 293 } 294 295 // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.ResourceType) 296 } 297