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 encryption state of the device. 26 * </pre> 27 * 28 * Protobuf enum {@code google.identity.accesscontextmanager.type.DeviceEncryptionStatus} 29 */ 30 public enum DeviceEncryptionStatus implements com.google.protobuf.ProtocolMessageEnum { 31 /** 32 * 33 * 34 * <pre> 35 * The encryption status of the device is not specified or not known. 36 * </pre> 37 * 38 * <code>ENCRYPTION_UNSPECIFIED = 0;</code> 39 */ 40 ENCRYPTION_UNSPECIFIED(0), 41 /** 42 * 43 * 44 * <pre> 45 * The device does not support encryption. 46 * </pre> 47 * 48 * <code>ENCRYPTION_UNSUPPORTED = 1;</code> 49 */ 50 ENCRYPTION_UNSUPPORTED(1), 51 /** 52 * 53 * 54 * <pre> 55 * The device supports encryption, but is currently unencrypted. 56 * </pre> 57 * 58 * <code>UNENCRYPTED = 2;</code> 59 */ 60 UNENCRYPTED(2), 61 /** 62 * 63 * 64 * <pre> 65 * The device is encrypted. 66 * </pre> 67 * 68 * <code>ENCRYPTED = 3;</code> 69 */ 70 ENCRYPTED(3), 71 UNRECOGNIZED(-1), 72 ; 73 74 /** 75 * 76 * 77 * <pre> 78 * The encryption status of the device is not specified or not known. 79 * </pre> 80 * 81 * <code>ENCRYPTION_UNSPECIFIED = 0;</code> 82 */ 83 public static final int ENCRYPTION_UNSPECIFIED_VALUE = 0; 84 /** 85 * 86 * 87 * <pre> 88 * The device does not support encryption. 89 * </pre> 90 * 91 * <code>ENCRYPTION_UNSUPPORTED = 1;</code> 92 */ 93 public static final int ENCRYPTION_UNSUPPORTED_VALUE = 1; 94 /** 95 * 96 * 97 * <pre> 98 * The device supports encryption, but is currently unencrypted. 99 * </pre> 100 * 101 * <code>UNENCRYPTED = 2;</code> 102 */ 103 public static final int UNENCRYPTED_VALUE = 2; 104 /** 105 * 106 * 107 * <pre> 108 * The device is encrypted. 109 * </pre> 110 * 111 * <code>ENCRYPTED = 3;</code> 112 */ 113 public static final int ENCRYPTED_VALUE = 3; 114 getNumber()115 public final int getNumber() { 116 if (this == UNRECOGNIZED) { 117 throw new java.lang.IllegalArgumentException( 118 "Can't get the number of an unknown enum value."); 119 } 120 return value; 121 } 122 123 /** 124 * @param value The numeric wire value of the corresponding enum entry. 125 * @return The enum associated with the given numeric wire value. 126 * @deprecated Use {@link #forNumber(int)} instead. 127 */ 128 @java.lang.Deprecated valueOf(int value)129 public static DeviceEncryptionStatus valueOf(int value) { 130 return forNumber(value); 131 } 132 133 /** 134 * @param value The numeric wire value of the corresponding enum entry. 135 * @return The enum associated with the given numeric wire value. 136 */ forNumber(int value)137 public static DeviceEncryptionStatus forNumber(int value) { 138 switch (value) { 139 case 0: 140 return ENCRYPTION_UNSPECIFIED; 141 case 1: 142 return ENCRYPTION_UNSUPPORTED; 143 case 2: 144 return UNENCRYPTED; 145 case 3: 146 return ENCRYPTED; 147 default: 148 return null; 149 } 150 } 151 152 public static com.google.protobuf.Internal.EnumLiteMap<DeviceEncryptionStatus> internalGetValueMap()153 internalGetValueMap() { 154 return internalValueMap; 155 } 156 157 private static final com.google.protobuf.Internal.EnumLiteMap<DeviceEncryptionStatus> 158 internalValueMap = 159 new com.google.protobuf.Internal.EnumLiteMap<DeviceEncryptionStatus>() { 160 public DeviceEncryptionStatus findValueByNumber(int number) { 161 return DeviceEncryptionStatus.forNumber(number); 162 } 163 }; 164 getValueDescriptor()165 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 166 if (this == UNRECOGNIZED) { 167 throw new java.lang.IllegalStateException( 168 "Can't get the descriptor of an unrecognized enum value."); 169 } 170 return getDescriptor().getValues().get(ordinal()); 171 } 172 getDescriptorForType()173 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 174 return getDescriptor(); 175 } 176 getDescriptor()177 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 178 return com.google.identity.accesscontextmanager.type.TypeProto.getDescriptor() 179 .getEnumTypes() 180 .get(0); 181 } 182 183 private static final DeviceEncryptionStatus[] VALUES = values(); 184 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)185 public static DeviceEncryptionStatus valueOf( 186 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 187 if (desc.getType() != getDescriptor()) { 188 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 189 } 190 if (desc.getIndex() == -1) { 191 return UNRECOGNIZED; 192 } 193 return VALUES[desc.getIndex()]; 194 } 195 196 private final int value; 197 DeviceEncryptionStatus(int value)198 private DeviceEncryptionStatus(int value) { 199 this.value = value; 200 } 201 202 // @@protoc_insertion_point(enum_scope:google.identity.accesscontextmanager.type.DeviceEncryptionStatus) 203 } 204