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/privacy/dlp/v2/storage.proto 18 19 package com.google.privacy.dlp.v2; 20 21 /** 22 * 23 * 24 * <pre> 25 * Categorization of results based on how likely they are to represent a match, 26 * based on the number of elements they contain which imply a match. 27 * </pre> 28 * 29 * Protobuf enum {@code google.privacy.dlp.v2.Likelihood} 30 */ 31 public enum Likelihood implements com.google.protobuf.ProtocolMessageEnum { 32 /** 33 * 34 * 35 * <pre> 36 * Default value; same as POSSIBLE. 37 * </pre> 38 * 39 * <code>LIKELIHOOD_UNSPECIFIED = 0;</code> 40 */ 41 LIKELIHOOD_UNSPECIFIED(0), 42 /** 43 * 44 * 45 * <pre> 46 * Few matching elements. 47 * </pre> 48 * 49 * <code>VERY_UNLIKELY = 1;</code> 50 */ 51 VERY_UNLIKELY(1), 52 /** <code>UNLIKELY = 2;</code> */ 53 UNLIKELY(2), 54 /** 55 * 56 * 57 * <pre> 58 * Some matching elements. 59 * </pre> 60 * 61 * <code>POSSIBLE = 3;</code> 62 */ 63 POSSIBLE(3), 64 /** <code>LIKELY = 4;</code> */ 65 LIKELY(4), 66 /** 67 * 68 * 69 * <pre> 70 * Many matching elements. 71 * </pre> 72 * 73 * <code>VERY_LIKELY = 5;</code> 74 */ 75 VERY_LIKELY(5), 76 UNRECOGNIZED(-1), 77 ; 78 79 /** 80 * 81 * 82 * <pre> 83 * Default value; same as POSSIBLE. 84 * </pre> 85 * 86 * <code>LIKELIHOOD_UNSPECIFIED = 0;</code> 87 */ 88 public static final int LIKELIHOOD_UNSPECIFIED_VALUE = 0; 89 /** 90 * 91 * 92 * <pre> 93 * Few matching elements. 94 * </pre> 95 * 96 * <code>VERY_UNLIKELY = 1;</code> 97 */ 98 public static final int VERY_UNLIKELY_VALUE = 1; 99 /** <code>UNLIKELY = 2;</code> */ 100 public static final int UNLIKELY_VALUE = 2; 101 /** 102 * 103 * 104 * <pre> 105 * Some matching elements. 106 * </pre> 107 * 108 * <code>POSSIBLE = 3;</code> 109 */ 110 public static final int POSSIBLE_VALUE = 3; 111 /** <code>LIKELY = 4;</code> */ 112 public static final int LIKELY_VALUE = 4; 113 /** 114 * 115 * 116 * <pre> 117 * Many matching elements. 118 * </pre> 119 * 120 * <code>VERY_LIKELY = 5;</code> 121 */ 122 public static final int VERY_LIKELY_VALUE = 5; 123 getNumber()124 public final int getNumber() { 125 if (this == UNRECOGNIZED) { 126 throw new java.lang.IllegalArgumentException( 127 "Can't get the number of an unknown enum value."); 128 } 129 return value; 130 } 131 132 /** 133 * @param value The numeric wire value of the corresponding enum entry. 134 * @return The enum associated with the given numeric wire value. 135 * @deprecated Use {@link #forNumber(int)} instead. 136 */ 137 @java.lang.Deprecated valueOf(int value)138 public static Likelihood valueOf(int value) { 139 return forNumber(value); 140 } 141 142 /** 143 * @param value The numeric wire value of the corresponding enum entry. 144 * @return The enum associated with the given numeric wire value. 145 */ forNumber(int value)146 public static Likelihood forNumber(int value) { 147 switch (value) { 148 case 0: 149 return LIKELIHOOD_UNSPECIFIED; 150 case 1: 151 return VERY_UNLIKELY; 152 case 2: 153 return UNLIKELY; 154 case 3: 155 return POSSIBLE; 156 case 4: 157 return LIKELY; 158 case 5: 159 return VERY_LIKELY; 160 default: 161 return null; 162 } 163 } 164 internalGetValueMap()165 public static com.google.protobuf.Internal.EnumLiteMap<Likelihood> internalGetValueMap() { 166 return internalValueMap; 167 } 168 169 private static final com.google.protobuf.Internal.EnumLiteMap<Likelihood> internalValueMap = 170 new com.google.protobuf.Internal.EnumLiteMap<Likelihood>() { 171 public Likelihood findValueByNumber(int number) { 172 return Likelihood.forNumber(number); 173 } 174 }; 175 getValueDescriptor()176 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 177 if (this == UNRECOGNIZED) { 178 throw new java.lang.IllegalStateException( 179 "Can't get the descriptor of an unrecognized enum value."); 180 } 181 return getDescriptor().getValues().get(ordinal()); 182 } 183 getDescriptorForType()184 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 185 return getDescriptor(); 186 } 187 getDescriptor()188 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 189 return com.google.privacy.dlp.v2.DlpStorage.getDescriptor().getEnumTypes().get(0); 190 } 191 192 private static final Likelihood[] VALUES = values(); 193 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)194 public static Likelihood valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 195 if (desc.getType() != getDescriptor()) { 196 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 197 } 198 if (desc.getIndex() == -1) { 199 return UNRECOGNIZED; 200 } 201 return VALUES[desc.getIndex()]; 202 } 203 204 private final int value; 205 Likelihood(int value)206 private Likelihood(int value) { 207 this.value = value; 208 } 209 210 // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.Likelihood) 211 } 212