22
22
import com .google .gson .stream .JsonWriter ;
23
23
import com .segment .publicapi .JSON ;
24
24
import java .io .IOException ;
25
- import java .util .ArrayList ;
26
25
import java .util .HashSet ;
27
- import java .util .List ;
28
26
import java .util .Map ;
29
27
import java .util .Objects ;
30
28
import java .util .Set ;
@@ -71,16 +69,6 @@ public class Filter {
71
69
@ SerializedName (SERIALIZED_NAME_DROP )
72
70
private Boolean drop ;
73
71
74
- public static final String SERIALIZED_NAME_DROP_PROPERTIES = "dropProperties" ;
75
-
76
- @ SerializedName (SERIALIZED_NAME_DROP_PROPERTIES )
77
- private List <String > dropProperties ;
78
-
79
- public static final String SERIALIZED_NAME_ALLOW_PROPERTIES = "allowProperties" ;
80
-
81
- @ SerializedName (SERIALIZED_NAME_ALLOW_PROPERTIES )
82
- private List <String > allowProperties ;
83
-
84
72
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt" ;
85
73
86
74
@ SerializedName (SERIALIZED_NAME_CREATED_AT )
@@ -253,62 +241,6 @@ public void setDrop(Boolean drop) {
253
241
this .drop = drop ;
254
242
}
255
243
256
- public Filter dropProperties (List <String > dropProperties ) {
257
-
258
- this .dropProperties = dropProperties ;
259
- return this ;
260
- }
261
-
262
- public Filter addDropPropertiesItem (String dropPropertiesItem ) {
263
- if (this .dropProperties == null ) {
264
- this .dropProperties = new ArrayList <>();
265
- }
266
- this .dropProperties .add (dropPropertiesItem );
267
- return this ;
268
- }
269
-
270
- /**
271
- * Describes the properties to be dropped on events that match the \"if\" statement.
272
- *
273
- * @return dropProperties
274
- */
275
- @ javax .annotation .Nullable
276
- public List <String > getDropProperties () {
277
- return dropProperties ;
278
- }
279
-
280
- public void setDropProperties (List <String > dropProperties ) {
281
- this .dropProperties = dropProperties ;
282
- }
283
-
284
- public Filter allowProperties (List <String > allowProperties ) {
285
-
286
- this .allowProperties = allowProperties ;
287
- return this ;
288
- }
289
-
290
- public Filter addAllowPropertiesItem (String allowPropertiesItem ) {
291
- if (this .allowProperties == null ) {
292
- this .allowProperties = new ArrayList <>();
293
- }
294
- this .allowProperties .add (allowPropertiesItem );
295
- return this ;
296
- }
297
-
298
- /**
299
- * Describes the properties allowed on events that match the \"if\" statement.
300
- *
301
- * @return allowProperties
302
- */
303
- @ javax .annotation .Nullable
304
- public List <String > getAllowProperties () {
305
- return allowProperties ;
306
- }
307
-
308
- public void setAllowProperties (List <String > allowProperties ) {
309
- this .allowProperties = allowProperties ;
310
- }
311
-
312
244
public Filter createdAt (String createdAt ) {
313
245
314
246
this .createdAt = createdAt ;
@@ -366,8 +298,6 @@ public boolean equals(Object o) {
366
298
&& Objects .equals (this .description , filter .description )
367
299
&& Objects .equals (this ._if , filter ._if )
368
300
&& Objects .equals (this .drop , filter .drop )
369
- && Objects .equals (this .dropProperties , filter .dropProperties )
370
- && Objects .equals (this .allowProperties , filter .allowProperties )
371
301
&& Objects .equals (this .createdAt , filter .createdAt )
372
302
&& Objects .equals (this .updatedAt , filter .updatedAt );
373
303
}
@@ -383,8 +313,6 @@ public int hashCode() {
383
313
description ,
384
314
_if ,
385
315
drop ,
386
- dropProperties ,
387
- allowProperties ,
388
316
createdAt ,
389
317
updatedAt );
390
318
}
@@ -401,8 +329,6 @@ public String toString() {
401
329
sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
402
330
sb .append (" _if: " ).append (toIndentedString (_if )).append ("\n " );
403
331
sb .append (" drop: " ).append (toIndentedString (drop )).append ("\n " );
404
- sb .append (" dropProperties: " ).append (toIndentedString (dropProperties )).append ("\n " );
405
- sb .append (" allowProperties: " ).append (toIndentedString (allowProperties )).append ("\n " );
406
332
sb .append (" createdAt: " ).append (toIndentedString (createdAt )).append ("\n " );
407
333
sb .append (" updatedAt: " ).append (toIndentedString (updatedAt )).append ("\n " );
408
334
sb .append ("}" );
@@ -434,8 +360,6 @@ private String toIndentedString(Object o) {
434
360
openapiFields .add ("description" );
435
361
openapiFields .add ("if" );
436
362
openapiFields .add ("drop" );
437
- openapiFields .add ("dropProperties" );
438
- openapiFields .add ("allowProperties" );
439
363
openapiFields .add ("createdAt" );
440
364
openapiFields .add ("updatedAt" );
441
365
@@ -533,26 +457,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
533
457
+ " got `%s`" ,
534
458
jsonObj .get ("if" ).toString ()));
535
459
}
536
- // ensure the optional json data is an array if present
537
- if (jsonObj .get ("dropProperties" ) != null
538
- && !jsonObj .get ("dropProperties" ).isJsonNull ()
539
- && !jsonObj .get ("dropProperties" ).isJsonArray ()) {
540
- throw new IllegalArgumentException (
541
- String .format (
542
- "Expected the field `dropProperties` to be an array in the JSON string"
543
- + " but got `%s`" ,
544
- jsonObj .get ("dropProperties" ).toString ()));
545
- }
546
- // ensure the optional json data is an array if present
547
- if (jsonObj .get ("allowProperties" ) != null
548
- && !jsonObj .get ("allowProperties" ).isJsonNull ()
549
- && !jsonObj .get ("allowProperties" ).isJsonArray ()) {
550
- throw new IllegalArgumentException (
551
- String .format (
552
- "Expected the field `allowProperties` to be an array in the JSON string"
553
- + " but got `%s`" ,
554
- jsonObj .get ("allowProperties" ).toString ()));
555
- }
556
460
if (!jsonObj .get ("createdAt" ).isJsonPrimitive ()) {
557
461
throw new IllegalArgumentException (
558
462
String .format (
0 commit comments