-
Notifications
You must be signed in to change notification settings - Fork 70
/
BucketOrBuilder.java
1015 lines (988 loc) · 28.5 KB
/
BucketOrBuilder.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
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/storage/v2/storage.proto
package com.google.storage.v2;
public interface BucketOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* <pre>
* Immutable. The name of the bucket.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
* <pre>
* Immutable. The name of the bucket.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
* <pre>
* Output only. The user-chosen part of the bucket name. The `{bucket}` portion of the
* `name` field. For globally unique buckets, this is equal to the "bucket
* name" of other Cloud Storage APIs. Example: "pub".
* </pre>
*
* <code>string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The bucketId.
*/
java.lang.String getBucketId();
/**
*
*
* <pre>
* Output only. The user-chosen part of the bucket name. The `{bucket}` portion of the
* `name` field. For globally unique buckets, this is equal to the "bucket
* name" of other Cloud Storage APIs. Example: "pub".
* </pre>
*
* <code>string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The bytes for bucketId.
*/
com.google.protobuf.ByteString getBucketIdBytes();
/**
*
*
* <pre>
* Immutable. The project which owns this bucket.
* </pre>
*
* <code>
* string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The project.
*/
java.lang.String getProject();
/**
*
*
* <pre>
* Immutable. The project which owns this bucket.
* </pre>
*
* <code>
* string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* </code>
*
* @return The bytes for project.
*/
com.google.protobuf.ByteString getProjectBytes();
/**
*
*
* <pre>
* Output only. The metadata generation of this bucket.
* Attempting to set or update this field will result in a
* [FieldViolation][google.rpc.BadRequest.FieldViolation].
* </pre>
*
* <code>int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The metageneration.
*/
long getMetageneration();
/**
*
*
* <pre>
* Immutable. The location of the bucket. Object data for objects in the bucket resides
* in physical storage within this region. Defaults to `US`. See the
* [https://developers.google.com/storage/docs/concepts-techniques#specifyinglocations"][developer's
* guide] for the authoritative list. Attempting to update this field after
* the bucket is created will result in an error.
* </pre>
*
* <code>string location = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
*
* @return The location.
*/
java.lang.String getLocation();
/**
*
*
* <pre>
* Immutable. The location of the bucket. Object data for objects in the bucket resides
* in physical storage within this region. Defaults to `US`. See the
* [https://developers.google.com/storage/docs/concepts-techniques#specifyinglocations"][developer's
* guide] for the authoritative list. Attempting to update this field after
* the bucket is created will result in an error.
* </pre>
*
* <code>string location = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
*
* @return The bytes for location.
*/
com.google.protobuf.ByteString getLocationBytes();
/**
*
*
* <pre>
* Output only. The location type of the bucket (region, dual-region, multi-region, etc).
* </pre>
*
* <code>string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The locationType.
*/
java.lang.String getLocationType();
/**
*
*
* <pre>
* Output only. The location type of the bucket (region, dual-region, multi-region, etc).
* </pre>
*
* <code>string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The bytes for locationType.
*/
com.google.protobuf.ByteString getLocationTypeBytes();
/**
*
*
* <pre>
* The bucket's default storage class, used whenever no storageClass is
* specified for a newly-created object. This defines how objects in the
* bucket are stored and determines the SLA and the cost of storage.
* If this value is not specified when the bucket is created, it will default
* to `STANDARD`. For more information, see
* https://developers.google.com/storage/docs/storage-classes.
* </pre>
*
* <code>string storage_class = 7;</code>
*
* @return The storageClass.
*/
java.lang.String getStorageClass();
/**
*
*
* <pre>
* The bucket's default storage class, used whenever no storageClass is
* specified for a newly-created object. This defines how objects in the
* bucket are stored and determines the SLA and the cost of storage.
* If this value is not specified when the bucket is created, it will default
* to `STANDARD`. For more information, see
* https://developers.google.com/storage/docs/storage-classes.
* </pre>
*
* <code>string storage_class = 7;</code>
*
* @return The bytes for storageClass.
*/
com.google.protobuf.ByteString getStorageClassBytes();
/**
*
*
* <pre>
* Access controls on the bucket.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.BucketAccessControl acl = 8;</code>
*/
java.util.List<com.google.storage.v2.BucketAccessControl> getAclList();
/**
*
*
* <pre>
* Access controls on the bucket.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.BucketAccessControl acl = 8;</code>
*/
com.google.storage.v2.BucketAccessControl getAcl(int index);
/**
*
*
* <pre>
* Access controls on the bucket.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.BucketAccessControl acl = 8;</code>
*/
int getAclCount();
/**
*
*
* <pre>
* Access controls on the bucket.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.BucketAccessControl acl = 8;</code>
*/
java.util.List<? extends com.google.storage.v2.BucketAccessControlOrBuilder>
getAclOrBuilderList();
/**
*
*
* <pre>
* Access controls on the bucket.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.BucketAccessControl acl = 8;</code>
*/
com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int index);
/**
*
*
* <pre>
* Default access controls to apply to new objects when no ACL is provided.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;</code>
*/
java.util.List<com.google.storage.v2.ObjectAccessControl> getDefaultObjectAclList();
/**
*
*
* <pre>
* Default access controls to apply to new objects when no ACL is provided.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;</code>
*/
com.google.storage.v2.ObjectAccessControl getDefaultObjectAcl(int index);
/**
*
*
* <pre>
* Default access controls to apply to new objects when no ACL is provided.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;</code>
*/
int getDefaultObjectAclCount();
/**
*
*
* <pre>
* Default access controls to apply to new objects when no ACL is provided.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;</code>
*/
java.util.List<? extends com.google.storage.v2.ObjectAccessControlOrBuilder>
getDefaultObjectAclOrBuilderList();
/**
*
*
* <pre>
* Default access controls to apply to new objects when no ACL is provided.
* If iamConfig.uniformBucketLevelAccess is enabled on this bucket,
* requests to set, read, or modify acl is an error.
* </pre>
*
* <code>repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;</code>
*/
com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(int index);
/**
*
*
* <pre>
* The bucket's lifecycle config. See
* [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
* for more information.
* </pre>
*
* <code>.google.storage.v2.Bucket.Lifecycle lifecycle = 10;</code>
*
* @return Whether the lifecycle field is set.
*/
boolean hasLifecycle();
/**
*
*
* <pre>
* The bucket's lifecycle config. See
* [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
* for more information.
* </pre>
*
* <code>.google.storage.v2.Bucket.Lifecycle lifecycle = 10;</code>
*
* @return The lifecycle.
*/
com.google.storage.v2.Bucket.Lifecycle getLifecycle();
/**
*
*
* <pre>
* The bucket's lifecycle config. See
* [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
* for more information.
* </pre>
*
* <code>.google.storage.v2.Bucket.Lifecycle lifecycle = 10;</code>
*/
com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder();
/**
*
*
* <pre>
* Output only. The creation time of the bucket in
* [https://tools.ietf.org/html/rfc3339][RFC 3339] format.
* Attempting to set or update this field will result in a
* [FieldViolation][google.rpc.BadRequest.FieldViolation].
* </pre>
*
* <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return Whether the createTime field is set.
*/
boolean hasCreateTime();
/**
*
*
* <pre>
* Output only. The creation time of the bucket in
* [https://tools.ietf.org/html/rfc3339][RFC 3339] format.
* Attempting to set or update this field will result in a
* [FieldViolation][google.rpc.BadRequest.FieldViolation].
* </pre>
*
* <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return The createTime.
*/
com.google.protobuf.Timestamp getCreateTime();
/**
*
*
* <pre>
* Output only. The creation time of the bucket in
* [https://tools.ietf.org/html/rfc3339][RFC 3339] format.
* Attempting to set or update this field will result in a
* [FieldViolation][google.rpc.BadRequest.FieldViolation].
* </pre>
*
* <code>.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*/
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
/**
*
*
* <pre>
* The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
* (CORS) config.
* </pre>
*
* <code>repeated .google.storage.v2.Bucket.Cors cors = 12;</code>
*/
java.util.List<com.google.storage.v2.Bucket.Cors> getCorsList();
/**
*
*
* <pre>
* The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
* (CORS) config.
* </pre>
*
* <code>repeated .google.storage.v2.Bucket.Cors cors = 12;</code>
*/
com.google.storage.v2.Bucket.Cors getCors(int index);
/**
*
*
* <pre>
* The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
* (CORS) config.
* </pre>
*
* <code>repeated .google.storage.v2.Bucket.Cors cors = 12;</code>
*/
int getCorsCount();
/**
*
*
* <pre>
* The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
* (CORS) config.
* </pre>
*
* <code>repeated .google.storage.v2.Bucket.Cors cors = 12;</code>
*/
java.util.List<? extends com.google.storage.v2.Bucket.CorsOrBuilder> getCorsOrBuilderList();
/**
*
*
* <pre>
* The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
* (CORS) config.
* </pre>
*
* <code>repeated .google.storage.v2.Bucket.Cors cors = 12;</code>
*/
com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index);
/**
*
*
* <pre>
* Output only. The modification time of the bucket.
* Attempting to set or update this field will result in a
* [FieldViolation][google.rpc.BadRequest.FieldViolation].
* </pre>
*
* <code>.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return Whether the updateTime field is set.
*/
boolean hasUpdateTime();
/**
*
*
* <pre>
* Output only. The modification time of the bucket.
* Attempting to set or update this field will result in a
* [FieldViolation][google.rpc.BadRequest.FieldViolation].
* </pre>
*
* <code>.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return The updateTime.
*/
com.google.protobuf.Timestamp getUpdateTime();
/**
*
*
* <pre>
* Output only. The modification time of the bucket.
* Attempting to set or update this field will result in a
* [FieldViolation][google.rpc.BadRequest.FieldViolation].
* </pre>
*
* <code>.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*/
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
/**
*
*
* <pre>
* The default value for event-based hold on newly created objects in this
* bucket. Event-based hold is a way to retain objects indefinitely until an
* event occurs, signified by the
* hold's release. After being released, such objects will be subject to
* bucket-level retention (if any). One sample use case of this flag is for
* banks to hold loan documents for at least 3 years after loan is paid in
* full. Here, bucket-level retention is 3 years and the event is loan being
* paid in full. In this example, these objects will be held intact for any
* number of years until the event has occurred (event-based hold on the
* object is released) and then 3 more years after that. That means retention
* duration of the objects begins from the moment event-based hold
* transitioned from true to false. Objects under event-based hold cannot be
* deleted, overwritten or archived until the hold is removed.
* </pre>
*
* <code>bool default_event_based_hold = 14;</code>
*
* @return The defaultEventBasedHold.
*/
boolean getDefaultEventBasedHold();
/**
*
*
* <pre>
* User-provided labels, in key/value pairs.
* </pre>
*
* <code>map<string, string> labels = 15;</code>
*/
int getLabelsCount();
/**
*
*
* <pre>
* User-provided labels, in key/value pairs.
* </pre>
*
* <code>map<string, string> labels = 15;</code>
*/
boolean containsLabels(java.lang.String key);
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String> getLabels();
/**
*
*
* <pre>
* User-provided labels, in key/value pairs.
* </pre>
*
* <code>map<string, string> labels = 15;</code>
*/
java.util.Map<java.lang.String, java.lang.String> getLabelsMap();
/**
*
*
* <pre>
* User-provided labels, in key/value pairs.
* </pre>
*
* <code>map<string, string> labels = 15;</code>
*/
java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
/**
*
*
* <pre>
* User-provided labels, in key/value pairs.
* </pre>
*
* <code>map<string, string> labels = 15;</code>
*/
java.lang.String getLabelsOrThrow(java.lang.String key);
/**
*
*
* <pre>
* The bucket's website config, controlling how the service behaves
* when accessing bucket contents as a web site. See the
* [https://cloud.google.com/storage/docs/static-website][Static Website
* Examples] for more information.
* </pre>
*
* <code>.google.storage.v2.Bucket.Website website = 16;</code>
*
* @return Whether the website field is set.
*/
boolean hasWebsite();
/**
*
*
* <pre>
* The bucket's website config, controlling how the service behaves
* when accessing bucket contents as a web site. See the
* [https://cloud.google.com/storage/docs/static-website][Static Website
* Examples] for more information.
* </pre>
*
* <code>.google.storage.v2.Bucket.Website website = 16;</code>
*
* @return The website.
*/
com.google.storage.v2.Bucket.Website getWebsite();
/**
*
*
* <pre>
* The bucket's website config, controlling how the service behaves
* when accessing bucket contents as a web site. See the
* [https://cloud.google.com/storage/docs/static-website][Static Website
* Examples] for more information.
* </pre>
*
* <code>.google.storage.v2.Bucket.Website website = 16;</code>
*/
com.google.storage.v2.Bucket.WebsiteOrBuilder getWebsiteOrBuilder();
/**
*
*
* <pre>
* The bucket's versioning config.
* </pre>
*
* <code>.google.storage.v2.Bucket.Versioning versioning = 17;</code>
*
* @return Whether the versioning field is set.
*/
boolean hasVersioning();
/**
*
*
* <pre>
* The bucket's versioning config.
* </pre>
*
* <code>.google.storage.v2.Bucket.Versioning versioning = 17;</code>
*
* @return The versioning.
*/
com.google.storage.v2.Bucket.Versioning getVersioning();
/**
*
*
* <pre>
* The bucket's versioning config.
* </pre>
*
* <code>.google.storage.v2.Bucket.Versioning versioning = 17;</code>
*/
com.google.storage.v2.Bucket.VersioningOrBuilder getVersioningOrBuilder();
/**
*
*
* <pre>
* The bucket's logging config, which defines the destination bucket
* and name prefix (if any) for the current bucket's logs.
* </pre>
*
* <code>.google.storage.v2.Bucket.Logging logging = 18;</code>
*
* @return Whether the logging field is set.
*/
boolean hasLogging();
/**
*
*
* <pre>
* The bucket's logging config, which defines the destination bucket
* and name prefix (if any) for the current bucket's logs.
* </pre>
*
* <code>.google.storage.v2.Bucket.Logging logging = 18;</code>
*
* @return The logging.
*/
com.google.storage.v2.Bucket.Logging getLogging();
/**
*
*
* <pre>
* The bucket's logging config, which defines the destination bucket
* and name prefix (if any) for the current bucket's logs.
* </pre>
*
* <code>.google.storage.v2.Bucket.Logging logging = 18;</code>
*/
com.google.storage.v2.Bucket.LoggingOrBuilder getLoggingOrBuilder();
/**
*
*
* <pre>
* Output only. The owner of the bucket. This is always the project team's owner group.
* </pre>
*
* <code>.google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return Whether the owner field is set.
*/
boolean hasOwner();
/**
*
*
* <pre>
* Output only. The owner of the bucket. This is always the project team's owner group.
* </pre>
*
* <code>.google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The owner.
*/
com.google.storage.v2.Owner getOwner();
/**
*
*
* <pre>
* Output only. The owner of the bucket. This is always the project team's owner group.
* </pre>
*
* <code>.google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder();
/**
*
*
* <pre>
* Encryption config for a bucket.
* </pre>
*
* <code>.google.storage.v2.Bucket.Encryption encryption = 20;</code>
*
* @return Whether the encryption field is set.
*/
boolean hasEncryption();
/**
*
*
* <pre>
* Encryption config for a bucket.
* </pre>
*
* <code>.google.storage.v2.Bucket.Encryption encryption = 20;</code>
*
* @return The encryption.
*/
com.google.storage.v2.Bucket.Encryption getEncryption();
/**
*
*
* <pre>
* Encryption config for a bucket.
* </pre>
*
* <code>.google.storage.v2.Bucket.Encryption encryption = 20;</code>
*/
com.google.storage.v2.Bucket.EncryptionOrBuilder getEncryptionOrBuilder();
/**
*
*
* <pre>
* The bucket's billing config.
* </pre>
*
* <code>.google.storage.v2.Bucket.Billing billing = 21;</code>
*
* @return Whether the billing field is set.
*/
boolean hasBilling();
/**
*
*
* <pre>
* The bucket's billing config.
* </pre>
*
* <code>.google.storage.v2.Bucket.Billing billing = 21;</code>
*
* @return The billing.
*/
com.google.storage.v2.Bucket.Billing getBilling();
/**
*
*
* <pre>
* The bucket's billing config.
* </pre>
*
* <code>.google.storage.v2.Bucket.Billing billing = 21;</code>
*/
com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder();
/**
*
*
* <pre>
* The bucket's retention policy. The retention policy enforces a minimum
* retention time for all objects contained in the bucket, based on their
* creation time. Any attempt to overwrite or delete objects younger than the
* retention period will result in a PERMISSION_DENIED error. An unlocked
* retention policy can be modified or removed from the bucket via a
* storage.buckets.update operation. A locked retention policy cannot be
* removed or shortened in duration for the lifetime of the bucket.
* Attempting to remove or decrease period of a locked retention policy will
* result in a PERMISSION_DENIED error.
* </pre>
*
* <code>.google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;</code>
*
* @return Whether the retentionPolicy field is set.
*/
boolean hasRetentionPolicy();
/**
*
*
* <pre>
* The bucket's retention policy. The retention policy enforces a minimum
* retention time for all objects contained in the bucket, based on their
* creation time. Any attempt to overwrite or delete objects younger than the
* retention period will result in a PERMISSION_DENIED error. An unlocked
* retention policy can be modified or removed from the bucket via a
* storage.buckets.update operation. A locked retention policy cannot be
* removed or shortened in duration for the lifetime of the bucket.
* Attempting to remove or decrease period of a locked retention policy will
* result in a PERMISSION_DENIED error.
* </pre>
*
* <code>.google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;</code>
*
* @return The retentionPolicy.
*/
com.google.storage.v2.Bucket.RetentionPolicy getRetentionPolicy();
/**
*
*
* <pre>
* The bucket's retention policy. The retention policy enforces a minimum
* retention time for all objects contained in the bucket, based on their
* creation time. Any attempt to overwrite or delete objects younger than the
* retention period will result in a PERMISSION_DENIED error. An unlocked
* retention policy can be modified or removed from the bucket via a
* storage.buckets.update operation. A locked retention policy cannot be
* removed or shortened in duration for the lifetime of the bucket.
* Attempting to remove or decrease period of a locked retention policy will
* result in a PERMISSION_DENIED error.
* </pre>
*
* <code>.google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;</code>
*/
com.google.storage.v2.Bucket.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder();
/**
*
*
* <pre>
* The bucket's IAM config.
* </pre>
*
* <code>.google.storage.v2.Bucket.IamConfig iam_config = 23;</code>
*
* @return Whether the iamConfig field is set.
*/
boolean hasIamConfig();
/**
*
*
* <pre>
* The bucket's IAM config.
* </pre>
*
* <code>.google.storage.v2.Bucket.IamConfig iam_config = 23;</code>
*
* @return The iamConfig.
*/
com.google.storage.v2.Bucket.IamConfig getIamConfig();
/**
*
*
* <pre>
* The bucket's IAM config.
* </pre>
*
* <code>.google.storage.v2.Bucket.IamConfig iam_config = 23;</code>
*/
com.google.storage.v2.Bucket.IamConfigOrBuilder getIamConfigOrBuilder();
/**
*
*
* <pre>
* Immutable. The zone or zones from which the bucket is intended to use zonal quota.
* Requests for data from outside the specified affinities are still allowed
* but won't be able to use zonal quota. The values are case-insensitive.
* Attempting to update this field after bucket is created will result in an
* error.
* </pre>
*
* <code>
* repeated string zone_affinity = 24 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return A list containing the zoneAffinity.
*/
@java.lang.Deprecated
java.util.List<java.lang.String> getZoneAffinityList();
/**
*
*
* <pre>
* Immutable. The zone or zones from which the bucket is intended to use zonal quota.
* Requests for data from outside the specified affinities are still allowed
* but won't be able to use zonal quota. The values are case-insensitive.
* Attempting to update this field after bucket is created will result in an
* error.
* </pre>
*
* <code>
* repeated string zone_affinity = 24 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return The count of zoneAffinity.
*/
@java.lang.Deprecated
int getZoneAffinityCount();
/**
*
*
* <pre>
* Immutable. The zone or zones from which the bucket is intended to use zonal quota.
* Requests for data from outside the specified affinities are still allowed
* but won't be able to use zonal quota. The values are case-insensitive.
* Attempting to update this field after bucket is created will result in an
* error.
* </pre>
*
* <code>
* repeated string zone_affinity = 24 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @param index The index of the element to return.
* @return The zoneAffinity at the given index.
*/
@java.lang.Deprecated
java.lang.String getZoneAffinity(int index);
/**
*
*
* <pre>
* Immutable. The zone or zones from which the bucket is intended to use zonal quota.
* Requests for data from outside the specified affinities are still allowed
* but won't be able to use zonal quota. The values are case-insensitive.
* Attempting to update this field after bucket is created will result in an
* error.
* </pre>
*
* <code>
* repeated string zone_affinity = 24 [deprecated = true, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @param index The index of the value to return.
* @return The bytes of the zoneAffinity at the given index.
*/
@java.lang.Deprecated