/
Data.java
7055 lines (6720 loc) · 229 KB
/
Data.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/events/cloud/storage/v1/data.proto
package google.events.cloud.storage.v1;
public final class Data {
private Data() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface StorageObjectDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.events.cloud.storage.v1.StorageObjectData)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Content-Encoding of the object data, matching
* [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
* </pre>
*
* <code>string content_encoding = 1;</code>
* @return The contentEncoding.
*/
java.lang.String getContentEncoding();
/**
* <pre>
* Content-Encoding of the object data, matching
* [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
* </pre>
*
* <code>string content_encoding = 1;</code>
* @return The bytes for contentEncoding.
*/
com.google.protobuf.ByteString
getContentEncodingBytes();
/**
* <pre>
* Content-Disposition of the object data, matching
* [https://tools.ietf.org/html/rfc6266][RFC 6266].
* </pre>
*
* <code>string content_disposition = 2;</code>
* @return The contentDisposition.
*/
java.lang.String getContentDisposition();
/**
* <pre>
* Content-Disposition of the object data, matching
* [https://tools.ietf.org/html/rfc6266][RFC 6266].
* </pre>
*
* <code>string content_disposition = 2;</code>
* @return The bytes for contentDisposition.
*/
com.google.protobuf.ByteString
getContentDispositionBytes();
/**
* <pre>
* Cache-Control directive for the object data, matching
* [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
* </pre>
*
* <code>string cache_control = 3;</code>
* @return The cacheControl.
*/
java.lang.String getCacheControl();
/**
* <pre>
* Cache-Control directive for the object data, matching
* [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
* </pre>
*
* <code>string cache_control = 3;</code>
* @return The bytes for cacheControl.
*/
com.google.protobuf.ByteString
getCacheControlBytes();
/**
* <pre>
* Content-Language of the object data, matching
* [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
* </pre>
*
* <code>string content_language = 5;</code>
* @return The contentLanguage.
*/
java.lang.String getContentLanguage();
/**
* <pre>
* Content-Language of the object data, matching
* [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
* </pre>
*
* <code>string content_language = 5;</code>
* @return The bytes for contentLanguage.
*/
com.google.protobuf.ByteString
getContentLanguageBytes();
/**
* <pre>
* The version of the metadata for this object at this generation. Used for
* preconditions and for detecting changes in metadata. A metageneration
* number is only meaningful in the context of a particular generation of a
* particular object.
* </pre>
*
* <code>int64 metageneration = 6;</code>
* @return The metageneration.
*/
long getMetageneration();
/**
* <pre>
* The deletion time of the object. Will be returned if and only if this
* version of the object has been deleted.
* </pre>
*
* <code>.google.protobuf.Timestamp time_deleted = 7;</code>
* @return Whether the timeDeleted field is set.
*/
boolean hasTimeDeleted();
/**
* <pre>
* The deletion time of the object. Will be returned if and only if this
* version of the object has been deleted.
* </pre>
*
* <code>.google.protobuf.Timestamp time_deleted = 7;</code>
* @return The timeDeleted.
*/
com.google.protobuf.Timestamp getTimeDeleted();
/**
* <pre>
* The deletion time of the object. Will be returned if and only if this
* version of the object has been deleted.
* </pre>
*
* <code>.google.protobuf.Timestamp time_deleted = 7;</code>
*/
com.google.protobuf.TimestampOrBuilder getTimeDeletedOrBuilder();
/**
* <pre>
* Content-Type of the object data, matching
* [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
* If an object is stored without a Content-Type, it is served as
* `application/octet-stream`.
* </pre>
*
* <code>string content_type = 8;</code>
* @return The contentType.
*/
java.lang.String getContentType();
/**
* <pre>
* Content-Type of the object data, matching
* [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
* If an object is stored without a Content-Type, it is served as
* `application/octet-stream`.
* </pre>
*
* <code>string content_type = 8;</code>
* @return The bytes for contentType.
*/
com.google.protobuf.ByteString
getContentTypeBytes();
/**
* <pre>
* Content-Length of the object data in bytes, matching
* [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
* </pre>
*
* <code>int64 size = 9;</code>
* @return The size.
*/
long getSize();
/**
* <pre>
* The creation time of the object.
* Attempting to set this field will result in an error.
* </pre>
*
* <code>.google.protobuf.Timestamp time_created = 10;</code>
* @return Whether the timeCreated field is set.
*/
boolean hasTimeCreated();
/**
* <pre>
* The creation time of the object.
* Attempting to set this field will result in an error.
* </pre>
*
* <code>.google.protobuf.Timestamp time_created = 10;</code>
* @return The timeCreated.
*/
com.google.protobuf.Timestamp getTimeCreated();
/**
* <pre>
* The creation time of the object.
* Attempting to set this field will result in an error.
* </pre>
*
* <code>.google.protobuf.Timestamp time_created = 10;</code>
*/
com.google.protobuf.TimestampOrBuilder getTimeCreatedOrBuilder();
/**
* <pre>
* CRC32c checksum. For more information about using the CRC32c
* checksum, see
* [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and
* ETags: Best Practices].
* </pre>
*
* <code>string crc32c = 11;</code>
* @return The crc32c.
*/
java.lang.String getCrc32C();
/**
* <pre>
* CRC32c checksum. For more information about using the CRC32c
* checksum, see
* [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and
* ETags: Best Practices].
* </pre>
*
* <code>string crc32c = 11;</code>
* @return The bytes for crc32c.
*/
com.google.protobuf.ByteString
getCrc32CBytes();
/**
* <pre>
* Number of underlying components that make up this object. Components are
* accumulated by compose operations.
* Attempting to set this field will result in an error.
* </pre>
*
* <code>int32 component_count = 12;</code>
* @return The componentCount.
*/
int getComponentCount();
/**
* <pre>
* MD5 hash of the data; encoded using base64 as per
* [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more
* information about using the MD5 hash, see
* [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and
* ETags: Best Practices].
* </pre>
*
* <code>string md5_hash = 13;</code>
* @return The md5Hash.
*/
java.lang.String getMd5Hash();
/**
* <pre>
* MD5 hash of the data; encoded using base64 as per
* [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more
* information about using the MD5 hash, see
* [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and
* ETags: Best Practices].
* </pre>
*
* <code>string md5_hash = 13;</code>
* @return The bytes for md5Hash.
*/
com.google.protobuf.ByteString
getMd5HashBytes();
/**
* <pre>
* HTTP 1.1 Entity tag for the object. See
* [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3].
* </pre>
*
* <code>string etag = 14;</code>
* @return The etag.
*/
java.lang.String getEtag();
/**
* <pre>
* HTTP 1.1 Entity tag for the object. See
* [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3].
* </pre>
*
* <code>string etag = 14;</code>
* @return The bytes for etag.
*/
com.google.protobuf.ByteString
getEtagBytes();
/**
* <pre>
* The modification time of the object metadata.
* </pre>
*
* <code>.google.protobuf.Timestamp updated = 15;</code>
* @return Whether the updated field is set.
*/
boolean hasUpdated();
/**
* <pre>
* The modification time of the object metadata.
* </pre>
*
* <code>.google.protobuf.Timestamp updated = 15;</code>
* @return The updated.
*/
com.google.protobuf.Timestamp getUpdated();
/**
* <pre>
* The modification time of the object metadata.
* </pre>
*
* <code>.google.protobuf.Timestamp updated = 15;</code>
*/
com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder();
/**
* <pre>
* Storage class of the object.
* </pre>
*
* <code>string storage_class = 16;</code>
* @return The storageClass.
*/
java.lang.String getStorageClass();
/**
* <pre>
* Storage class of the object.
* </pre>
*
* <code>string storage_class = 16;</code>
* @return The bytes for storageClass.
*/
com.google.protobuf.ByteString
getStorageClassBytes();
/**
* <pre>
* Cloud KMS Key used to encrypt this object, if the object is encrypted by
* such a key.
* </pre>
*
* <code>string kms_key_name = 17;</code>
* @return The kmsKeyName.
*/
java.lang.String getKmsKeyName();
/**
* <pre>
* Cloud KMS Key used to encrypt this object, if the object is encrypted by
* such a key.
* </pre>
*
* <code>string kms_key_name = 17;</code>
* @return The bytes for kmsKeyName.
*/
com.google.protobuf.ByteString
getKmsKeyNameBytes();
/**
* <pre>
* The time at which the object's storage class was last changed.
* </pre>
*
* <code>.google.protobuf.Timestamp time_storage_class_updated = 18;</code>
* @return Whether the timeStorageClassUpdated field is set.
*/
boolean hasTimeStorageClassUpdated();
/**
* <pre>
* The time at which the object's storage class was last changed.
* </pre>
*
* <code>.google.protobuf.Timestamp time_storage_class_updated = 18;</code>
* @return The timeStorageClassUpdated.
*/
com.google.protobuf.Timestamp getTimeStorageClassUpdated();
/**
* <pre>
* The time at which the object's storage class was last changed.
* </pre>
*
* <code>.google.protobuf.Timestamp time_storage_class_updated = 18;</code>
*/
com.google.protobuf.TimestampOrBuilder getTimeStorageClassUpdatedOrBuilder();
/**
* <pre>
* Whether an object is under temporary hold.
* </pre>
*
* <code>bool temporary_hold = 19;</code>
* @return The temporaryHold.
*/
boolean getTemporaryHold();
/**
* <pre>
* A server-determined value that specifies the earliest time that the
* object's retention period expires.
* </pre>
*
* <code>.google.protobuf.Timestamp retention_expiration_time = 20;</code>
* @return Whether the retentionExpirationTime field is set.
*/
boolean hasRetentionExpirationTime();
/**
* <pre>
* A server-determined value that specifies the earliest time that the
* object's retention period expires.
* </pre>
*
* <code>.google.protobuf.Timestamp retention_expiration_time = 20;</code>
* @return The retentionExpirationTime.
*/
com.google.protobuf.Timestamp getRetentionExpirationTime();
/**
* <pre>
* A server-determined value that specifies the earliest time that the
* object's retention period expires.
* </pre>
*
* <code>.google.protobuf.Timestamp retention_expiration_time = 20;</code>
*/
com.google.protobuf.TimestampOrBuilder getRetentionExpirationTimeOrBuilder();
/**
* <pre>
* User-provided metadata, in key/value pairs.
* </pre>
*
* <code>map<string, string> metadata = 21;</code>
*/
int getMetadataCount();
/**
* <pre>
* User-provided metadata, in key/value pairs.
* </pre>
*
* <code>map<string, string> metadata = 21;</code>
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getMetadata();
/**
* <pre>
* User-provided metadata, in key/value pairs.
* </pre>
*
* <code>map<string, string> metadata = 21;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getMetadataMap();
/**
* <pre>
* User-provided metadata, in key/value pairs.
* </pre>
*
* <code>map<string, string> metadata = 21;</code>
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* User-provided metadata, in key/value pairs.
* </pre>
*
* <code>map<string, string> metadata = 21;</code>
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
/**
* <pre>
* Whether an object is under event-based hold.
* </pre>
*
* <code>bool event_based_hold = 29;</code>
* @return The eventBasedHold.
*/
boolean getEventBasedHold();
/**
* <pre>
* The name of the object.
* </pre>
*
* <code>string name = 23;</code>
* @return The name.
*/
java.lang.String getName();
/**
* <pre>
* The name of the object.
* </pre>
*
* <code>string name = 23;</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <pre>
* The ID of the object, including the bucket name, object name, and
* generation number.
* </pre>
*
* <code>string id = 24;</code>
* @return The id.
*/
java.lang.String getId();
/**
* <pre>
* The ID of the object, including the bucket name, object name, and
* generation number.
* </pre>
*
* <code>string id = 24;</code>
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* <pre>
* The name of the bucket containing this object.
* </pre>
*
* <code>string bucket = 25;</code>
* @return The bucket.
*/
java.lang.String getBucket();
/**
* <pre>
* The name of the bucket containing this object.
* </pre>
*
* <code>string bucket = 25;</code>
* @return The bytes for bucket.
*/
com.google.protobuf.ByteString
getBucketBytes();
/**
* <pre>
* The content generation of this object. Used for object versioning.
* Attempting to set this field will result in an error.
* </pre>
*
* <code>int64 generation = 26;</code>
* @return The generation.
*/
long getGeneration();
/**
* <pre>
* Metadata of customer-supplied encryption key, if the object is encrypted by
* such a key.
* </pre>
*
* <code>.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;</code>
* @return Whether the customerEncryption field is set.
*/
boolean hasCustomerEncryption();
/**
* <pre>
* Metadata of customer-supplied encryption key, if the object is encrypted by
* such a key.
* </pre>
*
* <code>.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;</code>
* @return The customerEncryption.
*/
google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption getCustomerEncryption();
/**
* <pre>
* Metadata of customer-supplied encryption key, if the object is encrypted by
* such a key.
* </pre>
*
* <code>.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;</code>
*/
google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder();
/**
* <pre>
* Media download link.
* </pre>
*
* <code>string media_link = 100;</code>
* @return The mediaLink.
*/
java.lang.String getMediaLink();
/**
* <pre>
* Media download link.
* </pre>
*
* <code>string media_link = 100;</code>
* @return The bytes for mediaLink.
*/
com.google.protobuf.ByteString
getMediaLinkBytes();
/**
* <pre>
* The link to this object.
* </pre>
*
* <code>string self_link = 101;</code>
* @return The selfLink.
*/
java.lang.String getSelfLink();
/**
* <pre>
* The link to this object.
* </pre>
*
* <code>string self_link = 101;</code>
* @return The bytes for selfLink.
*/
com.google.protobuf.ByteString
getSelfLinkBytes();
/**
* <pre>
* The kind of item this is. For objects, this is always "storage#object".
* </pre>
*
* <code>string kind = 102;</code>
* @return The kind.
*/
java.lang.String getKind();
/**
* <pre>
* The kind of item this is. For objects, this is always "storage#object".
* </pre>
*
* <code>string kind = 102;</code>
* @return The bytes for kind.
*/
com.google.protobuf.ByteString
getKindBytes();
}
/**
* <pre>
* An object within Google Cloud Storage.
* </pre>
*
* Protobuf type {@code google.events.cloud.storage.v1.StorageObjectData}
*/
public static final class StorageObjectData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.events.cloud.storage.v1.StorageObjectData)
StorageObjectDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageObjectData.newBuilder() to construct.
private StorageObjectData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StorageObjectData() {
contentEncoding_ = "";
contentDisposition_ = "";
cacheControl_ = "";
contentLanguage_ = "";
contentType_ = "";
crc32C_ = "";
md5Hash_ = "";
etag_ = "";
storageClass_ = "";
kmsKeyName_ = "";
name_ = "";
id_ = "";
bucket_ = "";
mediaLink_ = "";
selfLink_ = "";
kind_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageObjectData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageObjectData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
contentEncoding_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
contentDisposition_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
cacheControl_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
contentLanguage_ = s;
break;
}
case 48: {
metageneration_ = input.readInt64();
break;
}
case 58: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (timeDeleted_ != null) {
subBuilder = timeDeleted_.toBuilder();
}
timeDeleted_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeDeleted_);
timeDeleted_ = subBuilder.buildPartial();
}
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
contentType_ = s;
break;
}
case 72: {
size_ = input.readInt64();
break;
}
case 82: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (timeCreated_ != null) {
subBuilder = timeCreated_.toBuilder();
}
timeCreated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeCreated_);
timeCreated_ = subBuilder.buildPartial();
}
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
crc32C_ = s;
break;
}
case 96: {
componentCount_ = input.readInt32();
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
md5Hash_ = s;
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
etag_ = s;
break;
}
case 122: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (updated_ != null) {
subBuilder = updated_.toBuilder();
}
updated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updated_);
updated_ = subBuilder.buildPartial();
}
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
storageClass_ = s;
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
kmsKeyName_ = s;
break;
}
case 146: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (timeStorageClassUpdated_ != null) {
subBuilder = timeStorageClassUpdated_.toBuilder();
}
timeStorageClassUpdated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeStorageClassUpdated_);
timeStorageClassUpdated_ = subBuilder.buildPartial();
}
break;
}
case 152: {
temporaryHold_ = input.readBool();
break;
}
case 162: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (retentionExpirationTime_ != null) {
subBuilder = retentionExpirationTime_.toBuilder();
}
retentionExpirationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(retentionExpirationTime_);
retentionExpirationTime_ = subBuilder.buildPartial();
}
break;
}
case 170: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
break;
}
case 186: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 194: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 202: {
java.lang.String s = input.readStringRequireUtf8();
bucket_ = s;
break;
}
case 208: {
generation_ = input.readInt64();
break;
}
case 226: {
google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.Builder subBuilder = null;
if (customerEncryption_ != null) {
subBuilder = customerEncryption_.toBuilder();
}
customerEncryption_ = input.readMessage(google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(customerEncryption_);
customerEncryption_ = subBuilder.buildPartial();
}
break;
}
case 232: {
eventBasedHold_ = input.readBool();
break;
}
case 802: {
java.lang.String s = input.readStringRequireUtf8();
mediaLink_ = s;
break;
}
case 810: {
java.lang.String s = input.readStringRequireUtf8();
selfLink_ = s;
break;
}
case 818: {
java.lang.String s = input.readStringRequireUtf8();
kind_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return google.events.cloud.storage.v1.Data.internal_static_google_events_cloud_storage_v1_StorageObjectData_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 21:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return google.events.cloud.storage.v1.Data.internal_static_google_events_cloud_storage_v1_StorageObjectData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
google.events.cloud.storage.v1.Data.StorageObjectData.class, google.events.cloud.storage.v1.Data.StorageObjectData.Builder.class);
}
public interface CustomerEncryptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption)
com.google.protobuf.MessageOrBuilder {