/
data.pb.go
3879 lines (3453 loc) · 158 KB
/
data.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 2022 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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v3.21.6
// source: cloud/metastore/v1/data.proto
package metastoredata
import (
dayofweek "google.golang.org/genproto/googleapis/type/dayofweek"
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"
reflect "reflect"
sync "sync"
)
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 current state of the federation.
type Federation_State int32
const (
// The state of the metastore federation is unknown.
Federation_STATE_UNSPECIFIED Federation_State = 0
// The metastore federation is in the process of being created.
Federation_CREATING Federation_State = 1
// The metastore federation is running and ready to serve queries.
Federation_ACTIVE Federation_State = 2
// The metastore federation is being updated. It remains usable but cannot
// accept additional update requests or be deleted at this time.
Federation_UPDATING Federation_State = 3
// The metastore federation is undergoing deletion. It cannot be used.
Federation_DELETING Federation_State = 4
// The metastore federation has encountered an error and cannot be used. The
// metastore federation should be deleted.
Federation_ERROR Federation_State = 5
)
// Enum value maps for Federation_State.
var (
Federation_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "UPDATING",
4: "DELETING",
5: "ERROR",
}
Federation_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"UPDATING": 3,
"DELETING": 4,
"ERROR": 5,
}
)
func (x Federation_State) Enum() *Federation_State {
p := new(Federation_State)
*p = x
return p
}
func (x Federation_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Federation_State) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[0].Descriptor()
}
func (Federation_State) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[0]
}
func (x Federation_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Federation_State.Descriptor instead.
func (Federation_State) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{0, 0}
}
// The type of the backend metastore.
type BackendMetastore_MetastoreType int32
const (
// The metastore type is not set.
BackendMetastore_METASTORE_TYPE_UNSPECIFIED BackendMetastore_MetastoreType = 0
// The backend metastore is Dataproc Metastore.
BackendMetastore_DATAPROC_METASTORE BackendMetastore_MetastoreType = 3
)
// Enum value maps for BackendMetastore_MetastoreType.
var (
BackendMetastore_MetastoreType_name = map[int32]string{
0: "METASTORE_TYPE_UNSPECIFIED",
3: "DATAPROC_METASTORE",
}
BackendMetastore_MetastoreType_value = map[string]int32{
"METASTORE_TYPE_UNSPECIFIED": 0,
"DATAPROC_METASTORE": 3,
}
)
func (x BackendMetastore_MetastoreType) Enum() *BackendMetastore_MetastoreType {
p := new(BackendMetastore_MetastoreType)
*p = x
return p
}
func (x BackendMetastore_MetastoreType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackendMetastore_MetastoreType) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[1].Descriptor()
}
func (BackendMetastore_MetastoreType) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[1]
}
func (x BackendMetastore_MetastoreType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BackendMetastore_MetastoreType.Descriptor instead.
func (BackendMetastore_MetastoreType) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{1, 0}
}
// The current state of the metastore service.
type Service_State int32
const (
// The state of the metastore service is unknown.
Service_STATE_UNSPECIFIED Service_State = 0
// The metastore service is in the process of being created.
Service_CREATING Service_State = 1
// The metastore service is running and ready to serve queries.
Service_ACTIVE Service_State = 2
// The metastore service is entering suspension. Its query-serving
// availability may cease unexpectedly.
Service_SUSPENDING Service_State = 3
// The metastore service is suspended and unable to serve queries.
Service_SUSPENDED Service_State = 4
// The metastore service is being updated. It remains usable but cannot
// accept additional update requests or be deleted at this time.
Service_UPDATING Service_State = 5
// The metastore service is undergoing deletion. It cannot be used.
Service_DELETING Service_State = 6
// The metastore service has encountered an error and cannot be used. The
// metastore service should be deleted.
Service_ERROR Service_State = 7
)
// Enum value maps for Service_State.
var (
Service_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "SUSPENDING",
4: "SUSPENDED",
5: "UPDATING",
6: "DELETING",
7: "ERROR",
}
Service_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"SUSPENDING": 3,
"SUSPENDED": 4,
"UPDATING": 5,
"DELETING": 6,
"ERROR": 7,
}
)
func (x Service_State) Enum() *Service_State {
p := new(Service_State)
*p = x
return p
}
func (x Service_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Service_State) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[2].Descriptor()
}
func (Service_State) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[2]
}
func (x Service_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Service_State.Descriptor instead.
func (Service_State) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{2, 0}
}
// Available service tiers.
type Service_Tier int32
const (
// The tier is not set.
Service_TIER_UNSPECIFIED Service_Tier = 0
// The developer tier provides limited scalability and no fault tolerance.
// Good for low-cost proof-of-concept.
Service_DEVELOPER Service_Tier = 1
// The enterprise tier provides multi-zone high availability, and sufficient
// scalability for enterprise-level Dataproc Metastore workloads.
Service_ENTERPRISE Service_Tier = 3
)
// Enum value maps for Service_Tier.
var (
Service_Tier_name = map[int32]string{
0: "TIER_UNSPECIFIED",
1: "DEVELOPER",
3: "ENTERPRISE",
}
Service_Tier_value = map[string]int32{
"TIER_UNSPECIFIED": 0,
"DEVELOPER": 1,
"ENTERPRISE": 3,
}
)
func (x Service_Tier) Enum() *Service_Tier {
p := new(Service_Tier)
*p = x
return p
}
func (x Service_Tier) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Service_Tier) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[3].Descriptor()
}
func (Service_Tier) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[3]
}
func (x Service_Tier) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Service_Tier.Descriptor instead.
func (Service_Tier) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{2, 1}
}
// Release channels bundle features of varying levels of stability. Newer
// features may be introduced initially into less stable release channels and
// can be automatically promoted into more stable release channels.
type Service_ReleaseChannel int32
const (
// Release channel is not specified.
Service_RELEASE_CHANNEL_UNSPECIFIED Service_ReleaseChannel = 0
// The `CANARY` release channel contains the newest features, which may be
// unstable and subject to unresolved issues with no known workarounds.
// Services using the `CANARY` release channel are not subject to any SLAs.
Service_CANARY Service_ReleaseChannel = 1
// The `STABLE` release channel contains features that are considered stable
// and have been validated for production use.
Service_STABLE Service_ReleaseChannel = 2
)
// Enum value maps for Service_ReleaseChannel.
var (
Service_ReleaseChannel_name = map[int32]string{
0: "RELEASE_CHANNEL_UNSPECIFIED",
1: "CANARY",
2: "STABLE",
}
Service_ReleaseChannel_value = map[string]int32{
"RELEASE_CHANNEL_UNSPECIFIED": 0,
"CANARY": 1,
"STABLE": 2,
}
)
func (x Service_ReleaseChannel) Enum() *Service_ReleaseChannel {
p := new(Service_ReleaseChannel)
*p = x
return p
}
func (x Service_ReleaseChannel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Service_ReleaseChannel) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[4].Descriptor()
}
func (Service_ReleaseChannel) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[4]
}
func (x Service_ReleaseChannel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Service_ReleaseChannel.Descriptor instead.
func (Service_ReleaseChannel) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{2, 2}
}
// The backend database type for the metastore service.
type Service_DatabaseType int32
const (
// The DATABASE_TYPE is not set.
Service_DATABASE_TYPE_UNSPECIFIED Service_DatabaseType = 0
// MySQL is used to persist the metastore data.
Service_MYSQL Service_DatabaseType = 1
// Spanner is used to persist the metastore data.
Service_SPANNER Service_DatabaseType = 2
)
// Enum value maps for Service_DatabaseType.
var (
Service_DatabaseType_name = map[int32]string{
0: "DATABASE_TYPE_UNSPECIFIED",
1: "MYSQL",
2: "SPANNER",
}
Service_DatabaseType_value = map[string]int32{
"DATABASE_TYPE_UNSPECIFIED": 0,
"MYSQL": 1,
"SPANNER": 2,
}
)
func (x Service_DatabaseType) Enum() *Service_DatabaseType {
p := new(Service_DatabaseType)
*p = x
return p
}
func (x Service_DatabaseType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Service_DatabaseType) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[5].Descriptor()
}
func (Service_DatabaseType) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[5]
}
func (x Service_DatabaseType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Service_DatabaseType.Descriptor instead.
func (Service_DatabaseType) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{2, 3}
}
type TelemetryConfig_LogFormat int32
const (
// The LOG_FORMAT is not set.
TelemetryConfig_LOG_FORMAT_UNSPECIFIED TelemetryConfig_LogFormat = 0
// Logging output uses the legacy `textPayload` format.
TelemetryConfig_LEGACY TelemetryConfig_LogFormat = 1
// Logging output uses the `jsonPayload` format.
TelemetryConfig_JSON TelemetryConfig_LogFormat = 2
)
// Enum value maps for TelemetryConfig_LogFormat.
var (
TelemetryConfig_LogFormat_name = map[int32]string{
0: "LOG_FORMAT_UNSPECIFIED",
1: "LEGACY",
2: "JSON",
}
TelemetryConfig_LogFormat_value = map[string]int32{
"LOG_FORMAT_UNSPECIFIED": 0,
"LEGACY": 1,
"JSON": 2,
}
)
func (x TelemetryConfig_LogFormat) Enum() *TelemetryConfig_LogFormat {
p := new(TelemetryConfig_LogFormat)
*p = x
return p
}
func (x TelemetryConfig_LogFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TelemetryConfig_LogFormat) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[6].Descriptor()
}
func (TelemetryConfig_LogFormat) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[6]
}
func (x TelemetryConfig_LogFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TelemetryConfig_LogFormat.Descriptor instead.
func (TelemetryConfig_LogFormat) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{10, 0}
}
// The current state of the metadata import.
type MetadataImport_State int32
const (
// The state of the metadata import is unknown.
MetadataImport_STATE_UNSPECIFIED MetadataImport_State = 0
// The metadata import is running.
MetadataImport_RUNNING MetadataImport_State = 1
// The metadata import completed successfully.
MetadataImport_SUCCEEDED MetadataImport_State = 2
// The metadata import is being updated.
MetadataImport_UPDATING MetadataImport_State = 3
// The metadata import failed, and attempted metadata changes were rolled
// back.
MetadataImport_FAILED MetadataImport_State = 4
)
// Enum value maps for MetadataImport_State.
var (
MetadataImport_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "RUNNING",
2: "SUCCEEDED",
3: "UPDATING",
4: "FAILED",
}
MetadataImport_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"SUCCEEDED": 2,
"UPDATING": 3,
"FAILED": 4,
}
)
func (x MetadataImport_State) Enum() *MetadataImport_State {
p := new(MetadataImport_State)
*p = x
return p
}
func (x MetadataImport_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MetadataImport_State) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[7].Descriptor()
}
func (MetadataImport_State) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[7]
}
func (x MetadataImport_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MetadataImport_State.Descriptor instead.
func (MetadataImport_State) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{12, 0}
}
// The type of the database.
type MetadataImport_DatabaseDump_DatabaseType int32
const (
// The type of the source database is unknown.
MetadataImport_DatabaseDump_DATABASE_TYPE_UNSPECIFIED MetadataImport_DatabaseDump_DatabaseType = 0
// The type of the source database is MySQL.
MetadataImport_DatabaseDump_MYSQL MetadataImport_DatabaseDump_DatabaseType = 1
)
// Enum value maps for MetadataImport_DatabaseDump_DatabaseType.
var (
MetadataImport_DatabaseDump_DatabaseType_name = map[int32]string{
0: "DATABASE_TYPE_UNSPECIFIED",
1: "MYSQL",
}
MetadataImport_DatabaseDump_DatabaseType_value = map[string]int32{
"DATABASE_TYPE_UNSPECIFIED": 0,
"MYSQL": 1,
}
)
func (x MetadataImport_DatabaseDump_DatabaseType) Enum() *MetadataImport_DatabaseDump_DatabaseType {
p := new(MetadataImport_DatabaseDump_DatabaseType)
*p = x
return p
}
func (x MetadataImport_DatabaseDump_DatabaseType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MetadataImport_DatabaseDump_DatabaseType) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[8].Descriptor()
}
func (MetadataImport_DatabaseDump_DatabaseType) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[8]
}
func (x MetadataImport_DatabaseDump_DatabaseType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MetadataImport_DatabaseDump_DatabaseType.Descriptor instead.
func (MetadataImport_DatabaseDump_DatabaseType) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{12, 0, 0}
}
// The current state of the metadata export.
type MetadataExport_State int32
const (
// The state of the metadata export is unknown.
MetadataExport_STATE_UNSPECIFIED MetadataExport_State = 0
// The metadata export is running.
MetadataExport_RUNNING MetadataExport_State = 1
// The metadata export completed successfully.
MetadataExport_SUCCEEDED MetadataExport_State = 2
// The metadata export failed.
MetadataExport_FAILED MetadataExport_State = 3
// The metadata export is cancelled.
MetadataExport_CANCELLED MetadataExport_State = 4
)
// Enum value maps for MetadataExport_State.
var (
MetadataExport_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "RUNNING",
2: "SUCCEEDED",
3: "FAILED",
4: "CANCELLED",
}
MetadataExport_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"SUCCEEDED": 2,
"FAILED": 3,
"CANCELLED": 4,
}
)
func (x MetadataExport_State) Enum() *MetadataExport_State {
p := new(MetadataExport_State)
*p = x
return p
}
func (x MetadataExport_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MetadataExport_State) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[9].Descriptor()
}
func (MetadataExport_State) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[9]
}
func (x MetadataExport_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MetadataExport_State.Descriptor instead.
func (MetadataExport_State) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{13, 0}
}
// The current state of the backup.
type Backup_State int32
const (
// The state of the backup is unknown.
Backup_STATE_UNSPECIFIED Backup_State = 0
// The backup is being created.
Backup_CREATING Backup_State = 1
// The backup is being deleted.
Backup_DELETING Backup_State = 2
// The backup is active and ready to use.
Backup_ACTIVE Backup_State = 3
// The backup failed.
Backup_FAILED Backup_State = 4
// The backup is being restored.
Backup_RESTORING Backup_State = 5
)
// Enum value maps for Backup_State.
var (
Backup_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "DELETING",
3: "ACTIVE",
4: "FAILED",
5: "RESTORING",
}
Backup_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"DELETING": 2,
"ACTIVE": 3,
"FAILED": 4,
"RESTORING": 5,
}
)
func (x Backup_State) Enum() *Backup_State {
p := new(Backup_State)
*p = x
return p
}
func (x Backup_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Backup_State) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[10].Descriptor()
}
func (Backup_State) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[10]
}
func (x Backup_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Backup_State.Descriptor instead.
func (Backup_State) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{14, 0}
}
// The current state of the restore.
type Restore_State int32
const (
// The state of the metadata restore is unknown.
Restore_STATE_UNSPECIFIED Restore_State = 0
// The metadata restore is running.
Restore_RUNNING Restore_State = 1
// The metadata restore completed successfully.
Restore_SUCCEEDED Restore_State = 2
// The metadata restore failed.
Restore_FAILED Restore_State = 3
// The metadata restore is cancelled.
Restore_CANCELLED Restore_State = 4
)
// Enum value maps for Restore_State.
var (
Restore_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "RUNNING",
2: "SUCCEEDED",
3: "FAILED",
4: "CANCELLED",
}
Restore_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"SUCCEEDED": 2,
"FAILED": 3,
"CANCELLED": 4,
}
)
func (x Restore_State) Enum() *Restore_State {
p := new(Restore_State)
*p = x
return p
}
func (x Restore_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Restore_State) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[11].Descriptor()
}
func (Restore_State) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[11]
}
func (x Restore_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Restore_State.Descriptor instead.
func (Restore_State) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{15, 0}
}
// The type of restore. If unspecified, defaults to `METADATA_ONLY`.
type Restore_RestoreType int32
const (
// The restore type is unknown.
Restore_RESTORE_TYPE_UNSPECIFIED Restore_RestoreType = 0
// The service's metadata and configuration are restored.
Restore_FULL Restore_RestoreType = 1
// Only the service's metadata is restored.
Restore_METADATA_ONLY Restore_RestoreType = 2
)
// Enum value maps for Restore_RestoreType.
var (
Restore_RestoreType_name = map[int32]string{
0: "RESTORE_TYPE_UNSPECIFIED",
1: "FULL",
2: "METADATA_ONLY",
}
Restore_RestoreType_value = map[string]int32{
"RESTORE_TYPE_UNSPECIFIED": 0,
"FULL": 1,
"METADATA_ONLY": 2,
}
)
func (x Restore_RestoreType) Enum() *Restore_RestoreType {
p := new(Restore_RestoreType)
*p = x
return p
}
func (x Restore_RestoreType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Restore_RestoreType) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[12].Descriptor()
}
func (Restore_RestoreType) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[12]
}
func (x Restore_RestoreType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Restore_RestoreType.Descriptor instead.
func (Restore_RestoreType) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{15, 1}
}
// Metastore instance sizes.
type ScalingConfig_InstanceSize int32
const (
// Unspecified instance size
ScalingConfig_INSTANCE_SIZE_UNSPECIFIED ScalingConfig_InstanceSize = 0
// Extra small instance size, maps to a scaling factor of 0.1.
ScalingConfig_EXTRA_SMALL ScalingConfig_InstanceSize = 1
// Small instance size, maps to a scaling factor of 0.5.
ScalingConfig_SMALL ScalingConfig_InstanceSize = 2
// Medium instance size, maps to a scaling factor of 1.0.
ScalingConfig_MEDIUM ScalingConfig_InstanceSize = 3
// Large instance size, maps to a scaling factor of 3.0.
ScalingConfig_LARGE ScalingConfig_InstanceSize = 4
// Extra large instance size, maps to a scaling factor of 6.0.
ScalingConfig_EXTRA_LARGE ScalingConfig_InstanceSize = 5
)
// Enum value maps for ScalingConfig_InstanceSize.
var (
ScalingConfig_InstanceSize_name = map[int32]string{
0: "INSTANCE_SIZE_UNSPECIFIED",
1: "EXTRA_SMALL",
2: "SMALL",
3: "MEDIUM",
4: "LARGE",
5: "EXTRA_LARGE",
}
ScalingConfig_InstanceSize_value = map[string]int32{
"INSTANCE_SIZE_UNSPECIFIED": 0,
"EXTRA_SMALL": 1,
"SMALL": 2,
"MEDIUM": 3,
"LARGE": 4,
"EXTRA_LARGE": 5,
}
)
func (x ScalingConfig_InstanceSize) Enum() *ScalingConfig_InstanceSize {
p := new(ScalingConfig_InstanceSize)
*p = x
return p
}
func (x ScalingConfig_InstanceSize) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ScalingConfig_InstanceSize) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[13].Descriptor()
}
func (ScalingConfig_InstanceSize) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[13]
}
func (x ScalingConfig_InstanceSize) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ScalingConfig_InstanceSize.Descriptor instead.
func (ScalingConfig_InstanceSize) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{16, 0}
}
// The type of the database dump.
type DatabaseDumpSpec_Type int32
const (
// The type of the database dump is unknown.
DatabaseDumpSpec_TYPE_UNSPECIFIED DatabaseDumpSpec_Type = 0
// Database dump is a MySQL dump file.
DatabaseDumpSpec_MYSQL DatabaseDumpSpec_Type = 1
// Database dump contains Avro files.
DatabaseDumpSpec_AVRO DatabaseDumpSpec_Type = 2
)
// Enum value maps for DatabaseDumpSpec_Type.
var (
DatabaseDumpSpec_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "MYSQL",
2: "AVRO",
}
DatabaseDumpSpec_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"MYSQL": 1,
"AVRO": 2,
}
)
func (x DatabaseDumpSpec_Type) Enum() *DatabaseDumpSpec_Type {
p := new(DatabaseDumpSpec_Type)
*p = x
return p
}
func (x DatabaseDumpSpec_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DatabaseDumpSpec_Type) Descriptor() protoreflect.EnumDescriptor {
return file_cloud_metastore_v1_data_proto_enumTypes[14].Descriptor()
}
func (DatabaseDumpSpec_Type) Type() protoreflect.EnumType {
return &file_cloud_metastore_v1_data_proto_enumTypes[14]
}
func (x DatabaseDumpSpec_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DatabaseDumpSpec_Type.Descriptor instead.
func (DatabaseDumpSpec_Type) EnumDescriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{17, 0}
}
// Represents a federation of multiple backend metastores.
type Federation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Immutable. The relative resource name of the federation, of the
// form:
// projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time when the metastore federation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time when the metastore federation was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// User-defined labels for the metastore federation.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Immutable. The Apache Hive metastore version of the federation. All backend
// metastore versions must be compatible with the federation version.
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
// A map from `BackendMetastore` rank to `BackendMetastore`s from which the
// federation service serves metadata at query time. The map key represents
// the order in which `BackendMetastore`s should be evaluated to resolve
// database names at query time and should be greater than or equal to zero. A
// `BackendMetastore` with a lower number will be evaluated before a
// `BackendMetastore` with a higher number.
BackendMetastores map[int32]*BackendMetastore `protobuf:"bytes,6,rep,name=backend_metastores,json=backendMetastores,proto3" json:"backend_metastores,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The federation endpoint.
EndpointUri string `protobuf:"bytes,7,opt,name=endpoint_uri,json=endpointUri,proto3" json:"endpoint_uri,omitempty"`
// Output only. The current state of the federation.
State Federation_State `protobuf:"varint,8,opt,name=state,proto3,enum=google.events.cloud.metastore.v1.Federation_State" json:"state,omitempty"`
// Output only. Additional information about the current state of the
// metastore federation, if available.
StateMessage string `protobuf:"bytes,9,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"`
// Output only. The globally unique resource identifier of the metastore
// federation.
Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"`
}
func (x *Federation) Reset() {
*x = Federation{}
if protoimpl.UnsafeEnabled {
mi := &file_cloud_metastore_v1_data_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Federation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Federation) ProtoMessage() {}
func (x *Federation) ProtoReflect() protoreflect.Message {
mi := &file_cloud_metastore_v1_data_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 Federation.ProtoReflect.Descriptor instead.
func (*Federation) Descriptor() ([]byte, []int) {
return file_cloud_metastore_v1_data_proto_rawDescGZIP(), []int{0}
}
func (x *Federation) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Federation) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil