@@ -288,7 +288,7 @@ abstract class ListFilter implements Serializable {
288
288
289
289
enum ComparisonOperator {
290
290
/**
291
- * Defines an equality filter.
291
+ * Defines an equals filter.
292
292
*/
293
293
EQ ,
294
294
@@ -340,11 +340,11 @@ class DiskTypeFilter extends ListFilter {
340
340
}
341
341
342
342
/**
343
- * Returns an equality filter for the given field and string value. For string fields,
343
+ * Returns an equals filter for the given field and string value. For string fields,
344
344
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
345
345
* match the entire field.
346
346
*
347
- * @see <a href="https://github.com/google/re2">RE2</a>
347
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
348
348
*/
349
349
public static DiskTypeFilter equals (DiskTypeField field , String value ) {
350
350
return new DiskTypeFilter (checkNotNull (field ), ComparisonOperator .EQ , checkNotNull (value ));
@@ -355,14 +355,14 @@ public static DiskTypeFilter equals(DiskTypeField field, String value) {
355
355
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
356
356
* match the entire field.
357
357
*
358
- * @see <a href="https://github.com/google/re2">RE2</a>
358
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
359
359
*/
360
360
public static DiskTypeFilter notEquals (DiskTypeField field , String value ) {
361
361
return new DiskTypeFilter (checkNotNull (field ), ComparisonOperator .NE , checkNotNull (value ));
362
362
}
363
363
364
364
/**
365
- * Returns an equality filter for the given field and long value.
365
+ * Returns an equals filter for the given field and long value.
366
366
*/
367
367
public static DiskTypeFilter equals (DiskTypeField field , long value ) {
368
368
return new DiskTypeFilter (checkNotNull (field ), ComparisonOperator .EQ , value );
@@ -388,11 +388,11 @@ class MachineTypeFilter extends ListFilter {
388
388
}
389
389
390
390
/**
391
- * Returns an equality filter for the given field and string value. For string fields,
391
+ * Returns an equals filter for the given field and string value. For string fields,
392
392
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
393
393
* match the entire field.
394
394
*
395
- * @see <a href="https://github.com/google/re2">RE2</a>
395
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
396
396
*/
397
397
public static MachineTypeFilter equals (MachineTypeField field , String value ) {
398
398
return new MachineTypeFilter (checkNotNull (field ), ComparisonOperator .EQ , checkNotNull (value ));
@@ -403,14 +403,14 @@ public static MachineTypeFilter equals(MachineTypeField field, String value) {
403
403
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
404
404
* match the entire field.
405
405
*
406
- * @see <a href="https://github.com/google/re2">RE2</a>
406
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
407
407
*/
408
408
public static MachineTypeFilter notEquals (MachineTypeField field , String value ) {
409
409
return new MachineTypeFilter (checkNotNull (field ), ComparisonOperator .NE , checkNotNull (value ));
410
410
}
411
411
412
412
/**
413
- * Returns an equality filter for the given field and long value.
413
+ * Returns an equals filter for the given field and long value.
414
414
*/
415
415
public static MachineTypeFilter equals (MachineTypeField field , long value ) {
416
416
return new MachineTypeFilter (checkNotNull (field ), ComparisonOperator .EQ , value );
@@ -436,11 +436,11 @@ class RegionFilter extends ListFilter {
436
436
}
437
437
438
438
/**
439
- * Returns an equality filter for the given field and string value. For string fields,
439
+ * Returns an equals filter for the given field and string value. For string fields,
440
440
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
441
441
* match the entire field.
442
442
*
443
- * @see <a href="https://github.com/google/re2">RE2</a>
443
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
444
444
*/
445
445
public static RegionFilter equals (RegionField field , String value ) {
446
446
return new RegionFilter (checkNotNull (field ), ComparisonOperator .EQ , value );
@@ -451,7 +451,7 @@ public static RegionFilter equals(RegionField field, String value) {
451
451
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
452
452
* match the entire field.
453
453
*
454
- * @see <a href="https://github.com/google/re2">RE2</a>
454
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
455
455
*/
456
456
public static RegionFilter notEquals (RegionField field , String value ) {
457
457
return new RegionFilter (checkNotNull (field ), ComparisonOperator .NE , checkNotNull (value ));
@@ -470,11 +470,11 @@ class ZoneFilter extends ListFilter {
470
470
}
471
471
472
472
/**
473
- * Returns an equality filter for the given field and string value. For string fields,
473
+ * Returns an equals filter for the given field and string value. For string fields,
474
474
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
475
475
* match the entire field.
476
476
*
477
- * @see <a href="https://github.com/google/re2">RE2</a>
477
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
478
478
*/
479
479
public static ZoneFilter equals (ZoneField field , String value ) {
480
480
return new ZoneFilter (checkNotNull (field ), ComparisonOperator .EQ , checkNotNull (value ));
@@ -485,7 +485,7 @@ public static ZoneFilter equals(ZoneField field, String value) {
485
485
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
486
486
* match the entire field.
487
487
*
488
- * @see <a href="https://github.com/google/re2">RE2</a>
488
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
489
489
*/
490
490
public static ZoneFilter notEquals (ZoneField field , String value ) {
491
491
return new ZoneFilter (checkNotNull (field ), ComparisonOperator .NE , checkNotNull (value ));
@@ -504,11 +504,11 @@ class OperationFilter extends ListFilter {
504
504
}
505
505
506
506
/**
507
- * Returns an equality filter for the given field and string value. For string fields,
507
+ * Returns an equals filter for the given field and string value. For string fields,
508
508
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
509
509
* match the entire field.
510
510
*
511
- * @see <a href="https://github.com/google/re2">RE2</a>
511
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
512
512
*/
513
513
public static OperationFilter equals (OperationField field , String value ) {
514
514
return new OperationFilter (checkNotNull (field ), ComparisonOperator .EQ , checkNotNull (value ));
@@ -519,14 +519,14 @@ public static OperationFilter equals(OperationField field, String value) {
519
519
* {@code value} is interpreted as a regular expression using RE2 syntax. {@code value} must
520
520
* match the entire field.
521
521
*
522
- * @see <a href="https://github.com/google/re2">RE2</a>
522
+ * @see <a href="https://github.com/google/re2/wiki/Syntax ">RE2</a>
523
523
*/
524
524
public static OperationFilter notEquals (OperationField field , String value ) {
525
525
return new OperationFilter (checkNotNull (field ), ComparisonOperator .NE , checkNotNull (value ));
526
526
}
527
527
528
528
/**
529
- * Returns an equality filter for the given field and long value.
529
+ * Returns an equals filter for the given field and long value.
530
530
*/
531
531
public static OperationFilter equals (OperationField field , long value ) {
532
532
return new OperationFilter (checkNotNull (field ), ComparisonOperator .EQ , value );
@@ -538,20 +538,6 @@ public static OperationFilter equals(OperationField field, long value) {
538
538
public static OperationFilter notEquals (OperationField field , long value ) {
539
539
return new OperationFilter (checkNotNull (field ), ComparisonOperator .NE , value );
540
540
}
541
-
542
- /**
543
- * Returns an equality filter for the given field and integer value.
544
- */
545
- public static OperationFilter equals (OperationField field , int value ) {
546
- return new OperationFilter (checkNotNull (field ), ComparisonOperator .EQ , value );
547
- }
548
-
549
- /**
550
- * Returns a not-equals filter for the given field and integer value.
551
- */
552
- public static OperationFilter notEquals (OperationField field , int value ) {
553
- return new OperationFilter (checkNotNull (field ), ComparisonOperator .NE , value );
554
- }
555
541
}
556
542
557
543
/**
@@ -595,7 +581,7 @@ public static DiskTypeListOption filter(DiskTypeFilter filter) {
595
581
}
596
582
597
583
/**
598
- * Returns an option to specify the maximum number of disk types to be returned .
584
+ * Returns an option to specify the maximum number of disk types returned per page .
599
585
*/
600
586
public static DiskTypeListOption pageSize (long pageSize ) {
601
587
return new DiskTypeListOption (ComputeRpc .Option .MAX_RESULTS , pageSize );
@@ -640,7 +626,7 @@ public static DiskTypeAggregatedListOption filter(DiskTypeFilter filter) {
640
626
}
641
627
642
628
/**
643
- * Returns an option to specify the maximum number of disk types to be returned .
629
+ * Returns an option to specify the maximum number of disk types returned per page .
644
630
*/
645
631
public static DiskTypeAggregatedListOption pageSize (long pageSize ) {
646
632
return new DiskTypeAggregatedListOption (ComputeRpc .Option .MAX_RESULTS , pageSize );
@@ -695,7 +681,7 @@ public static MachineTypeListOption filter(MachineTypeFilter filter) {
695
681
}
696
682
697
683
/**
698
- * Returns an option to specify the maximum number of machine types to be returned .
684
+ * Returns an option to specify the maximum number of machine types returned per page .
699
685
*/
700
686
public static MachineTypeListOption pageSize (long pageSize ) {
701
687
return new MachineTypeListOption (ComputeRpc .Option .MAX_RESULTS , pageSize );
@@ -740,7 +726,7 @@ public static MachineTypeAggregatedListOption filter(MachineTypeFilter filter) {
740
726
}
741
727
742
728
/**
743
- * Returns an option to specify the maximum number of machine types to be returned .
729
+ * Returns an option to specify the maximum number of machine types returned per page .
744
730
*/
745
731
public static MachineTypeAggregatedListOption pageSize (long pageSize ) {
746
732
return new MachineTypeAggregatedListOption (ComputeRpc .Option .MAX_RESULTS , pageSize );
@@ -795,7 +781,7 @@ public static RegionListOption filter(RegionFilter filter) {
795
781
}
796
782
797
783
/**
798
- * Returns an option to specify the maximum number of regions to be returned .
784
+ * Returns an option to specify the maximum number of regions returned per page .
799
785
*/
800
786
public static RegionListOption pageSize (long pageSize ) {
801
787
return new RegionListOption (ComputeRpc .Option .MAX_RESULTS , pageSize );
@@ -862,7 +848,7 @@ public static ZoneListOption filter(ZoneFilter filter) {
862
848
}
863
849
864
850
/**
865
- * Returns an option to specify the maximum number of zones to be returned .
851
+ * Returns an option to specify the maximum number of zones returned per page .
866
852
*/
867
853
public static ZoneListOption pageSize (long pageSize ) {
868
854
return new ZoneListOption (ComputeRpc .Option .MAX_RESULTS , pageSize );
@@ -951,7 +937,7 @@ public static OperationListOption filter(OperationFilter filter) {
951
937
}
952
938
953
939
/**
954
- * Returns an option to specify the maximum number of operations to be returned .
940
+ * Returns an option to specify the maximum number of operations returned per page .
955
941
*/
956
942
public static OperationListOption pageSize (long pageSize ) {
957
943
return new OperationListOption (ComputeRpc .Option .MAX_RESULTS , pageSize );
@@ -1090,14 +1076,16 @@ public static OperationListOption fields(OperationField... fields) {
1090
1076
Page <Operation > listGlobalOperations (OperationListOption ... options );
1091
1077
1092
1078
/**
1093
- * Lists the operations in the provided region.
1079
+ * Lists the operations for the provided region. These are operations that create/modify/delete
1080
+ * resources that live in a region (e.g. subnetworks).
1094
1081
*
1095
1082
* @throws ComputeException upon failure
1096
1083
*/
1097
1084
Page <Operation > listRegionOperations (String region , OperationListOption ... options );
1098
1085
1099
1086
/**
1100
- * Lists the operations in the provided zone.
1087
+ * Lists the operations for the provided zone. These are operations that create/modify/delete
1088
+ * resources that live in a zone (e.g. instances).
1101
1089
*
1102
1090
* @throws ComputeException upon failure
1103
1091
*/
0 commit comments