• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/dlp.proto
18 
19 package com.google.privacy.dlp.v2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Operators available for comparing the value of fields.
26  * </pre>
27  *
28  * Protobuf enum {@code google.privacy.dlp.v2.RelationalOperator}
29  */
30 public enum RelationalOperator implements com.google.protobuf.ProtocolMessageEnum {
31   /**
32    *
33    *
34    * <pre>
35    * Unused
36    * </pre>
37    *
38    * <code>RELATIONAL_OPERATOR_UNSPECIFIED = 0;</code>
39    */
40   RELATIONAL_OPERATOR_UNSPECIFIED(0),
41   /**
42    *
43    *
44    * <pre>
45    * Equal. Attempts to match even with incompatible types.
46    * </pre>
47    *
48    * <code>EQUAL_TO = 1;</code>
49    */
50   EQUAL_TO(1),
51   /**
52    *
53    *
54    * <pre>
55    * Not equal to. Attempts to match even with incompatible types.
56    * </pre>
57    *
58    * <code>NOT_EQUAL_TO = 2;</code>
59    */
60   NOT_EQUAL_TO(2),
61   /**
62    *
63    *
64    * <pre>
65    * Greater than.
66    * </pre>
67    *
68    * <code>GREATER_THAN = 3;</code>
69    */
70   GREATER_THAN(3),
71   /**
72    *
73    *
74    * <pre>
75    * Less than.
76    * </pre>
77    *
78    * <code>LESS_THAN = 4;</code>
79    */
80   LESS_THAN(4),
81   /**
82    *
83    *
84    * <pre>
85    * Greater than or equals.
86    * </pre>
87    *
88    * <code>GREATER_THAN_OR_EQUALS = 5;</code>
89    */
90   GREATER_THAN_OR_EQUALS(5),
91   /**
92    *
93    *
94    * <pre>
95    * Less than or equals.
96    * </pre>
97    *
98    * <code>LESS_THAN_OR_EQUALS = 6;</code>
99    */
100   LESS_THAN_OR_EQUALS(6),
101   /**
102    *
103    *
104    * <pre>
105    * Exists
106    * </pre>
107    *
108    * <code>EXISTS = 7;</code>
109    */
110   EXISTS(7),
111   UNRECOGNIZED(-1),
112   ;
113 
114   /**
115    *
116    *
117    * <pre>
118    * Unused
119    * </pre>
120    *
121    * <code>RELATIONAL_OPERATOR_UNSPECIFIED = 0;</code>
122    */
123   public static final int RELATIONAL_OPERATOR_UNSPECIFIED_VALUE = 0;
124   /**
125    *
126    *
127    * <pre>
128    * Equal. Attempts to match even with incompatible types.
129    * </pre>
130    *
131    * <code>EQUAL_TO = 1;</code>
132    */
133   public static final int EQUAL_TO_VALUE = 1;
134   /**
135    *
136    *
137    * <pre>
138    * Not equal to. Attempts to match even with incompatible types.
139    * </pre>
140    *
141    * <code>NOT_EQUAL_TO = 2;</code>
142    */
143   public static final int NOT_EQUAL_TO_VALUE = 2;
144   /**
145    *
146    *
147    * <pre>
148    * Greater than.
149    * </pre>
150    *
151    * <code>GREATER_THAN = 3;</code>
152    */
153   public static final int GREATER_THAN_VALUE = 3;
154   /**
155    *
156    *
157    * <pre>
158    * Less than.
159    * </pre>
160    *
161    * <code>LESS_THAN = 4;</code>
162    */
163   public static final int LESS_THAN_VALUE = 4;
164   /**
165    *
166    *
167    * <pre>
168    * Greater than or equals.
169    * </pre>
170    *
171    * <code>GREATER_THAN_OR_EQUALS = 5;</code>
172    */
173   public static final int GREATER_THAN_OR_EQUALS_VALUE = 5;
174   /**
175    *
176    *
177    * <pre>
178    * Less than or equals.
179    * </pre>
180    *
181    * <code>LESS_THAN_OR_EQUALS = 6;</code>
182    */
183   public static final int LESS_THAN_OR_EQUALS_VALUE = 6;
184   /**
185    *
186    *
187    * <pre>
188    * Exists
189    * </pre>
190    *
191    * <code>EXISTS = 7;</code>
192    */
193   public static final int EXISTS_VALUE = 7;
194 
getNumber()195   public final int getNumber() {
196     if (this == UNRECOGNIZED) {
197       throw new java.lang.IllegalArgumentException(
198           "Can't get the number of an unknown enum value.");
199     }
200     return value;
201   }
202 
203   /**
204    * @param value The numeric wire value of the corresponding enum entry.
205    * @return The enum associated with the given numeric wire value.
206    * @deprecated Use {@link #forNumber(int)} instead.
207    */
208   @java.lang.Deprecated
valueOf(int value)209   public static RelationalOperator valueOf(int value) {
210     return forNumber(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    */
forNumber(int value)217   public static RelationalOperator forNumber(int value) {
218     switch (value) {
219       case 0:
220         return RELATIONAL_OPERATOR_UNSPECIFIED;
221       case 1:
222         return EQUAL_TO;
223       case 2:
224         return NOT_EQUAL_TO;
225       case 3:
226         return GREATER_THAN;
227       case 4:
228         return LESS_THAN;
229       case 5:
230         return GREATER_THAN_OR_EQUALS;
231       case 6:
232         return LESS_THAN_OR_EQUALS;
233       case 7:
234         return EXISTS;
235       default:
236         return null;
237     }
238   }
239 
internalGetValueMap()240   public static com.google.protobuf.Internal.EnumLiteMap<RelationalOperator> internalGetValueMap() {
241     return internalValueMap;
242   }
243 
244   private static final com.google.protobuf.Internal.EnumLiteMap<RelationalOperator>
245       internalValueMap =
246           new com.google.protobuf.Internal.EnumLiteMap<RelationalOperator>() {
247             public RelationalOperator findValueByNumber(int number) {
248               return RelationalOperator.forNumber(number);
249             }
250           };
251 
getValueDescriptor()252   public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
253     if (this == UNRECOGNIZED) {
254       throw new java.lang.IllegalStateException(
255           "Can't get the descriptor of an unrecognized enum value.");
256     }
257     return getDescriptor().getValues().get(ordinal());
258   }
259 
getDescriptorForType()260   public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
261     return getDescriptor();
262   }
263 
getDescriptor()264   public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
265     return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(3);
266   }
267 
268   private static final RelationalOperator[] VALUES = values();
269 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)270   public static RelationalOperator valueOf(
271       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
272     if (desc.getType() != getDescriptor()) {
273       throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
274     }
275     if (desc.getIndex() == -1) {
276       return UNRECOGNIZED;
277     }
278     return VALUES[desc.getIndex()];
279   }
280 
281   private final int value;
282 
RelationalOperator(int value)283   private RelationalOperator(int value) {
284     this.value = value;
285   }
286 
287   // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.RelationalOperator)
288 }
289