@@ -626,6 +626,24 @@ public static BlobTargetOption generationMatch() {
626
626
return new BlobTargetOption (UnifiedOpts .generationMatchExtractor ());
627
627
}
628
628
629
+ /**
630
+ * Returns an option for blob's data generation match. If this option is used the request will
631
+ * fail if blob's generation does not match the provided value.
632
+ */
633
+ @ TransportCompatibility ({Transport .HTTP , Transport .GRPC })
634
+ public static BlobTargetOption generationMatch (long generation ) {
635
+ return new BlobTargetOption (UnifiedOpts .generationMatch (generation ));
636
+ }
637
+
638
+ /**
639
+ * Returns an option for blob's data generation mismatch. If this option is used the request
640
+ * will fail if generation matches the provided value.
641
+ */
642
+ @ TransportCompatibility ({Transport .HTTP , Transport .GRPC })
643
+ public static BlobTargetOption generationNotMatch (long generation ) {
644
+ return new BlobTargetOption (UnifiedOpts .generationNotMatch (generation ));
645
+ }
646
+
629
647
/**
630
648
* Returns an option for blob's data generation mismatch. If this option is used the request
631
649
* will fail if generation matches.
@@ -644,6 +662,24 @@ public static BlobTargetOption metagenerationMatch() {
644
662
return new BlobTargetOption (UnifiedOpts .metagenerationMatchExtractor ());
645
663
}
646
664
665
+ /**
666
+ * Returns an option for blob's metageneration match. If this option is used the request will
667
+ * fail if blob's metageneration does not match the provided value.
668
+ */
669
+ @ TransportCompatibility ({Transport .HTTP , Transport .GRPC })
670
+ public static BlobTargetOption metagenerationMatch (long metageneration ) {
671
+ return new BlobTargetOption (UnifiedOpts .metagenerationMatch (metageneration ));
672
+ }
673
+
674
+ /**
675
+ * Returns an option for blob's metageneration mismatch. If this option is used the request will
676
+ * fail if metageneration matches the provided value.
677
+ */
678
+ @ TransportCompatibility ({Transport .HTTP , Transport .GRPC })
679
+ public static BlobTargetOption metagenerationNotMatch (long metageneration ) {
680
+ return new BlobTargetOption (UnifiedOpts .metagenerationNotMatch (metageneration ));
681
+ }
682
+
647
683
/**
648
684
* Returns an option for blob's metageneration mismatch. If this option is used the request will
649
685
* fail if metageneration matches.
0 commit comments