/
resources.pb.go
executable file
·1391 lines (1254 loc) · 62.3 KB
/
resources.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.33.0
// protoc v4.25.3
// source: google/api/cloudquotas/v1/resources.proto
package cloudquotaspb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
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)
)
// Enumerations of quota safety checks.
type QuotaSafetyCheck int32
const (
// Unspecified quota safety check.
QuotaSafetyCheck_QUOTA_SAFETY_CHECK_UNSPECIFIED QuotaSafetyCheck = 0
// Validates that a quota mutation would not cause the consumer's effective
// limit to be lower than the consumer's quota usage.
QuotaSafetyCheck_QUOTA_DECREASE_BELOW_USAGE QuotaSafetyCheck = 1
// Validates that a quota mutation would not cause the consumer's effective
// limit to decrease by more than 10 percent.
QuotaSafetyCheck_QUOTA_DECREASE_PERCENTAGE_TOO_HIGH QuotaSafetyCheck = 2
)
// Enum value maps for QuotaSafetyCheck.
var (
QuotaSafetyCheck_name = map[int32]string{
0: "QUOTA_SAFETY_CHECK_UNSPECIFIED",
1: "QUOTA_DECREASE_BELOW_USAGE",
2: "QUOTA_DECREASE_PERCENTAGE_TOO_HIGH",
}
QuotaSafetyCheck_value = map[string]int32{
"QUOTA_SAFETY_CHECK_UNSPECIFIED": 0,
"QUOTA_DECREASE_BELOW_USAGE": 1,
"QUOTA_DECREASE_PERCENTAGE_TOO_HIGH": 2,
}
)
func (x QuotaSafetyCheck) Enum() *QuotaSafetyCheck {
p := new(QuotaSafetyCheck)
*p = x
return p
}
func (x QuotaSafetyCheck) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QuotaSafetyCheck) Descriptor() protoreflect.EnumDescriptor {
return file_google_api_cloudquotas_v1_resources_proto_enumTypes[0].Descriptor()
}
func (QuotaSafetyCheck) Type() protoreflect.EnumType {
return &file_google_api_cloudquotas_v1_resources_proto_enumTypes[0]
}
func (x QuotaSafetyCheck) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QuotaSafetyCheck.Descriptor instead.
func (QuotaSafetyCheck) EnumDescriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{0}
}
// The enumeration of the types of a cloud resource container.
type QuotaInfo_ContainerType int32
const (
// Unspecified container type.
QuotaInfo_CONTAINER_TYPE_UNSPECIFIED QuotaInfo_ContainerType = 0
// consumer project
QuotaInfo_PROJECT QuotaInfo_ContainerType = 1
// folder
QuotaInfo_FOLDER QuotaInfo_ContainerType = 2
// organization
QuotaInfo_ORGANIZATION QuotaInfo_ContainerType = 3
)
// Enum value maps for QuotaInfo_ContainerType.
var (
QuotaInfo_ContainerType_name = map[int32]string{
0: "CONTAINER_TYPE_UNSPECIFIED",
1: "PROJECT",
2: "FOLDER",
3: "ORGANIZATION",
}
QuotaInfo_ContainerType_value = map[string]int32{
"CONTAINER_TYPE_UNSPECIFIED": 0,
"PROJECT": 1,
"FOLDER": 2,
"ORGANIZATION": 3,
}
)
func (x QuotaInfo_ContainerType) Enum() *QuotaInfo_ContainerType {
p := new(QuotaInfo_ContainerType)
*p = x
return p
}
func (x QuotaInfo_ContainerType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QuotaInfo_ContainerType) Descriptor() protoreflect.EnumDescriptor {
return file_google_api_cloudquotas_v1_resources_proto_enumTypes[1].Descriptor()
}
func (QuotaInfo_ContainerType) Type() protoreflect.EnumType {
return &file_google_api_cloudquotas_v1_resources_proto_enumTypes[1]
}
func (x QuotaInfo_ContainerType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QuotaInfo_ContainerType.Descriptor instead.
func (QuotaInfo_ContainerType) EnumDescriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{0, 0}
}
// The enumeration of reasons when it is ineligible to request increase
// adjustment.
type QuotaIncreaseEligibility_IneligibilityReason int32
const (
// Default value when is_eligible is true.
QuotaIncreaseEligibility_INELIGIBILITY_REASON_UNSPECIFIED QuotaIncreaseEligibility_IneligibilityReason = 0
// The container is not linked with a valid billing account.
QuotaIncreaseEligibility_NO_VALID_BILLING_ACCOUNT QuotaIncreaseEligibility_IneligibilityReason = 1
// Other reasons.
QuotaIncreaseEligibility_OTHER QuotaIncreaseEligibility_IneligibilityReason = 2
)
// Enum value maps for QuotaIncreaseEligibility_IneligibilityReason.
var (
QuotaIncreaseEligibility_IneligibilityReason_name = map[int32]string{
0: "INELIGIBILITY_REASON_UNSPECIFIED",
1: "NO_VALID_BILLING_ACCOUNT",
2: "OTHER",
}
QuotaIncreaseEligibility_IneligibilityReason_value = map[string]int32{
"INELIGIBILITY_REASON_UNSPECIFIED": 0,
"NO_VALID_BILLING_ACCOUNT": 1,
"OTHER": 2,
}
)
func (x QuotaIncreaseEligibility_IneligibilityReason) Enum() *QuotaIncreaseEligibility_IneligibilityReason {
p := new(QuotaIncreaseEligibility_IneligibilityReason)
*p = x
return p
}
func (x QuotaIncreaseEligibility_IneligibilityReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QuotaIncreaseEligibility_IneligibilityReason) Descriptor() protoreflect.EnumDescriptor {
return file_google_api_cloudquotas_v1_resources_proto_enumTypes[2].Descriptor()
}
func (QuotaIncreaseEligibility_IneligibilityReason) Type() protoreflect.EnumType {
return &file_google_api_cloudquotas_v1_resources_proto_enumTypes[2]
}
func (x QuotaIncreaseEligibility_IneligibilityReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QuotaIncreaseEligibility_IneligibilityReason.Descriptor instead.
func (QuotaIncreaseEligibility_IneligibilityReason) EnumDescriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{1, 0}
}
// The enumeration of the origins of quota preference requests.
type QuotaConfig_Origin int32
const (
// The unspecified value.
QuotaConfig_ORIGIN_UNSPECIFIED QuotaConfig_Origin = 0
// Created through Cloud Console.
QuotaConfig_CLOUD_CONSOLE QuotaConfig_Origin = 1
// Generated by automatic quota adjustment.
QuotaConfig_AUTO_ADJUSTER QuotaConfig_Origin = 2
)
// Enum value maps for QuotaConfig_Origin.
var (
QuotaConfig_Origin_name = map[int32]string{
0: "ORIGIN_UNSPECIFIED",
1: "CLOUD_CONSOLE",
2: "AUTO_ADJUSTER",
}
QuotaConfig_Origin_value = map[string]int32{
"ORIGIN_UNSPECIFIED": 0,
"CLOUD_CONSOLE": 1,
"AUTO_ADJUSTER": 2,
}
)
func (x QuotaConfig_Origin) Enum() *QuotaConfig_Origin {
p := new(QuotaConfig_Origin)
*p = x
return p
}
func (x QuotaConfig_Origin) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QuotaConfig_Origin) Descriptor() protoreflect.EnumDescriptor {
return file_google_api_cloudquotas_v1_resources_proto_enumTypes[3].Descriptor()
}
func (QuotaConfig_Origin) Type() protoreflect.EnumType {
return &file_google_api_cloudquotas_v1_resources_proto_enumTypes[3]
}
func (x QuotaConfig_Origin) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QuotaConfig_Origin.Descriptor instead.
func (QuotaConfig_Origin) EnumDescriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{3, 0}
}
// QuotaInfo represents information about a particular quota for a given
// project, folder or organization.
type QuotaInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource name of this QuotaInfo.
// The ID component following "locations/" must be "global".
// Example:
// `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The id of the quota, which is unquie within the service.
// Example: `CpusPerProjectPerRegion`
QuotaId string `protobuf:"bytes,2,opt,name=quota_id,json=quotaId,proto3" json:"quota_id,omitempty"`
// The metric of the quota. It specifies the resources consumption the quota
// is defined for.
// Example: `compute.googleapis.com/cpus`
Metric string `protobuf:"bytes,3,opt,name=metric,proto3" json:"metric,omitempty"`
// The name of the service in which the quota is defined.
// Example: `compute.googleapis.com`
Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
// Whether this is a precise quota. A precise quota is tracked with absolute
// precision. In contrast, an imprecise quota is not tracked with precision.
IsPrecise bool `protobuf:"varint,5,opt,name=is_precise,json=isPrecise,proto3" json:"is_precise,omitempty"`
// The reset time interval for the quota. Refresh interval applies to rate
// quota only.
// Example: "minute" for per minute, "day" for per day, or "10 seconds" for
// every 10 seconds.
RefreshInterval string `protobuf:"bytes,6,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
// The container type of the QuotaInfo.
ContainerType QuotaInfo_ContainerType `protobuf:"varint,7,opt,name=container_type,json=containerType,proto3,enum=google.api.cloudquotas.v1.QuotaInfo_ContainerType" json:"container_type,omitempty"`
// The dimensions the quota is defined on.
Dimensions []string `protobuf:"bytes,8,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
// The display name of the quota metric
MetricDisplayName string `protobuf:"bytes,9,opt,name=metric_display_name,json=metricDisplayName,proto3" json:"metric_display_name,omitempty"`
// The display name of the quota.
QuotaDisplayName string `protobuf:"bytes,10,opt,name=quota_display_name,json=quotaDisplayName,proto3" json:"quota_display_name,omitempty"`
// The unit in which the metric value is reported, e.g., "MByte".
MetricUnit string `protobuf:"bytes,11,opt,name=metric_unit,json=metricUnit,proto3" json:"metric_unit,omitempty"`
// Whether it is eligible to request a higher quota value for this quota.
QuotaIncreaseEligibility *QuotaIncreaseEligibility `protobuf:"bytes,12,opt,name=quota_increase_eligibility,json=quotaIncreaseEligibility,proto3" json:"quota_increase_eligibility,omitempty"`
// Whether the quota value is fixed or adjustable
IsFixed bool `protobuf:"varint,13,opt,name=is_fixed,json=isFixed,proto3" json:"is_fixed,omitempty"`
// The collection of dimensions info ordered by their dimensions from more
// specific ones to less specific ones.
DimensionsInfos []*DimensionsInfo `protobuf:"bytes,14,rep,name=dimensions_infos,json=dimensionsInfos,proto3" json:"dimensions_infos,omitempty"`
// Whether the quota is a concurrent quota. Concurrent quotas are enforced
// on the total number of concurrent operations in flight at any given time.
IsConcurrent bool `protobuf:"varint,15,opt,name=is_concurrent,json=isConcurrent,proto3" json:"is_concurrent,omitempty"`
// URI to the page where users can request more quota for the cloud
// service—for example,
// https://console.cloud.google.com/iam-admin/quotas.
ServiceRequestQuotaUri string `protobuf:"bytes,17,opt,name=service_request_quota_uri,json=serviceRequestQuotaUri,proto3" json:"service_request_quota_uri,omitempty"`
}
func (x *QuotaInfo) Reset() {
*x = QuotaInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_api_cloudquotas_v1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QuotaInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaInfo) ProtoMessage() {}
func (x *QuotaInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_api_cloudquotas_v1_resources_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 QuotaInfo.ProtoReflect.Descriptor instead.
func (*QuotaInfo) Descriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{0}
}
func (x *QuotaInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *QuotaInfo) GetQuotaId() string {
if x != nil {
return x.QuotaId
}
return ""
}
func (x *QuotaInfo) GetMetric() string {
if x != nil {
return x.Metric
}
return ""
}
func (x *QuotaInfo) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *QuotaInfo) GetIsPrecise() bool {
if x != nil {
return x.IsPrecise
}
return false
}
func (x *QuotaInfo) GetRefreshInterval() string {
if x != nil {
return x.RefreshInterval
}
return ""
}
func (x *QuotaInfo) GetContainerType() QuotaInfo_ContainerType {
if x != nil {
return x.ContainerType
}
return QuotaInfo_CONTAINER_TYPE_UNSPECIFIED
}
func (x *QuotaInfo) GetDimensions() []string {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *QuotaInfo) GetMetricDisplayName() string {
if x != nil {
return x.MetricDisplayName
}
return ""
}
func (x *QuotaInfo) GetQuotaDisplayName() string {
if x != nil {
return x.QuotaDisplayName
}
return ""
}
func (x *QuotaInfo) GetMetricUnit() string {
if x != nil {
return x.MetricUnit
}
return ""
}
func (x *QuotaInfo) GetQuotaIncreaseEligibility() *QuotaIncreaseEligibility {
if x != nil {
return x.QuotaIncreaseEligibility
}
return nil
}
func (x *QuotaInfo) GetIsFixed() bool {
if x != nil {
return x.IsFixed
}
return false
}
func (x *QuotaInfo) GetDimensionsInfos() []*DimensionsInfo {
if x != nil {
return x.DimensionsInfos
}
return nil
}
func (x *QuotaInfo) GetIsConcurrent() bool {
if x != nil {
return x.IsConcurrent
}
return false
}
func (x *QuotaInfo) GetServiceRequestQuotaUri() string {
if x != nil {
return x.ServiceRequestQuotaUri
}
return ""
}
// Eligibility information regarding requesting increase adjustment of a quota.
type QuotaIncreaseEligibility struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether a higher quota value can be requested for the quota.
IsEligible bool `protobuf:"varint,1,opt,name=is_eligible,json=isEligible,proto3" json:"is_eligible,omitempty"`
// The reason of why it is ineligible to request increased value of the quota.
// If the is_eligible field is true, it defaults to
// INELIGIBILITY_REASON_UNSPECIFIED.
IneligibilityReason QuotaIncreaseEligibility_IneligibilityReason `protobuf:"varint,2,opt,name=ineligibility_reason,json=ineligibilityReason,proto3,enum=google.api.cloudquotas.v1.QuotaIncreaseEligibility_IneligibilityReason" json:"ineligibility_reason,omitempty"`
}
func (x *QuotaIncreaseEligibility) Reset() {
*x = QuotaIncreaseEligibility{}
if protoimpl.UnsafeEnabled {
mi := &file_google_api_cloudquotas_v1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QuotaIncreaseEligibility) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaIncreaseEligibility) ProtoMessage() {}
func (x *QuotaIncreaseEligibility) ProtoReflect() protoreflect.Message {
mi := &file_google_api_cloudquotas_v1_resources_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 QuotaIncreaseEligibility.ProtoReflect.Descriptor instead.
func (*QuotaIncreaseEligibility) Descriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{1}
}
func (x *QuotaIncreaseEligibility) GetIsEligible() bool {
if x != nil {
return x.IsEligible
}
return false
}
func (x *QuotaIncreaseEligibility) GetIneligibilityReason() QuotaIncreaseEligibility_IneligibilityReason {
if x != nil {
return x.IneligibilityReason
}
return QuotaIncreaseEligibility_INELIGIBILITY_REASON_UNSPECIFIED
}
// QuotaPreference represents the preferred quota configuration specified for
// a project, folder or organization. There is only one QuotaPreference
// resource for a quota value targeting a unique set of dimensions.
type QuotaPreference struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required except in the CREATE requests.
// The resource name of the quota preference.
// The ID component following "locations/" must be "global".
// Example:
// `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Immutable. The dimensions that this quota preference applies to. The key of
// the map entry is the name of a dimension, such as "region", "zone",
// "network_id", and the value of the map entry is the dimension value.
//
// If a dimension is missing from the map of dimensions, the quota preference
// applies to all the dimension values except for those that have other quota
// preferences configured for the specific value.
//
// NOTE: QuotaPreferences can only be applied across all values of "user" and
// "resource" dimension. Do not set values for "user" or "resource" in the
// dimension map.
//
// Example: {"provider", "Foo Inc"} where "provider" is a service specific
// dimension.
Dimensions map[string]string `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Required. Preferred quota configuration.
QuotaConfig *QuotaConfig `protobuf:"bytes,3,opt,name=quota_config,json=quotaConfig,proto3" json:"quota_config,omitempty"`
// Optional. The current etag of the quota preference. If an etag is provided
// on update and does not match the current server's etag of the quota
// preference, the request will be blocked and an ABORTED error will be
// returned. See https://google.aip.dev/134#etags for more details on etags.
Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. Create time stamp
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time stamp
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Required. The name of the service to which the quota preference is applied.
Service string `protobuf:"bytes,7,opt,name=service,proto3" json:"service,omitempty"`
// Required. The id of the quota to which the quota preference is applied. A
// quota name is unique in the service. Example: `CpusPerProjectPerRegion`
QuotaId string `protobuf:"bytes,8,opt,name=quota_id,json=quotaId,proto3" json:"quota_id,omitempty"`
// Output only. Is the quota preference pending Google Cloud approval and
// fulfillment.
Reconciling bool `protobuf:"varint,10,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
// The reason / justification for this quota preference.
Justification string `protobuf:"bytes,11,opt,name=justification,proto3" json:"justification,omitempty"`
// Input only. An email address that can be used to contact the the user, in
// case Google Cloud needs more information to make a decision before
// additional quota can be granted.
//
// When requesting a quota increase, the email address is required.
// When requesting a quota decrease, the email address is optional.
// For example, the email address is optional when the
// `QuotaConfig.preferred_value` is smaller than the
// `QuotaDetails.reset_value`.
ContactEmail string `protobuf:"bytes,12,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"`
}
func (x *QuotaPreference) Reset() {
*x = QuotaPreference{}
if protoimpl.UnsafeEnabled {
mi := &file_google_api_cloudquotas_v1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QuotaPreference) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaPreference) ProtoMessage() {}
func (x *QuotaPreference) ProtoReflect() protoreflect.Message {
mi := &file_google_api_cloudquotas_v1_resources_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 QuotaPreference.ProtoReflect.Descriptor instead.
func (*QuotaPreference) Descriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{2}
}
func (x *QuotaPreference) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *QuotaPreference) GetDimensions() map[string]string {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *QuotaPreference) GetQuotaConfig() *QuotaConfig {
if x != nil {
return x.QuotaConfig
}
return nil
}
func (x *QuotaPreference) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
func (x *QuotaPreference) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *QuotaPreference) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *QuotaPreference) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *QuotaPreference) GetQuotaId() string {
if x != nil {
return x.QuotaId
}
return ""
}
func (x *QuotaPreference) GetReconciling() bool {
if x != nil {
return x.Reconciling
}
return false
}
func (x *QuotaPreference) GetJustification() string {
if x != nil {
return x.Justification
}
return ""
}
func (x *QuotaPreference) GetContactEmail() string {
if x != nil {
return x.ContactEmail
}
return ""
}
// The preferred quota configuration.
type QuotaConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The preferred value. Must be greater than or equal to -1. If set
// to -1, it means the value is "unlimited".
PreferredValue int64 `protobuf:"varint,1,opt,name=preferred_value,json=preferredValue,proto3" json:"preferred_value,omitempty"`
// Output only. Optional details about the state of this quota preference.
StateDetail string `protobuf:"bytes,2,opt,name=state_detail,json=stateDetail,proto3" json:"state_detail,omitempty"`
// Output only. Granted quota value.
GrantedValue *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=granted_value,json=grantedValue,proto3" json:"granted_value,omitempty"`
// Output only. The trace id that the Google Cloud uses to provision the
// requested quota. This trace id may be used by the client to contact Cloud
// support to track the state of a quota preference request. The trace id is
// only produced for increase requests and is unique for each request. The
// quota decrease requests do not have a trace id.
TraceId string `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
// Optional. The annotations map for clients to store small amounts of
// arbitrary data. Do not put PII or other sensitive information here. See
// https://google.aip.dev/128#annotations
Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The origin of the quota preference request.
RequestOrigin QuotaConfig_Origin `protobuf:"varint,6,opt,name=request_origin,json=requestOrigin,proto3,enum=google.api.cloudquotas.v1.QuotaConfig_Origin" json:"request_origin,omitempty"`
}
func (x *QuotaConfig) Reset() {
*x = QuotaConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_api_cloudquotas_v1_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QuotaConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaConfig) ProtoMessage() {}
func (x *QuotaConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_api_cloudquotas_v1_resources_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 QuotaConfig.ProtoReflect.Descriptor instead.
func (*QuotaConfig) Descriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{3}
}
func (x *QuotaConfig) GetPreferredValue() int64 {
if x != nil {
return x.PreferredValue
}
return 0
}
func (x *QuotaConfig) GetStateDetail() string {
if x != nil {
return x.StateDetail
}
return ""
}
func (x *QuotaConfig) GetGrantedValue() *wrapperspb.Int64Value {
if x != nil {
return x.GrantedValue
}
return nil
}
func (x *QuotaConfig) GetTraceId() string {
if x != nil {
return x.TraceId
}
return ""
}
func (x *QuotaConfig) GetAnnotations() map[string]string {
if x != nil {
return x.Annotations
}
return nil
}
func (x *QuotaConfig) GetRequestOrigin() QuotaConfig_Origin {
if x != nil {
return x.RequestOrigin
}
return QuotaConfig_ORIGIN_UNSPECIFIED
}
// The detailed quota information such as effective quota value for a
// combination of dimensions.
type DimensionsInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The map of dimensions for this dimensions info. The key of a map entry
// is "region", "zone" or the name of a service specific dimension, and the
// value of a map entry is the value of the dimension. If a dimension does
// not appear in the map of dimensions, the dimensions info applies to all
// the dimension values except for those that have another DimenisonInfo
// instance configured for the specific value.
// Example: {"provider" : "Foo Inc"} where "provider" is a service specific
// dimension of a quota.
Dimensions map[string]string `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Quota details for the specified dimensions.
Details *QuotaDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
// The applicable regions or zones of this dimensions info. The field will be
// set to ['global'] for quotas that are not per region or per zone.
// Otherwise, it will be set to the list of locations this dimension info is
// applicable to.
ApplicableLocations []string `protobuf:"bytes,3,rep,name=applicable_locations,json=applicableLocations,proto3" json:"applicable_locations,omitempty"`
}
func (x *DimensionsInfo) Reset() {
*x = DimensionsInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_api_cloudquotas_v1_resources_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DimensionsInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DimensionsInfo) ProtoMessage() {}
func (x *DimensionsInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_api_cloudquotas_v1_resources_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 DimensionsInfo.ProtoReflect.Descriptor instead.
func (*DimensionsInfo) Descriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{4}
}
func (x *DimensionsInfo) GetDimensions() map[string]string {
if x != nil {
return x.Dimensions
}
return nil
}
func (x *DimensionsInfo) GetDetails() *QuotaDetails {
if x != nil {
return x.Details
}
return nil
}
func (x *DimensionsInfo) GetApplicableLocations() []string {
if x != nil {
return x.ApplicableLocations
}
return nil
}
// The quota details for a map of dimensions.
type QuotaDetails struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The value currently in effect and being enforced.
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
// Rollout information of this quota.
// This field is present only if the effective limit will change due to the
// ongoing rollout of the service config.
RolloutInfo *RolloutInfo `protobuf:"bytes,3,opt,name=rollout_info,json=rolloutInfo,proto3" json:"rollout_info,omitempty"`
}
func (x *QuotaDetails) Reset() {
*x = QuotaDetails{}
if protoimpl.UnsafeEnabled {
mi := &file_google_api_cloudquotas_v1_resources_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QuotaDetails) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaDetails) ProtoMessage() {}
func (x *QuotaDetails) ProtoReflect() protoreflect.Message {
mi := &file_google_api_cloudquotas_v1_resources_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 QuotaDetails.ProtoReflect.Descriptor instead.
func (*QuotaDetails) Descriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{5}
}
func (x *QuotaDetails) GetValue() int64 {
if x != nil {
return x.Value
}
return 0
}
func (x *QuotaDetails) GetRolloutInfo() *RolloutInfo {
if x != nil {
return x.RolloutInfo
}
return nil
}
// [Output only] Rollout information of a quota.
type RolloutInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether there is an ongoing rollout for a quota or not.
OngoingRollout bool `protobuf:"varint,1,opt,name=ongoing_rollout,json=ongoingRollout,proto3" json:"ongoing_rollout,omitempty"`
}
func (x *RolloutInfo) Reset() {
*x = RolloutInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_api_cloudquotas_v1_resources_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RolloutInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RolloutInfo) ProtoMessage() {}
func (x *RolloutInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_api_cloudquotas_v1_resources_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 RolloutInfo.ProtoReflect.Descriptor instead.
func (*RolloutInfo) Descriptor() ([]byte, []int) {
return file_google_api_cloudquotas_v1_resources_proto_rawDescGZIP(), []int{6}
}
func (x *RolloutInfo) GetOngoingRollout() bool {
if x != nil {
return x.OngoingRollout
}
return false
}
var File_google_api_cloudquotas_v1_resources_proto protoreflect.FileDescriptor
var file_google_api_cloudquotas_v1_resources_proto_rawDesc = []byte{
0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x6f,
0x75, 0x64, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x71, 0x75, 0x6f,
0x74, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x81, 0x09, 0x0a, 0x09, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x49, 0x6e, 0x66,
0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x5f, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x49, 0x64,
0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,