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/identity/accesscontextmanager/type/device_resources.proto 18 19 package com.google.identity.accesscontextmanager.type; 20 21 /** 22 * 23 * 24 * <pre> 25 * The degree to which the device is managed by the Cloud organization. 26 * </pre> 27 * 28 * Protobuf enum {@code google.identity.accesscontextmanager.type.DeviceManagementLevel} 29 */ 30 public enum DeviceManagementLevel implements com.google.protobuf.ProtocolMessageEnum { 31 /** 32 * 33 * 34 * <pre> 35 * The device's management level is not specified or not known. 36 * </pre> 37 * 38 * <code>MANAGEMENT_UNSPECIFIED = 0;</code> 39 */ 40 MANAGEMENT_UNSPECIFIED(0), 41 /** 42 * 43 * 44 * <pre> 45 * The device is not managed. 46 * </pre> 47 * 48 * <code>NONE = 1;</code> 49 */ 50 NONE(1), 51 /** 52 * 53 * 54 * <pre> 55 * Basic management is enabled, which is generally limited to monitoring and 56 * wiping the corporate account. 57 * </pre> 58 * 59 * <code>BASIC = 2;</code> 60 */ 61 BASIC(2), 62 /** 63 * 64 * 65 * <pre> 66 * Complete device management. This includes more thorough monitoring and the 67 * ability to directly manage the device (such as remote wiping). This can be 68 * enabled through the Android Enterprise Platform. 69 * </pre> 70 * 71 * <code>COMPLETE = 3;</code> 72 */ 73 COMPLETE(3), 74 UNRECOGNIZED(-1), 75 ; 76 77 /** 78 * 79 * 80 * <pre> 81 * The device's management level is not specified or not known. 82 * </pre> 83 * 84 * <code>MANAGEMENT_UNSPECIFIED = 0;</code> 85 */ 86 public static final int MANAGEMENT_UNSPECIFIED_VALUE = 0; 87 /** 88 * 89 * 90 * <pre> 91 * The device is not managed. 92 * </pre> 93 * 94 * <code>NONE = 1;</code> 95 */ 96 public static final int NONE_VALUE = 1; 97 /** 98 * 99 * 100 * <pre> 101 * Basic management is enabled, which is generally limited to monitoring and 102 * wiping the corporate account. 103 * </pre> 104 * 105 * <code>BASIC = 2;</code> 106 */ 107 public static final int BASIC_VALUE = 2; 108 /** 109 * 110 * 111 * <pre> 112 * Complete device management. This includes more thorough monitoring and the 113 * ability to directly manage the device (such as remote wiping). This can be 114 * enabled through the Android Enterprise Platform. 115 * </pre> 116 * 117 * <code>COMPLETE = 3;</code> 118 */ 119 public static final int COMPLETE_VALUE = 3; 120 getNumber()121 public final int getNumber() { 122 if (this == UNRECOGNIZED) { 123 throw new java.lang.IllegalArgumentException( 124 "Can't get the number of an unknown enum value."); 125 } 126 return value; 127 } 128 129 /** 130 * @param value The numeric wire value of the corresponding enum entry. 131 * @return The enum associated with the given numeric wire value. 132 * @deprecated Use {@link #forNumber(int)} instead. 133 */ 134 @java.lang.Deprecated valueOf(int value)135 public static DeviceManagementLevel valueOf(int value) { 136 return forNumber(value); 137 } 138 139 /** 140 * @param value The numeric wire value of the corresponding enum entry. 141 * @return The enum associated with the given numeric wire value. 142 */ forNumber(int value)143 public static DeviceManagementLevel forNumber(int value) { 144 switch (value) { 145 case 0: 146 return MANAGEMENT_UNSPECIFIED; 147 case 1: 148 return NONE; 149 case 2: 150 return BASIC; 151 case 3: 152 return COMPLETE; 153 default: 154 return null; 155 } 156 } 157 158 public static com.google.protobuf.Internal.EnumLiteMap<DeviceManagementLevel> internalGetValueMap()159 internalGetValueMap() { 160 return internalValueMap; 161 } 162 163 private static final com.google.protobuf.Internal.EnumLiteMap<DeviceManagementLevel> 164 internalValueMap = 165 new com.google.protobuf.Internal.EnumLiteMap<DeviceManagementLevel>() { 166 public DeviceManagementLevel findValueByNumber(int number) { 167 return DeviceManagementLevel.forNumber(number); 168 } 169 }; 170 getValueDescriptor()171 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 172 if (this == UNRECOGNIZED) { 173 throw new java.lang.IllegalStateException( 174 "Can't get the descriptor of an unrecognized enum value."); 175 } 176 return getDescriptor().getValues().get(ordinal()); 177 } 178 getDescriptorForType()179 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 180 return getDescriptor(); 181 } 182 getDescriptor()183 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 184 return com.google.identity.accesscontextmanager.type.TypeProto.getDescriptor() 185 .getEnumTypes() 186 .get(2); 187 } 188 189 private static final DeviceManagementLevel[] VALUES = values(); 190 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)191 public static DeviceManagementLevel valueOf( 192 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 193 if (desc.getType() != getDescriptor()) { 194 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 195 } 196 if (desc.getIndex() == -1) { 197 return UNRECOGNIZED; 198 } 199 return VALUES[desc.getIndex()]; 200 } 201 202 private final int value; 203 DeviceManagementLevel(int value)204 private DeviceManagementLevel(int value) { 205 this.value = value; 206 } 207 208 // @@protoc_insertion_point(enum_scope:google.identity.accesscontextmanager.type.DeviceManagementLevel) 209 } 210