Commit a9fab09
authored
feat: add Storage.BlobWriteOption.{meta,}generation{Not,}Match(long) methods to allow literal value construction (#1875)
#### New Methods
* com.google.cloud.storage.Storage.BlobWriteOption.generationMatch(long)
* com.google.cloud.storage.Storage.BlobWriteOption.generationNotMatch(long)
* com.google.cloud.storage.Storage.BlobWriteOption.metagenerationMatch(long)
* com.google.cloud.storage.Storage.BlobWriteOption.metagenerationNotMatch(long)
Update UploadObject sample to use createFrom rather than trying to read the entire file into memory.1 parent c74dace commit a9fab09
File tree
2 files changed
+40
-4
lines changed- google-cloud-storage/src/main/java/com/google/cloud/storage
- samples/snippets/src/main/java/com/example/storage/object
2 files changed
+40
-4
lines changedLines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
779 | 788 | | |
780 | 789 | | |
781 | 790 | | |
| |||
785 | 794 | | |
786 | 795 | | |
787 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
788 | 806 | | |
789 | 807 | | |
790 | 808 | | |
| |||
794 | 812 | | |
795 | 813 | | |
796 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
797 | 824 | | |
798 | 825 | | |
799 | 826 | | |
| |||
803 | 830 | | |
804 | 831 | | |
805 | 832 | | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
806 | 842 | | |
807 | 843 | | |
808 | 844 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments