-
Notifications
You must be signed in to change notification settings - Fork 197
/
schema.pb.go
1768 lines (1586 loc) · 71.6 KB
/
schema.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.28.1
// protoc v3.12.4
// source: mockgcp/pubsub/v1/schema.proto
package pubsubpb
import (
empty "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// View of Schema object fields to be returned by GetSchema and ListSchemas.
type SchemaView int32
const (
// The default / unset value.
// The API will default to the BASIC view.
SchemaView_SCHEMA_VIEW_UNSPECIFIED SchemaView = 0
// Include the name and type of the schema, but not the definition.
SchemaView_BASIC SchemaView = 1
// Include all Schema object fields.
SchemaView_FULL SchemaView = 2
)
// Enum value maps for SchemaView.
var (
SchemaView_name = map[int32]string{
0: "SCHEMA_VIEW_UNSPECIFIED",
1: "BASIC",
2: "FULL",
}
SchemaView_value = map[string]int32{
"SCHEMA_VIEW_UNSPECIFIED": 0,
"BASIC": 1,
"FULL": 2,
}
)
func (x SchemaView) Enum() *SchemaView {
p := new(SchemaView)
*p = x
return p
}
func (x SchemaView) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SchemaView) Descriptor() protoreflect.EnumDescriptor {
return file_mockgcp_pubsub_v1_schema_proto_enumTypes[0].Descriptor()
}
func (SchemaView) Type() protoreflect.EnumType {
return &file_mockgcp_pubsub_v1_schema_proto_enumTypes[0]
}
func (x SchemaView) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SchemaView.Descriptor instead.
func (SchemaView) EnumDescriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{0}
}
// Possible encoding types for messages.
type Encoding int32
const (
// Unspecified
Encoding_ENCODING_UNSPECIFIED Encoding = 0
// JSON encoding
Encoding_JSON Encoding = 1
// Binary encoding, as defined by the schema type. For some schema types,
// binary encoding may not be available.
Encoding_BINARY Encoding = 2
)
// Enum value maps for Encoding.
var (
Encoding_name = map[int32]string{
0: "ENCODING_UNSPECIFIED",
1: "JSON",
2: "BINARY",
}
Encoding_value = map[string]int32{
"ENCODING_UNSPECIFIED": 0,
"JSON": 1,
"BINARY": 2,
}
)
func (x Encoding) Enum() *Encoding {
p := new(Encoding)
*p = x
return p
}
func (x Encoding) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Encoding) Descriptor() protoreflect.EnumDescriptor {
return file_mockgcp_pubsub_v1_schema_proto_enumTypes[1].Descriptor()
}
func (Encoding) Type() protoreflect.EnumType {
return &file_mockgcp_pubsub_v1_schema_proto_enumTypes[1]
}
func (x Encoding) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Encoding.Descriptor instead.
func (Encoding) EnumDescriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{1}
}
// Possible schema definition types.
type Schema_Type int32
const (
// Default value. This value is unused.
Schema_TYPE_UNSPECIFIED Schema_Type = 0
// A Protocol Buffer schema definition.
Schema_PROTOCOL_BUFFER Schema_Type = 1
// An Avro schema definition.
Schema_AVRO Schema_Type = 2
)
// Enum value maps for Schema_Type.
var (
Schema_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "PROTOCOL_BUFFER",
2: "AVRO",
}
Schema_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"PROTOCOL_BUFFER": 1,
"AVRO": 2,
}
)
func (x Schema_Type) Enum() *Schema_Type {
p := new(Schema_Type)
*p = x
return p
}
func (x Schema_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Schema_Type) Descriptor() protoreflect.EnumDescriptor {
return file_mockgcp_pubsub_v1_schema_proto_enumTypes[2].Descriptor()
}
func (Schema_Type) Type() protoreflect.EnumType {
return &file_mockgcp_pubsub_v1_schema_proto_enumTypes[2]
}
func (x Schema_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Schema_Type.Descriptor instead.
func (Schema_Type) EnumDescriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{0, 0}
}
// A schema resource.
type Schema struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Name of the schema.
// Format is `projects/{project}/schemas/{schema}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The type of the schema definition.
Type Schema_Type `protobuf:"varint,2,opt,name=type,proto3,enum=mockgcp.pubsub.v1.Schema_Type" json:"type,omitempty"`
// The definition of the schema. This should contain a string representing
// the full definition of the schema that is a valid schema definition of
// the type specified in `type`.
Definition string `protobuf:"bytes,3,opt,name=definition,proto3" json:"definition,omitempty"`
// Output only. Immutable. The revision ID of the schema.
RevisionId string `protobuf:"bytes,4,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
// Output only. The timestamp that the revision was created.
RevisionCreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"`
}
func (x *Schema) Reset() {
*x = Schema{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Schema) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Schema) ProtoMessage() {}
func (x *Schema) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_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 Schema.ProtoReflect.Descriptor instead.
func (*Schema) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{0}
}
func (x *Schema) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Schema) GetType() Schema_Type {
if x != nil {
return x.Type
}
return Schema_TYPE_UNSPECIFIED
}
func (x *Schema) GetDefinition() string {
if x != nil {
return x.Definition
}
return ""
}
func (x *Schema) GetRevisionId() string {
if x != nil {
return x.RevisionId
}
return ""
}
func (x *Schema) GetRevisionCreateTime() *timestamp.Timestamp {
if x != nil {
return x.RevisionCreateTime
}
return nil
}
// Request for the CreateSchema method.
type CreateSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the project in which to create the schema.
// Format is `projects/{project-id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The schema object to create.
//
// This schema's `name` parameter is ignored. The schema object returned
// by CreateSchema will have a `name` made using the given `parent` and
// `schema_id`.
Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
// The ID to use for the schema, which will become the final component of
// the schema's resource name.
//
// See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for
// resource name constraints.
SchemaId string `protobuf:"bytes,3,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
}
func (x *CreateSchemaRequest) Reset() {
*x = CreateSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateSchemaRequest) ProtoMessage() {}
func (x *CreateSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_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 CreateSchemaRequest.ProtoReflect.Descriptor instead.
func (*CreateSchemaRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{1}
}
func (x *CreateSchemaRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateSchemaRequest) GetSchema() *Schema {
if x != nil {
return x.Schema
}
return nil
}
func (x *CreateSchemaRequest) GetSchemaId() string {
if x != nil {
return x.SchemaId
}
return ""
}
// Request for the GetSchema method.
type GetSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the schema to get.
// Format is `projects/{project}/schemas/{schema}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The set of fields to return in the response. If not set, returns a Schema
// with all fields filled out. Set to `BASIC` to omit the `definition`.
View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=mockgcp.pubsub.v1.SchemaView" json:"view,omitempty"`
}
func (x *GetSchemaRequest) Reset() {
*x = GetSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSchemaRequest) ProtoMessage() {}
func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_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 GetSchemaRequest.ProtoReflect.Descriptor instead.
func (*GetSchemaRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{2}
}
func (x *GetSchemaRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GetSchemaRequest) GetView() SchemaView {
if x != nil {
return x.View
}
return SchemaView_SCHEMA_VIEW_UNSPECIFIED
}
// Request for the `ListSchemas` method.
type ListSchemasRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the project in which to list schemas.
// Format is `projects/{project-id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The set of Schema fields to return in the response. If not set, returns
// Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
// retrieve all fields.
View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=mockgcp.pubsub.v1.SchemaView" json:"view,omitempty"`
// Maximum number of schemas to return.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The value returned by the last `ListSchemasResponse`; indicates that
// this is a continuation of a prior `ListSchemas` call, and that the
// system should return the next page of data.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListSchemasRequest) Reset() {
*x = ListSchemasRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSchemasRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSchemasRequest) ProtoMessage() {}
func (x *ListSchemasRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_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 ListSchemasRequest.ProtoReflect.Descriptor instead.
func (*ListSchemasRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{3}
}
func (x *ListSchemasRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListSchemasRequest) GetView() SchemaView {
if x != nil {
return x.View
}
return SchemaView_SCHEMA_VIEW_UNSPECIFIED
}
func (x *ListSchemasRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListSchemasRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// Response for the `ListSchemas` method.
type ListSchemasResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resulting schemas.
Schemas []*Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
// If not empty, indicates that there may be more schemas that match the
// request; this value should be passed in a new `ListSchemasRequest`.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListSchemasResponse) Reset() {
*x = ListSchemasResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSchemasResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSchemasResponse) ProtoMessage() {}
func (x *ListSchemasResponse) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_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 ListSchemasResponse.ProtoReflect.Descriptor instead.
func (*ListSchemasResponse) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{4}
}
func (x *ListSchemasResponse) GetSchemas() []*Schema {
if x != nil {
return x.Schemas
}
return nil
}
func (x *ListSchemasResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Request for the `ListSchemaRevisions` method.
type ListSchemaRevisionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the schema to list revisions for.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The set of Schema fields to return in the response. If not set, returns
// Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
// retrieve all fields.
View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=mockgcp.pubsub.v1.SchemaView" json:"view,omitempty"`
// The maximum number of revisions to return per page.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The page token, received from a previous ListSchemaRevisions call.
// Provide this to retrieve the subsequent page.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListSchemaRevisionsRequest) Reset() {
*x = ListSchemaRevisionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSchemaRevisionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSchemaRevisionsRequest) ProtoMessage() {}
func (x *ListSchemaRevisionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_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 ListSchemaRevisionsRequest.ProtoReflect.Descriptor instead.
func (*ListSchemaRevisionsRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{5}
}
func (x *ListSchemaRevisionsRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ListSchemaRevisionsRequest) GetView() SchemaView {
if x != nil {
return x.View
}
return SchemaView_SCHEMA_VIEW_UNSPECIFIED
}
func (x *ListSchemaRevisionsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListSchemaRevisionsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// Response for the `ListSchemaRevisions` method.
type ListSchemaRevisionsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The revisions of the schema.
Schemas []*Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
// A token that can be sent as `page_token` to retrieve the next page.
// If this field is empty, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListSchemaRevisionsResponse) Reset() {
*x = ListSchemaRevisionsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListSchemaRevisionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSchemaRevisionsResponse) ProtoMessage() {}
func (x *ListSchemaRevisionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_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 ListSchemaRevisionsResponse.ProtoReflect.Descriptor instead.
func (*ListSchemaRevisionsResponse) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{6}
}
func (x *ListSchemaRevisionsResponse) GetSchemas() []*Schema {
if x != nil {
return x.Schemas
}
return nil
}
func (x *ListSchemaRevisionsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Request for CommitSchema method.
type CommitSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the schema we are revising.
// Format is `projects/{project}/schemas/{schema}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The schema revision to commit.
Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
}
func (x *CommitSchemaRequest) Reset() {
*x = CommitSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CommitSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CommitSchemaRequest) ProtoMessage() {}
func (x *CommitSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[7]
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 CommitSchemaRequest.ProtoReflect.Descriptor instead.
func (*CommitSchemaRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{7}
}
func (x *CommitSchemaRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CommitSchemaRequest) GetSchema() *Schema {
if x != nil {
return x.Schema
}
return nil
}
// Request for the `RollbackSchema` method.
type RollbackSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The schema being rolled back with revision id.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The revision ID to roll back to.
// It must be a revision of the same schema.
//
// Example: c7cfa2a8
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
}
func (x *RollbackSchemaRequest) Reset() {
*x = RollbackSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RollbackSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RollbackSchemaRequest) ProtoMessage() {}
func (x *RollbackSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[8]
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 RollbackSchemaRequest.ProtoReflect.Descriptor instead.
func (*RollbackSchemaRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{8}
}
func (x *RollbackSchemaRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RollbackSchemaRequest) GetRevisionId() string {
if x != nil {
return x.RevisionId
}
return ""
}
// Request for the `DeleteSchemaRevision` method.
type DeleteSchemaRevisionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the schema revision to be deleted, with a revision ID
// explicitly included.
//
// Example: `projects/123/schemas/my-schema@c7cfa2a8`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. This field is deprecated and should not be used for specifying
// the revision ID. The revision ID should be specified via the `name`
// parameter.
//
// Deprecated: Do not use.
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
}
func (x *DeleteSchemaRevisionRequest) Reset() {
*x = DeleteSchemaRevisionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteSchemaRevisionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteSchemaRevisionRequest) ProtoMessage() {}
func (x *DeleteSchemaRevisionRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[9]
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 DeleteSchemaRevisionRequest.ProtoReflect.Descriptor instead.
func (*DeleteSchemaRevisionRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{9}
}
func (x *DeleteSchemaRevisionRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Deprecated: Do not use.
func (x *DeleteSchemaRevisionRequest) GetRevisionId() string {
if x != nil {
return x.RevisionId
}
return ""
}
// Request for the `DeleteSchema` method.
type DeleteSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Name of the schema to delete.
// Format is `projects/{project}/schemas/{schema}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteSchemaRequest) Reset() {
*x = DeleteSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteSchemaRequest) ProtoMessage() {}
func (x *DeleteSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[10]
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 DeleteSchemaRequest.ProtoReflect.Descriptor instead.
func (*DeleteSchemaRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{10}
}
func (x *DeleteSchemaRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Request for the `ValidateSchema` method.
type ValidateSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the project in which to validate schemas.
// Format is `projects/{project-id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The schema object to validate.
Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
}
func (x *ValidateSchemaRequest) Reset() {
*x = ValidateSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ValidateSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ValidateSchemaRequest) ProtoMessage() {}
func (x *ValidateSchemaRequest) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_pubsub_v1_schema_proto_msgTypes[11]
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 ValidateSchemaRequest.ProtoReflect.Descriptor instead.
func (*ValidateSchemaRequest) Descriptor() ([]byte, []int) {
return file_mockgcp_pubsub_v1_schema_proto_rawDescGZIP(), []int{11}
}
func (x *ValidateSchemaRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ValidateSchemaRequest) GetSchema() *Schema {
if x != nil {
return x.Schema
}
return nil
}
// Response for the `ValidateSchema` method.
// Empty for now.
type ValidateSchemaResponse struct {