-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
reservation.pb.go
executable file
·5251 lines (4819 loc) · 245 KB
/
reservation.pb.go
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 2023 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
//
// http://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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.23.2
// source: google/cloud/bigquery/reservation/v1/reservation.proto
package reservationpb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The type of editions.
// Different features and behaviors are provided to different editions
// Capacity commitments and reservations are linked to editions.
type Edition int32
const (
// Default value, which will be treated as ENTERPRISE.
Edition_EDITION_UNSPECIFIED Edition = 0
// Standard edition.
Edition_STANDARD Edition = 1
// Enterprise edition.
Edition_ENTERPRISE Edition = 2
// Enterprise plus edition.
Edition_ENTERPRISE_PLUS Edition = 3
)
// Enum value maps for Edition.
var (
Edition_name = map[int32]string{
0: "EDITION_UNSPECIFIED",
1: "STANDARD",
2: "ENTERPRISE",
3: "ENTERPRISE_PLUS",
}
Edition_value = map[string]int32{
"EDITION_UNSPECIFIED": 0,
"STANDARD": 1,
"ENTERPRISE": 2,
"ENTERPRISE_PLUS": 3,
}
)
func (x Edition) Enum() *Edition {
p := new(Edition)
*p = x
return p
}
func (x Edition) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Edition) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[0].Descriptor()
}
func (Edition) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[0]
}
func (x Edition) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Edition.Descriptor instead.
func (Edition) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{0}
}
// Commitment plan defines the current committed period. Capacity commitment
// cannot be deleted during it's committed period.
type CapacityCommitment_CommitmentPlan int32
const (
// Invalid plan value. Requests with this value will be rejected with
// error code `google.rpc.Code.INVALID_ARGUMENT`.
CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED CapacityCommitment_CommitmentPlan = 0
// Flex commitments have committed period of 1 minute after becoming ACTIVE.
// After that, they are not in a committed period anymore and can be removed
// any time.
CapacityCommitment_FLEX CapacityCommitment_CommitmentPlan = 3
// Same as FLEX, should only be used if flat-rate commitments are still
// available.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
CapacityCommitment_FLEX_FLAT_RATE CapacityCommitment_CommitmentPlan = 7
// Trial commitments have a committed period of 182 days after becoming
// ACTIVE. After that, they are converted to a new commitment based on the
// `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so
// that it can be deleted right after committed period ends.
CapacityCommitment_TRIAL CapacityCommitment_CommitmentPlan = 5
// Monthly commitments have a committed period of 30 days after becoming
// ACTIVE. After that, they are not in a committed period anymore and can be
// removed any time.
CapacityCommitment_MONTHLY CapacityCommitment_CommitmentPlan = 2
// Same as MONTHLY, should only be used if flat-rate commitments are still
// available.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
CapacityCommitment_MONTHLY_FLAT_RATE CapacityCommitment_CommitmentPlan = 8
// Annual commitments have a committed period of 365 days after becoming
// ACTIVE. After that they are converted to a new commitment based on the
// renewal_plan.
CapacityCommitment_ANNUAL CapacityCommitment_CommitmentPlan = 4
// Same as ANNUAL, should only be used if flat-rate commitments are still
// available.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/reservation/v1/reservation.proto.
CapacityCommitment_ANNUAL_FLAT_RATE CapacityCommitment_CommitmentPlan = 9
// 3-year commitments have a committed period of 1095(3 * 365) days after
// becoming ACTIVE. After that they are converted to a new commitment based
// on the renewal_plan.
CapacityCommitment_THREE_YEAR CapacityCommitment_CommitmentPlan = 10
// Should only be used for `renewal_plan` and is only meaningful if
// edition is specified to values other than EDITION_UNSPECIFIED. Otherwise
// CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will
// be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the
// renewal_plan is NONE, capacity commitment will be removed at the end of
// its commitment period.
CapacityCommitment_NONE CapacityCommitment_CommitmentPlan = 6
)
// Enum value maps for CapacityCommitment_CommitmentPlan.
var (
CapacityCommitment_CommitmentPlan_name = map[int32]string{
0: "COMMITMENT_PLAN_UNSPECIFIED",
3: "FLEX",
7: "FLEX_FLAT_RATE",
5: "TRIAL",
2: "MONTHLY",
8: "MONTHLY_FLAT_RATE",
4: "ANNUAL",
9: "ANNUAL_FLAT_RATE",
10: "THREE_YEAR",
6: "NONE",
}
CapacityCommitment_CommitmentPlan_value = map[string]int32{
"COMMITMENT_PLAN_UNSPECIFIED": 0,
"FLEX": 3,
"FLEX_FLAT_RATE": 7,
"TRIAL": 5,
"MONTHLY": 2,
"MONTHLY_FLAT_RATE": 8,
"ANNUAL": 4,
"ANNUAL_FLAT_RATE": 9,
"THREE_YEAR": 10,
"NONE": 6,
}
)
func (x CapacityCommitment_CommitmentPlan) Enum() *CapacityCommitment_CommitmentPlan {
p := new(CapacityCommitment_CommitmentPlan)
*p = x
return p
}
func (x CapacityCommitment_CommitmentPlan) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CapacityCommitment_CommitmentPlan) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[1].Descriptor()
}
func (CapacityCommitment_CommitmentPlan) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[1]
}
func (x CapacityCommitment_CommitmentPlan) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CapacityCommitment_CommitmentPlan.Descriptor instead.
func (CapacityCommitment_CommitmentPlan) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{1, 0}
}
// Capacity commitment can either become ACTIVE right away or transition
// from PENDING to ACTIVE or FAILED.
type CapacityCommitment_State int32
const (
// Invalid state value.
CapacityCommitment_STATE_UNSPECIFIED CapacityCommitment_State = 0
// Capacity commitment is pending provisioning. Pending capacity commitment
// does not contribute to the project's slot_capacity.
CapacityCommitment_PENDING CapacityCommitment_State = 1
// Once slots are provisioned, capacity commitment becomes active.
// slot_count is added to the project's slot_capacity.
CapacityCommitment_ACTIVE CapacityCommitment_State = 2
// Capacity commitment is failed to be activated by the backend.
CapacityCommitment_FAILED CapacityCommitment_State = 3
)
// Enum value maps for CapacityCommitment_State.
var (
CapacityCommitment_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "ACTIVE",
3: "FAILED",
}
CapacityCommitment_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"ACTIVE": 2,
"FAILED": 3,
}
)
func (x CapacityCommitment_State) Enum() *CapacityCommitment_State {
p := new(CapacityCommitment_State)
*p = x
return p
}
func (x CapacityCommitment_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CapacityCommitment_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[2].Descriptor()
}
func (CapacityCommitment_State) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[2]
}
func (x CapacityCommitment_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CapacityCommitment_State.Descriptor instead.
func (CapacityCommitment_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{1, 1}
}
// Types of job, which could be specified when using the reservation.
type Assignment_JobType int32
const (
// Invalid type. Requests with this value will be rejected with
// error code `google.rpc.Code.INVALID_ARGUMENT`.
Assignment_JOB_TYPE_UNSPECIFIED Assignment_JobType = 0
// Pipeline (load/export) jobs from the project will use the reservation.
Assignment_PIPELINE Assignment_JobType = 1
// Query jobs from the project will use the reservation.
Assignment_QUERY Assignment_JobType = 2
// BigQuery ML jobs that use services external to BigQuery for model
// training. These jobs will not utilize idle slots from other reservations.
Assignment_ML_EXTERNAL Assignment_JobType = 3
// Background jobs that BigQuery runs for the customers in the background.
Assignment_BACKGROUND Assignment_JobType = 4
)
// Enum value maps for Assignment_JobType.
var (
Assignment_JobType_name = map[int32]string{
0: "JOB_TYPE_UNSPECIFIED",
1: "PIPELINE",
2: "QUERY",
3: "ML_EXTERNAL",
4: "BACKGROUND",
}
Assignment_JobType_value = map[string]int32{
"JOB_TYPE_UNSPECIFIED": 0,
"PIPELINE": 1,
"QUERY": 2,
"ML_EXTERNAL": 3,
"BACKGROUND": 4,
}
)
func (x Assignment_JobType) Enum() *Assignment_JobType {
p := new(Assignment_JobType)
*p = x
return p
}
func (x Assignment_JobType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Assignment_JobType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[3].Descriptor()
}
func (Assignment_JobType) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[3]
}
func (x Assignment_JobType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Assignment_JobType.Descriptor instead.
func (Assignment_JobType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{17, 0}
}
// Assignment will remain in PENDING state if no active capacity commitment is
// present. It will become ACTIVE when some capacity commitment becomes
// active.
type Assignment_State int32
const (
// Invalid state value.
Assignment_STATE_UNSPECIFIED Assignment_State = 0
// Queries from assignee will be executed as on-demand, if related
// assignment is pending.
Assignment_PENDING Assignment_State = 1
// Assignment is ready.
Assignment_ACTIVE Assignment_State = 2
)
// Enum value maps for Assignment_State.
var (
Assignment_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "ACTIVE",
}
Assignment_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"ACTIVE": 2,
}
)
func (x Assignment_State) Enum() *Assignment_State {
p := new(Assignment_State)
*p = x
return p
}
func (x Assignment_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Assignment_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[4].Descriptor()
}
func (Assignment_State) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_reservation_v1_reservation_proto_enumTypes[4]
}
func (x Assignment_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Assignment_State.Descriptor instead.
func (Assignment_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{17, 1}
}
// A reservation is a mechanism used to guarantee slots to users.
type Reservation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the reservation, e.g.,
// `projects/*/locations/*/reservations/team1-prod`.
// The reservation_id must only contain lower case alphanumeric characters or
// dashes. It must start with a letter and must not end with a dash. Its
// maximum length is 64 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Minimum slots available to this reservation. A slot is a unit of
// computational power in BigQuery, and serves as the unit of parallelism.
//
// Queries using this reservation might use more slots during runtime if
// ignore_idle_slots is set to false.
//
// If total slot_capacity of the reservation and its siblings
// exceeds the total slot_count of all capacity commitments, the request will
// fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
//
//
// NOTE: for reservations in US or EU multi-regions, slot capacity constraints
// are checked separately for default and auxiliary regions. See
// multi_region_auxiliary flag for more details.
SlotCapacity int64 `protobuf:"varint,2,opt,name=slot_capacity,json=slotCapacity,proto3" json:"slot_capacity,omitempty"`
// If false, any query or pipeline job using this reservation will use idle
// slots from other reservations within the same admin project. If true, a
// query or pipeline job using this reservation will execute with the slot
// capacity specified in the slot_capacity field at most.
IgnoreIdleSlots bool `protobuf:"varint,4,opt,name=ignore_idle_slots,json=ignoreIdleSlots,proto3" json:"ignore_idle_slots,omitempty"`
// The configuration parameters for the auto scaling feature. Note this is an
// alpha feature.
Autoscale *Reservation_Autoscale `protobuf:"bytes,7,opt,name=autoscale,proto3" json:"autoscale,omitempty"`
// Job concurrency target which sets a soft upper bound on the number of jobs
// that can run concurrently in this reservation. This is a soft target due to
// asynchronous nature of the system and various optimizations for small
// queries.
// Default value is 0 which means that concurrency target will be
// automatically computed by the system.
// NOTE: this field is exposed as `target_job_concurrency` in the Information
// Schema, DDL and BQ CLI.
Concurrency int64 `protobuf:"varint,16,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
// Output only. Creation time of the reservation.
CreationTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
// Output only. Last update time of the reservation.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Applicable only for reservations located within one of the BigQuery
// multi-regions (US or EU).
//
// If set to true, this reservation is placed in the organization's
// secondary region which is designated for disaster recovery purposes.
// If false, this reservation is placed in the organization's default region.
//
// NOTE: this is a preview feature. Project must be allow-listed in order to
// set this field.
MultiRegionAuxiliary bool `protobuf:"varint,14,opt,name=multi_region_auxiliary,json=multiRegionAuxiliary,proto3" json:"multi_region_auxiliary,omitempty"`
// Edition of the reservation.
Edition Edition `protobuf:"varint,17,opt,name=edition,proto3,enum=google.cloud.bigquery.reservation.v1.Edition" json:"edition,omitempty"`
}
func (x *Reservation) Reset() {
*x = Reservation{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Reservation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Reservation) ProtoMessage() {}
func (x *Reservation) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Reservation.ProtoReflect.Descriptor instead.
func (*Reservation) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{0}
}
func (x *Reservation) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Reservation) GetSlotCapacity() int64 {
if x != nil {
return x.SlotCapacity
}
return 0
}
func (x *Reservation) GetIgnoreIdleSlots() bool {
if x != nil {
return x.IgnoreIdleSlots
}
return false
}
func (x *Reservation) GetAutoscale() *Reservation_Autoscale {
if x != nil {
return x.Autoscale
}
return nil
}
func (x *Reservation) GetConcurrency() int64 {
if x != nil {
return x.Concurrency
}
return 0
}
func (x *Reservation) GetCreationTime() *timestamppb.Timestamp {
if x != nil {
return x.CreationTime
}
return nil
}
func (x *Reservation) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Reservation) GetMultiRegionAuxiliary() bool {
if x != nil {
return x.MultiRegionAuxiliary
}
return false
}
func (x *Reservation) GetEdition() Edition {
if x != nil {
return x.Edition
}
return Edition_EDITION_UNSPECIFIED
}
// Capacity commitment is a way to purchase compute capacity for BigQuery jobs
// (in the form of slots) with some committed period of usage. Annual
// commitments renew by default. Commitments can be removed after their
// commitment end time passes.
//
// In order to remove annual commitment, its plan needs to be changed
// to monthly or flex first.
//
// A capacity commitment resource exists as a child resource of the admin
// project.
type CapacityCommitment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The resource name of the capacity commitment, e.g.,
// `projects/myproject/locations/US/capacityCommitments/123`
// The commitment_id must only contain lower case alphanumeric characters or
// dashes. It must start with a letter and must not end
// with a dash. Its maximum length is 64 characters.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Number of slots in this commitment.
SlotCount int64 `protobuf:"varint,2,opt,name=slot_count,json=slotCount,proto3" json:"slot_count,omitempty"`
// Capacity commitment commitment plan.
Plan CapacityCommitment_CommitmentPlan `protobuf:"varint,3,opt,name=plan,proto3,enum=google.cloud.bigquery.reservation.v1.CapacityCommitment_CommitmentPlan" json:"plan,omitempty"`
// Output only. State of the commitment.
State CapacityCommitment_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.bigquery.reservation.v1.CapacityCommitment_State" json:"state,omitempty"`
// Output only. The start of the current commitment period. It is applicable
// only for ACTIVE capacity commitments.
CommitmentStartTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=commitment_start_time,json=commitmentStartTime,proto3" json:"commitment_start_time,omitempty"`
// Output only. The end of the current commitment period. It is applicable
// only for ACTIVE capacity commitments.
CommitmentEndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=commitment_end_time,json=commitmentEndTime,proto3" json:"commitment_end_time,omitempty"`
// Output only. For FAILED commitment plan, provides the reason of failure.
FailureStatus *status.Status `protobuf:"bytes,7,opt,name=failure_status,json=failureStatus,proto3" json:"failure_status,omitempty"`
// The plan this capacity commitment is converted to after commitment_end_time
// passes. Once the plan is changed, committed period is extended according to
// commitment plan. Only applicable for ANNUAL and TRIAL commitments.
RenewalPlan CapacityCommitment_CommitmentPlan `protobuf:"varint,8,opt,name=renewal_plan,json=renewalPlan,proto3,enum=google.cloud.bigquery.reservation.v1.CapacityCommitment_CommitmentPlan" json:"renewal_plan,omitempty"`
// Applicable only for commitments located within one of the BigQuery
// multi-regions (US or EU).
//
// If set to true, this commitment is placed in the organization's
// secondary region which is designated for disaster recovery purposes.
// If false, this commitment is placed in the organization's default region.
//
// NOTE: this is a preview feature. Project must be allow-listed in order to
// set this field.
MultiRegionAuxiliary bool `protobuf:"varint,10,opt,name=multi_region_auxiliary,json=multiRegionAuxiliary,proto3" json:"multi_region_auxiliary,omitempty"`
// Edition of the capacity commitment.
Edition Edition `protobuf:"varint,12,opt,name=edition,proto3,enum=google.cloud.bigquery.reservation.v1.Edition" json:"edition,omitempty"`
}
func (x *CapacityCommitment) Reset() {
*x = CapacityCommitment{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CapacityCommitment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CapacityCommitment) ProtoMessage() {}
func (x *CapacityCommitment) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CapacityCommitment.ProtoReflect.Descriptor instead.
func (*CapacityCommitment) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{1}
}
func (x *CapacityCommitment) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CapacityCommitment) GetSlotCount() int64 {
if x != nil {
return x.SlotCount
}
return 0
}
func (x *CapacityCommitment) GetPlan() CapacityCommitment_CommitmentPlan {
if x != nil {
return x.Plan
}
return CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED
}
func (x *CapacityCommitment) GetState() CapacityCommitment_State {
if x != nil {
return x.State
}
return CapacityCommitment_STATE_UNSPECIFIED
}
func (x *CapacityCommitment) GetCommitmentStartTime() *timestamppb.Timestamp {
if x != nil {
return x.CommitmentStartTime
}
return nil
}
func (x *CapacityCommitment) GetCommitmentEndTime() *timestamppb.Timestamp {
if x != nil {
return x.CommitmentEndTime
}
return nil
}
func (x *CapacityCommitment) GetFailureStatus() *status.Status {
if x != nil {
return x.FailureStatus
}
return nil
}
func (x *CapacityCommitment) GetRenewalPlan() CapacityCommitment_CommitmentPlan {
if x != nil {
return x.RenewalPlan
}
return CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED
}
func (x *CapacityCommitment) GetMultiRegionAuxiliary() bool {
if x != nil {
return x.MultiRegionAuxiliary
}
return false
}
func (x *CapacityCommitment) GetEdition() Edition {
if x != nil {
return x.Edition
}
return Edition_EDITION_UNSPECIFIED
}
// The request for
// [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation].
type CreateReservationRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Project, location. E.g.,
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The reservation ID. It must only contain lower case alphanumeric
// characters or dashes. It must start with a letter and must not end
// with a dash. Its maximum length is 64 characters.
ReservationId string `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
// Definition of the new reservation to create.
Reservation *Reservation `protobuf:"bytes,3,opt,name=reservation,proto3" json:"reservation,omitempty"`
}
func (x *CreateReservationRequest) Reset() {
*x = CreateReservationRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateReservationRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateReservationRequest) ProtoMessage() {}
func (x *CreateReservationRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateReservationRequest.ProtoReflect.Descriptor instead.
func (*CreateReservationRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{2}
}
func (x *CreateReservationRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateReservationRequest) GetReservationId() string {
if x != nil {
return x.ReservationId
}
return ""
}
func (x *CreateReservationRequest) GetReservation() *Reservation {
if x != nil {
return x.Reservation
}
return nil
}
// The request for
// [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
type ListReservationsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The parent resource name containing project and location, e.g.:
// `projects/myproject/locations/US`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return per page.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListReservationsRequest) Reset() {
*x = ListReservationsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListReservationsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListReservationsRequest) ProtoMessage() {}
func (x *ListReservationsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListReservationsRequest.ProtoReflect.Descriptor instead.
func (*ListReservationsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{3}
}
func (x *ListReservationsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListReservationsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListReservationsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// The response for
// [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
type ListReservationsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of reservations visible to the user.
Reservations []*Reservation `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListReservationsResponse) Reset() {
*x = ListReservationsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListReservationsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListReservationsResponse) ProtoMessage() {}
func (x *ListReservationsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListReservationsResponse.ProtoReflect.Descriptor instead.
func (*ListReservationsResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{4}
}
func (x *ListReservationsResponse) GetReservations() []*Reservation {
if x != nil {
return x.Reservations
}
return nil
}
func (x *ListReservationsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// The request for
// [ReservationService.GetReservation][google.cloud.bigquery.reservation.v1.ReservationService.GetReservation].
type GetReservationRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Resource name of the reservation to retrieve. E.g.,
// `projects/myproject/locations/US/reservations/team1-prod`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetReservationRequest) Reset() {
*x = GetReservationRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetReservationRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReservationRequest) ProtoMessage() {}
func (x *GetReservationRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReservationRequest.ProtoReflect.Descriptor instead.
func (*GetReservationRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{5}
}
func (x *GetReservationRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// The request for
// [ReservationService.DeleteReservation][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation].
type DeleteReservationRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Resource name of the reservation to retrieve. E.g.,
// `projects/myproject/locations/US/reservations/team1-prod`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteReservationRequest) Reset() {
*x = DeleteReservationRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteReservationRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteReservationRequest) ProtoMessage() {}
func (x *DeleteReservationRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_reservation_v1_reservation_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteReservationRequest.ProtoReflect.Descriptor instead.
func (*DeleteReservationRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_reservation_v1_reservation_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteReservationRequest) GetName() string {