forked from infobloxopen/protoc-gen-gorm
/
demo_types.pb.go
1563 lines (1397 loc) · 59.8 KB
/
demo_types.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc (unknown)
// source: feature_demo/demo_types.proto
package example
import (
_ "github.com/KenanHH/protoc-gen-gorm/example/postgres_arrays"
user "github.com/KenanHH/protoc-gen-gorm/example/user"
_ "github.com/KenanHH/protoc-gen-gorm/options"
types "github.com/KenanHH/protoc-gen-gorm/types"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
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)
)
// enums are mapped to the their underlying numeric value in the db.
// This is practical from an API perspective, but tougher for debugging.
// Strings with validation constraints can be used instead if desired
type TestTypesStatus int32
const (
TestTypes_UNKNOWN TestTypesStatus = 0
TestTypes_GOOD TestTypesStatus = 1
TestTypes_BAD TestTypesStatus = 2
)
// Enum value maps for TestTypesStatus.
var (
TestTypesStatus_name = map[int32]string{
0: "UNKNOWN",
1: "GOOD",
2: "BAD",
}
TestTypesStatus_value = map[string]int32{
"UNKNOWN": 0,
"GOOD": 1,
"BAD": 2,
}
)
func (x TestTypesStatus) Enum() *TestTypesStatus {
p := new(TestTypesStatus)
*p = x
return p
}
func (x TestTypesStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TestTypesStatus) Descriptor() protoreflect.EnumDescriptor {
return file_feature_demo_demo_types_proto_enumTypes[0].Descriptor()
}
func (TestTypesStatus) Type() protoreflect.EnumType {
return &file_feature_demo_demo_types_proto_enumTypes[0]
}
func (x TestTypesStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TestTypesStatus.Descriptor instead.
func (TestTypesStatus) EnumDescriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{0, 0}
}
// test_types is a message that includes a representative sample of the
// available types
type TestTypes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// the (gorm.field).drop option allows for setting a field to be API only
ApiOnlyString string `protobuf:"bytes,1,opt,name=api_only_string,json=apiOnlyString,proto3" json:"api_only_string,omitempty"`
// repeated raw types are currently unsupported, so this field will be dropped
// at the ORM level
Numbers []int32 `protobuf:"varint,2,rep,packed,name=numbers,proto3" json:"numbers,omitempty"`
// a StringValue represents a Nullable string
OptionalString *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=optional_string,json=optionalString,proto3" json:"optional_string,omitempty"`
BecomesInt TestTypesStatus `protobuf:"varint,4,opt,name=becomes_int,json=becomesInt,proto3,enum=example.TestTypesStatus" json:"becomes_int,omitempty"`
// The Empty type serves no purpose outside of rpc calls and is dropped
// automatically from objects
Nothingness *emptypb.Empty `protobuf:"bytes,5,opt,name=nothingness,proto3" json:"nothingness,omitempty"`
// The UUID custom type should act like a StringValue at the API level, but is
// automatically converted to and from a uuid.UUID (github.com/satori/go.uuid)
Uuid *types.UUID `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Timestamps convert to golang's time.Time type, and created_at and
// updated_at values are automatically filled by GORM
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Duration convert to golang's time.Duration type.
Duration *durationpb.Duration `protobuf:"bytes,8,opt,name=duration,proto3" json:"duration,omitempty"`
// This represents a foreign key to the 'type_with_id' type for associations
// This could be hidden from the API (or soon autogenerated).
TypeWithIdId uint32 `protobuf:"varint,9,opt,name=type_with_id_id,json=typeWithIdId,proto3" json:"type_with_id_id,omitempty"`
// This is an arbitrary JSON string that is marshalled and unmarshalled
// specially in grpc-gateway as a JSON object
JsonField *types.JSONValue `protobuf:"bytes,10,opt,name=json_field,json=jsonField,proto3" json:"json_field,omitempty"`
// The UUIDValue custom type should act like a StringValue at the API level, but is
// automatically converted to and from a *uuid.UUID (github.com/satori/go.uuid)
NullableUuid *types.UUIDValue `protobuf:"bytes,11,opt,name=nullable_uuid,json=nullableUuid,proto3" json:"nullable_uuid,omitempty"`
// The TimeOnly should act as uint32 value at business layer, but is automatically
// converted to/from string at API and ORM level
TimeOnly *types.TimeOnly `protobuf:"bytes,12,opt,name=time_only,json=timeOnly,proto3" json:"time_only,omitempty"`
Bigint *types.BigInt `protobuf:"bytes,13,opt,name=bigint,proto3" json:"bigint,omitempty"`
// Repeated non-ormable objects are currently treated as single entity for
// purposes of an object's field masking
SeveralValues []*types.JSONValue `protobuf:"bytes,14,rep,name=several_values,json=severalValues,proto3" json:"several_values,omitempty"`
}
func (x *TestTypes) Reset() {
*x = TestTypes{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestTypes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestTypes) ProtoMessage() {}
func (x *TestTypes) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 TestTypes.ProtoReflect.Descriptor instead.
func (*TestTypes) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{0}
}
func (x *TestTypes) GetApiOnlyString() string {
if x != nil {
return x.ApiOnlyString
}
return ""
}
func (x *TestTypes) GetNumbers() []int32 {
if x != nil {
return x.Numbers
}
return nil
}
func (x *TestTypes) GetOptionalString() *wrapperspb.StringValue {
if x != nil {
return x.OptionalString
}
return nil
}
func (x *TestTypes) GetBecomesInt() TestTypesStatus {
if x != nil {
return x.BecomesInt
}
return TestTypes_UNKNOWN
}
func (x *TestTypes) GetNothingness() *emptypb.Empty {
if x != nil {
return x.Nothingness
}
return nil
}
func (x *TestTypes) GetUuid() *types.UUID {
if x != nil {
return x.Uuid
}
return nil
}
func (x *TestTypes) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *TestTypes) GetDuration() *durationpb.Duration {
if x != nil {
return x.Duration
}
return nil
}
func (x *TestTypes) GetTypeWithIdId() uint32 {
if x != nil {
return x.TypeWithIdId
}
return 0
}
func (x *TestTypes) GetJsonField() *types.JSONValue {
if x != nil {
return x.JsonField
}
return nil
}
func (x *TestTypes) GetNullableUuid() *types.UUIDValue {
if x != nil {
return x.NullableUuid
}
return nil
}
func (x *TestTypes) GetTimeOnly() *types.TimeOnly {
if x != nil {
return x.TimeOnly
}
return nil
}
func (x *TestTypes) GetBigint() *types.BigInt {
if x != nil {
return x.Bigint
}
return nil
}
func (x *TestTypes) GetSeveralValues() []*types.JSONValue {
if x != nil {
return x.SeveralValues
}
return nil
}
// TypeWithID demonstrates some basic association behavior
type TypeWithID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// any field named 'id' is assumed by gorm to be the primary key for the
// object.
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// The field option also allows arbitrary tag setting, such as informing
// gorm of a primary key, different column names or different types in the db
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
// A default has-many relationship, will error on generation if no FK field,
// convention {typename}_id, is present. These FK fields will be automatically
// populated on create and update.
Things []*TestTypes `protobuf:"bytes,3,rep,name=things,proto3" json:"things,omitempty"`
// A default has-one relationship, will error as above
ANestedObject *TestTypes `protobuf:"bytes,4,opt,name=a_nested_object,json=aNestedObject,proto3" json:"a_nested_object,omitempty"`
// An in-package and cross-package imported type (in-package can use any
// association type, cross-package is limited to belongs_to and many_to_many)
Point *IntPoint `protobuf:"bytes,5,opt,name=point,proto3" json:"point,omitempty"`
User *user.User `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"`
Address *types.InetValue `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
MultiaccountTypeIds []uint32 `protobuf:"varint,8,rep,packed,name=multiaccount_type_ids,json=multiaccountTypeIds,proto3" json:"multiaccount_type_ids,omitempty"`
SyntheticField *APIOnlyType `protobuf:"bytes,9,opt,name=synthetic_field,json=syntheticField,proto3" json:"synthetic_field,omitempty"`
TagTest float32 `protobuf:"fixed32,10,opt,name=tag_test,json=tagTest,proto3" json:"tag_test,omitempty"`
TagSizeTest string `protobuf:"bytes,11,opt,name=tag_size_test,json=tagSizeTest,proto3" json:"tag_size_test,omitempty"`
FloatField *wrapperspb.FloatValue `protobuf:"bytes,12,opt,name=float_field,json=floatField,proto3" json:"float_field,omitempty"`
DoubleField *wrapperspb.DoubleValue `protobuf:"bytes,13,opt,name=double_field,json=doubleField,proto3" json:"double_field,omitempty"`
// Limited support for DB type 'time', implemented via strings (string -> DB && DB -> string)
TimeOnly *types.TimeOnly `protobuf:"bytes,14,opt,name=time_only,json=timeOnly,proto3" json:"time_only,omitempty"`
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
Metadata []byte `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"`
}
func (x *TypeWithID) Reset() {
*x = TypeWithID{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TypeWithID) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TypeWithID) ProtoMessage() {}
func (x *TypeWithID) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 TypeWithID.ProtoReflect.Descriptor instead.
func (*TypeWithID) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{1}
}
func (x *TypeWithID) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
func (x *TypeWithID) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *TypeWithID) GetThings() []*TestTypes {
if x != nil {
return x.Things
}
return nil
}
func (x *TypeWithID) GetANestedObject() *TestTypes {
if x != nil {
return x.ANestedObject
}
return nil
}
func (x *TypeWithID) GetPoint() *IntPoint {
if x != nil {
return x.Point
}
return nil
}
func (x *TypeWithID) GetUser() *user.User {
if x != nil {
return x.User
}
return nil
}
func (x *TypeWithID) GetAddress() *types.InetValue {
if x != nil {
return x.Address
}
return nil
}
func (x *TypeWithID) GetMultiaccountTypeIds() []uint32 {
if x != nil {
return x.MultiaccountTypeIds
}
return nil
}
func (x *TypeWithID) GetSyntheticField() *APIOnlyType {
if x != nil {
return x.SyntheticField
}
return nil
}
func (x *TypeWithID) GetTagTest() float32 {
if x != nil {
return x.TagTest
}
return 0
}
func (x *TypeWithID) GetTagSizeTest() string {
if x != nil {
return x.TagSizeTest
}
return ""
}
func (x *TypeWithID) GetFloatField() *wrapperspb.FloatValue {
if x != nil {
return x.FloatField
}
return nil
}
func (x *TypeWithID) GetDoubleField() *wrapperspb.DoubleValue {
if x != nil {
return x.DoubleField
}
return nil
}
func (x *TypeWithID) GetTimeOnly() *types.TimeOnly {
if x != nil {
return x.TimeOnly
}
return nil
}
func (x *TypeWithID) GetDeletedAt() *timestamppb.Timestamp {
if x != nil {
return x.DeletedAt
}
return nil
}
func (x *TypeWithID) GetMetadata() []byte {
if x != nil {
return x.Metadata
}
return nil
}
// MultiaccountTypeWithID demonstrates the generated multi-account support
type MultiaccountTypeWithID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
SomeField string `protobuf:"bytes,2,opt,name=some_field,json=someField,proto3" json:"some_field,omitempty"`
}
func (x *MultiaccountTypeWithID) Reset() {
*x = MultiaccountTypeWithID{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MultiaccountTypeWithID) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MultiaccountTypeWithID) ProtoMessage() {}
func (x *MultiaccountTypeWithID) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 MultiaccountTypeWithID.ProtoReflect.Descriptor instead.
func (*MultiaccountTypeWithID) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{2}
}
func (x *MultiaccountTypeWithID) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MultiaccountTypeWithID) GetSomeField() string {
if x != nil {
return x.SomeField
}
return ""
}
type MultiaccountTypeWithoutID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SomeField string `protobuf:"bytes,1,opt,name=some_field,json=someField,proto3" json:"some_field,omitempty"`
}
func (x *MultiaccountTypeWithoutID) Reset() {
*x = MultiaccountTypeWithoutID{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MultiaccountTypeWithoutID) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MultiaccountTypeWithoutID) ProtoMessage() {}
func (x *MultiaccountTypeWithoutID) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 MultiaccountTypeWithoutID.ProtoReflect.Descriptor instead.
func (*MultiaccountTypeWithoutID) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{3}
}
func (x *MultiaccountTypeWithoutID) GetSomeField() string {
if x != nil {
return x.SomeField
}
return ""
}
type APIOnlyType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// here the ormable flag is not used, so nothing will be generated for this
// object at the ORM level, and when this type is used as a field or
// repeated field in another message that field will be dropped in the Orm
// model, and would have to be set by hook
Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
}
func (x *APIOnlyType) Reset() {
*x = APIOnlyType{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *APIOnlyType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*APIOnlyType) ProtoMessage() {}
func (x *APIOnlyType) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 APIOnlyType.ProtoReflect.Descriptor instead.
func (*APIOnlyType) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{4}
}
func (x *APIOnlyType) GetContents() string {
if x != nil {
return x.Contents
}
return ""
}
type PrimaryUUIDType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id *types.UUIDValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Child *ExternalChild `protobuf:"bytes,2,opt,name=child,proto3" json:"child,omitempty"`
}
func (x *PrimaryUUIDType) Reset() {
*x = PrimaryUUIDType{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PrimaryUUIDType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrimaryUUIDType) ProtoMessage() {}
func (x *PrimaryUUIDType) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 PrimaryUUIDType.ProtoReflect.Descriptor instead.
func (*PrimaryUUIDType) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{5}
}
func (x *PrimaryUUIDType) GetId() *types.UUIDValue {
if x != nil {
return x.Id
}
return nil
}
func (x *PrimaryUUIDType) GetChild() *ExternalChild {
if x != nil {
return x.Child
}
return nil
}
type PrimaryStringType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Child *ExternalChild `protobuf:"bytes,2,opt,name=child,proto3" json:"child,omitempty"`
}
func (x *PrimaryStringType) Reset() {
*x = PrimaryStringType{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PrimaryStringType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrimaryStringType) ProtoMessage() {}
func (x *PrimaryStringType) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 PrimaryStringType.ProtoReflect.Descriptor instead.
func (*PrimaryStringType) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{6}
}
func (x *PrimaryStringType) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *PrimaryStringType) GetChild() *ExternalChild {
if x != nil {
return x.Child
}
return nil
}
type TestTag struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TestTagAssoc *TestTagAssociation `protobuf:"bytes,2,opt,name=testTagAssoc,proto3" json:"testTagAssoc,omitempty"`
}
func (x *TestTag) Reset() {
*x = TestTag{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestTag) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestTag) ProtoMessage() {}
func (x *TestTag) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 TestTag.ProtoReflect.Descriptor instead.
func (*TestTag) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{7}
}
func (x *TestTag) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TestTag) GetTestTagAssoc() *TestTagAssociation {
if x != nil {
return x.TestTagAssoc
}
return nil
}
// replace by default
type TestAssocHandlerDefault struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TestTagAssoc []*TestTagAssociation `protobuf:"bytes,2,rep,name=testTagAssoc,proto3" json:"testTagAssoc,omitempty"`
}
func (x *TestAssocHandlerDefault) Reset() {
*x = TestAssocHandlerDefault{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestAssocHandlerDefault) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestAssocHandlerDefault) ProtoMessage() {}
func (x *TestAssocHandlerDefault) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 TestAssocHandlerDefault.ProtoReflect.Descriptor instead.
func (*TestAssocHandlerDefault) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{8}
}
func (x *TestAssocHandlerDefault) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TestAssocHandlerDefault) GetTestTagAssoc() []*TestTagAssociation {
if x != nil {
return x.TestTagAssoc
}
return nil
}
type TestAssocHandlerReplace struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TestTagAssoc []*TestTagAssociation `protobuf:"bytes,2,rep,name=testTagAssoc,proto3" json:"testTagAssoc,omitempty"`
}
func (x *TestAssocHandlerReplace) Reset() {
*x = TestAssocHandlerReplace{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestAssocHandlerReplace) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestAssocHandlerReplace) ProtoMessage() {}
func (x *TestAssocHandlerReplace) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 TestAssocHandlerReplace.ProtoReflect.Descriptor instead.
func (*TestAssocHandlerReplace) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{9}
}
func (x *TestAssocHandlerReplace) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TestAssocHandlerReplace) GetTestTagAssoc() []*TestTagAssociation {
if x != nil {
return x.TestTagAssoc
}
return nil
}
type TestAssocHandlerClear struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TestTagAssoc []*TestTagAssociation `protobuf:"bytes,2,rep,name=testTagAssoc,proto3" json:"testTagAssoc,omitempty"`
}
func (x *TestAssocHandlerClear) Reset() {
*x = TestAssocHandlerClear{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestAssocHandlerClear) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestAssocHandlerClear) ProtoMessage() {}
func (x *TestAssocHandlerClear) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 TestAssocHandlerClear.ProtoReflect.Descriptor instead.
func (*TestAssocHandlerClear) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{10}
}
func (x *TestAssocHandlerClear) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TestAssocHandlerClear) GetTestTagAssoc() []*TestTagAssociation {
if x != nil {
return x.TestTagAssoc
}
return nil
}
type TestAssocHandlerAppend struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TestTagAssoc []*TestTagAssociation `protobuf:"bytes,2,rep,name=testTagAssoc,proto3" json:"testTagAssoc,omitempty"`
}
func (x *TestAssocHandlerAppend) Reset() {
*x = TestAssocHandlerAppend{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestAssocHandlerAppend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestAssocHandlerAppend) ProtoMessage() {}
func (x *TestAssocHandlerAppend) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_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 TestAssocHandlerAppend.ProtoReflect.Descriptor instead.
func (*TestAssocHandlerAppend) Descriptor() ([]byte, []int) {
return file_feature_demo_demo_types_proto_rawDescGZIP(), []int{11}
}
func (x *TestAssocHandlerAppend) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *TestAssocHandlerAppend) GetTestTagAssoc() []*TestTagAssociation {
if x != nil {
return x.TestTagAssoc
}
return nil
}
type TestTagAssociation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SomeField string `protobuf:"bytes,1,opt,name=some_field,json=someField,proto3" json:"some_field,omitempty"`
}
func (x *TestTagAssociation) Reset() {
*x = TestTagAssociation{}
if protoimpl.UnsafeEnabled {
mi := &file_feature_demo_demo_types_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestTagAssociation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestTagAssociation) ProtoMessage() {}
func (x *TestTagAssociation) ProtoReflect() protoreflect.Message {
mi := &file_feature_demo_demo_types_proto_msgTypes[12]