1
2
3
4
5
6
7
8 package annotations
9
10 import (
11 proto "google.golang.org/protobuf/proto"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 )
17
18 type AnnotationsTestEnum int32
19
20 const (
21 AnnotationsTestEnum_ANNOTATIONS_TEST_ENUM_VALUE AnnotationsTestEnum = 0
22 )
23
24
25 var (
26 AnnotationsTestEnum_name = map[int32]string{
27 0: "ANNOTATIONS_TEST_ENUM_VALUE",
28 }
29 AnnotationsTestEnum_value = map[string]int32{
30 "ANNOTATIONS_TEST_ENUM_VALUE": 0,
31 }
32 )
33
34 func (x AnnotationsTestEnum) Enum() *AnnotationsTestEnum {
35 p := new(AnnotationsTestEnum)
36 *p = x
37 return p
38 }
39
40 func (x AnnotationsTestEnum) String() string {
41 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
42 }
43
44 func (AnnotationsTestEnum) Descriptor() protoreflect.EnumDescriptor {
45 return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes[0].Descriptor()
46 }
47
48 func (AnnotationsTestEnum) Type() protoreflect.EnumType {
49 return &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes[0]
50 }
51
52 func (x AnnotationsTestEnum) Number() protoreflect.EnumNumber {
53 return protoreflect.EnumNumber(x)
54 }
55
56
57 func (x *AnnotationsTestEnum) UnmarshalJSON(b []byte) error {
58 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
59 if err != nil {
60 return err
61 }
62 *x = AnnotationsTestEnum(num)
63 return nil
64 }
65
66
67 func (AnnotationsTestEnum) EnumDescriptor() ([]byte, []int) {
68 return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescGZIP(), []int{0}
69 }
70
71 type AnnotationsTestMessage struct {
72 state protoimpl.MessageState
73 sizeCache protoimpl.SizeCache
74 weakFields protoimpl.WeakFields
75 unknownFields protoimpl.UnknownFields
76
77 AnnotationsTestField *string `protobuf:"bytes,1,opt,name=AnnotationsTestField" json:"AnnotationsTestField,omitempty"`
78 XXX_weak_M struct{} `protobuf:"bytes,2,opt,name=m,weak=fmt.M" json:"m,omitempty"`
79 }
80
81 func (x *AnnotationsTestMessage) Reset() {
82 *x = AnnotationsTestMessage{}
83 if protoimpl.UnsafeEnabled {
84 mi := &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0]
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 ms.StoreMessageInfo(mi)
87 }
88 }
89
90 func (x *AnnotationsTestMessage) String() string {
91 return protoimpl.X.MessageStringOf(x)
92 }
93
94 func (*AnnotationsTestMessage) ProtoMessage() {}
95
96 func (x *AnnotationsTestMessage) ProtoReflect() protoreflect.Message {
97 mi := &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0]
98 if protoimpl.UnsafeEnabled && x != nil {
99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100 if ms.LoadMessageInfo() == nil {
101 ms.StoreMessageInfo(mi)
102 }
103 return ms
104 }
105 return mi.MessageOf(x)
106 }
107
108
109 func (*AnnotationsTestMessage) Descriptor() ([]byte, []int) {
110 return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescGZIP(), []int{0}
111 }
112
113 func (x *AnnotationsTestMessage) GetAnnotationsTestField() string {
114 if x != nil && x.AnnotationsTestField != nil {
115 return *x.AnnotationsTestField
116 }
117 return ""
118 }
119
120 func (x *AnnotationsTestMessage) GetM() proto.Message {
121 var w protoimpl.WeakFields
122 if x != nil {
123 w = x.weakFields
124 }
125 return protoimpl.X.GetWeak(w, 2, "fmt.M")
126 }
127
128 func (x *AnnotationsTestMessage) SetM(v proto.Message) {
129 var w *protoimpl.WeakFields
130 if x != nil {
131 w = &x.weakFields
132 }
133 protoimpl.X.SetWeak(w, 2, "fmt.M", v)
134 }
135
136 var File_cmd_protoc_gen_go_testdata_annotations_annotations_proto protoreflect.FileDescriptor
137
138 var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc = []byte{
139 0x0a, 0x38, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
140 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x61, 0x6e, 0x6e,
141 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
142 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x70, 0x72,
143 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
144 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x2e, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74,
145 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61,
146 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x66, 0x6d, 0x74, 0x2f, 0x6d,
147 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a, 0x16, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
148 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
149 0x12, 0x32, 0x0a, 0x14, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54,
150 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14,
151 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x46,
152 0x69, 0x65, 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x01, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
153 0x06, 0x2e, 0x66, 0x6d, 0x74, 0x2e, 0x4d, 0x42, 0x02, 0x50, 0x01, 0x52, 0x01, 0x6d, 0x2a, 0x36,
154 0x0a, 0x13, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73,
155 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x41, 0x54,
156 0x49, 0x4f, 0x4e, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x56,
157 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
158 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
159 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d,
160 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f,
161 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x58, 0x00,
162 }
163
164 var (
165 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescOnce sync.Once
166 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData = file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc
167 )
168
169 func file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescGZIP() []byte {
170 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescOnce.Do(func() {
171 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData)
172 })
173 return file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescData
174 }
175
176 var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
177 var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
178 var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes = []interface{}{
179 (AnnotationsTestEnum)(0),
180 (*AnnotationsTestMessage)(nil),
181 }
182 var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_depIdxs = []int32{
183 0,
184 0,
185 0,
186 0,
187 0,
188 }
189
190 func init() { file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_init() }
191 func file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_init() {
192 if File_cmd_protoc_gen_go_testdata_annotations_annotations_proto != nil {
193 return
194 }
195 if !protoimpl.UnsafeEnabled {
196 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
197 switch v := v.(*AnnotationsTestMessage); i {
198 case 0:
199 return &v.state
200 case 1:
201 return &v.sizeCache
202 case 2:
203 return &v.weakFields
204 case 3:
205 return &v.unknownFields
206 default:
207 return nil
208 }
209 }
210 }
211 type x struct{}
212 out := protoimpl.TypeBuilder{
213 File: protoimpl.DescBuilder{
214 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
215 RawDescriptor: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc,
216 NumEnums: 1,
217 NumMessages: 1,
218 NumExtensions: 0,
219 NumServices: 0,
220 },
221 GoTypes: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes,
222 DependencyIndexes: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_depIdxs,
223 EnumInfos: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes,
224 MessageInfos: file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes,
225 }.Build()
226 File_cmd_protoc_gen_go_testdata_annotations_annotations_proto = out.File
227 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc = nil
228 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes = nil
229 file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_depIdxs = nil
230 }
231
View as plain text