blob: 64f5b2cf92537a7837b1998fe41fdde37d96898c [file] [log] [blame]
Damien Neil7f9c7d92019-12-19 13:53:31 -08001// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Damien Neilf68f1702020-02-04 11:13:57 -08005// Code generated by protoc-gen-go. DO NOT EDIT.
6// source: fuzz/fuzz.proto
7
Damien Neil2244bc52020-01-06 14:14:08 -08008package fuzz
Damien Neil7f9c7d92019-12-19 13:53:31 -08009
10import (
11 test "google.golang.org/protobuf/internal/testprotos/test"
12 test3 "google.golang.org/protobuf/internal/testprotos/test3"
13 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15 reflect "reflect"
16 sync "sync"
17)
18
19// Fuzz is a container for every message we want to make available to the fuzzer.
20type Fuzz struct {
21 state protoimpl.MessageState
22 sizeCache protoimpl.SizeCache
23 unknownFields protoimpl.UnknownFields
24
25 TestAllTypes *test.TestAllTypes `protobuf:"bytes,1,opt,name=test_all_types,json=testAllTypes" json:"test_all_types,omitempty"`
26 TestAllExtensions *test.TestAllExtensions `protobuf:"bytes,2,opt,name=test_all_extensions,json=testAllExtensions" json:"test_all_extensions,omitempty"`
27 TestRequired *test.TestRequired `protobuf:"bytes,3,opt,name=test_required,json=testRequired" json:"test_required,omitempty"`
28 TestRequiredForeign *test.TestRequiredForeign `protobuf:"bytes,4,opt,name=test_required_foreign,json=testRequiredForeign" json:"test_required_foreign,omitempty"`
29 TestRequiredGroupFields *test.TestRequiredGroupFields `protobuf:"bytes,5,opt,name=test_required_group_fields,json=testRequiredGroupFields" json:"test_required_group_fields,omitempty"`
30 TestPackedTypes *test.TestPackedTypes `protobuf:"bytes,6,opt,name=test_packed_types,json=testPackedTypes" json:"test_packed_types,omitempty"`
31 TestPackedExtensions *test.TestPackedExtensions `protobuf:"bytes,7,opt,name=test_packed_extensions,json=testPackedExtensions" json:"test_packed_extensions,omitempty"`
32 TestAllTypes3 *test3.TestAllTypes `protobuf:"bytes,8,opt,name=test_all_types3,json=testAllTypes3" json:"test_all_types3,omitempty"`
33}
34
35func (x *Fuzz) Reset() {
36 *x = Fuzz{}
37 if protoimpl.UnsafeEnabled {
38 mi := &file_fuzz_fuzz_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41 }
42}
43
44func (x *Fuzz) String() string {
45 return protoimpl.X.MessageStringOf(x)
46}
47
48func (*Fuzz) ProtoMessage() {}
49
50func (x *Fuzz) ProtoReflect() protoreflect.Message {
51 mi := &file_fuzz_fuzz_proto_msgTypes[0]
52 if protoimpl.UnsafeEnabled && x != nil {
53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54 if ms.LoadMessageInfo() == nil {
55 ms.StoreMessageInfo(mi)
56 }
57 return ms
58 }
59 return mi.MessageOf(x)
60}
61
62// Deprecated: Use Fuzz.ProtoReflect.Descriptor instead.
63func (*Fuzz) Descriptor() ([]byte, []int) {
64 return file_fuzz_fuzz_proto_rawDescGZIP(), []int{0}
65}
66
67func (x *Fuzz) GetTestAllTypes() *test.TestAllTypes {
68 if x != nil {
69 return x.TestAllTypes
70 }
71 return nil
72}
73
74func (x *Fuzz) GetTestAllExtensions() *test.TestAllExtensions {
75 if x != nil {
76 return x.TestAllExtensions
77 }
78 return nil
79}
80
81func (x *Fuzz) GetTestRequired() *test.TestRequired {
82 if x != nil {
83 return x.TestRequired
84 }
85 return nil
86}
87
88func (x *Fuzz) GetTestRequiredForeign() *test.TestRequiredForeign {
89 if x != nil {
90 return x.TestRequiredForeign
91 }
92 return nil
93}
94
95func (x *Fuzz) GetTestRequiredGroupFields() *test.TestRequiredGroupFields {
96 if x != nil {
97 return x.TestRequiredGroupFields
98 }
99 return nil
100}
101
102func (x *Fuzz) GetTestPackedTypes() *test.TestPackedTypes {
103 if x != nil {
104 return x.TestPackedTypes
105 }
106 return nil
107}
108
109func (x *Fuzz) GetTestPackedExtensions() *test.TestPackedExtensions {
110 if x != nil {
111 return x.TestPackedExtensions
112 }
113 return nil
114}
115
116func (x *Fuzz) GetTestAllTypes3() *test3.TestAllTypes {
117 if x != nil {
118 return x.TestAllTypes3
119 }
120 return nil
121}
122
123var File_fuzz_fuzz_proto protoreflect.FileDescriptor
124
125var file_fuzz_fuzz_proto_rawDesc = []byte{
126 0x0a, 0x0f, 0x66, 0x75, 0x7a, 0x7a, 0x2f, 0x66, 0x75, 0x7a, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74,
127 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
128 0x2e, 0x66, 0x75, 0x7a, 0x7a, 0x1a, 0x0f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74,
129 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x74, 0x65, 0x73, 0x74, 0x33, 0x2f, 0x74, 0x65,
130 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x46, 0x75, 0x7a,
131 0x7a, 0x12, 0x46, 0x0a, 0x0e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x79,
132 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72,
133 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
134 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x0c, 0x74, 0x65, 0x73,
135 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x65, 0x73,
136 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
137 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
138 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
139 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x11, 0x74,
140 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
141 0x12, 0x45, 0x0a, 0x0d, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
142 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
143 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73,
144 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x52,
145 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x15, 0x74, 0x65, 0x73, 0x74, 0x5f,
146 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e,
147 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
148 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74,
149 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x52,
150 0x13, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x6f, 0x72,
151 0x65, 0x69, 0x67, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71,
152 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x66, 0x69, 0x65, 0x6c,
153 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
154 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65,
155 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x46,
156 0x69, 0x65, 0x6c, 0x64, 0x73, 0x52, 0x17, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69,
157 0x72, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x4f,
158 0x0a, 0x11, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x79,
159 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72,
160 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54,
161 0x65, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x0f,
162 0x74, 0x65, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12,
163 0x5e, 0x0a, 0x16, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x65,
164 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
165 0x28, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
166 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x45,
167 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x14, 0x74, 0x65, 0x73, 0x74, 0x50,
168 0x61, 0x63, 0x6b, 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12,
169 0x49, 0x0a, 0x0f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65,
170 0x73, 0x33, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
171 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x33, 0x2e, 0x54,
172 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x0d, 0x74, 0x65, 0x73,
Damien Neil2244bc52020-01-06 14:14:08 -0800173 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x33, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f,
174 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
175 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
176 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x66, 0x75, 0x7a,
177 0x7a,
Damien Neil7f9c7d92019-12-19 13:53:31 -0800178}
179
180var (
181 file_fuzz_fuzz_proto_rawDescOnce sync.Once
182 file_fuzz_fuzz_proto_rawDescData = file_fuzz_fuzz_proto_rawDesc
183)
184
185func file_fuzz_fuzz_proto_rawDescGZIP() []byte {
186 file_fuzz_fuzz_proto_rawDescOnce.Do(func() {
187 file_fuzz_fuzz_proto_rawDescData = protoimpl.X.CompressGZIP(file_fuzz_fuzz_proto_rawDescData)
188 })
189 return file_fuzz_fuzz_proto_rawDescData
190}
191
192var file_fuzz_fuzz_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
193var file_fuzz_fuzz_proto_goTypes = []interface{}{
194 (*Fuzz)(nil), // 0: goproto.proto.fuzz.Fuzz
195 (*test.TestAllTypes)(nil), // 1: goproto.proto.test.TestAllTypes
196 (*test.TestAllExtensions)(nil), // 2: goproto.proto.test.TestAllExtensions
197 (*test.TestRequired)(nil), // 3: goproto.proto.test.TestRequired
198 (*test.TestRequiredForeign)(nil), // 4: goproto.proto.test.TestRequiredForeign
199 (*test.TestRequiredGroupFields)(nil), // 5: goproto.proto.test.TestRequiredGroupFields
200 (*test.TestPackedTypes)(nil), // 6: goproto.proto.test.TestPackedTypes
201 (*test.TestPackedExtensions)(nil), // 7: goproto.proto.test.TestPackedExtensions
202 (*test3.TestAllTypes)(nil), // 8: goproto.proto.test3.TestAllTypes
203}
204var file_fuzz_fuzz_proto_depIdxs = []int32{
205 1, // 0: goproto.proto.fuzz.Fuzz.test_all_types:type_name -> goproto.proto.test.TestAllTypes
206 2, // 1: goproto.proto.fuzz.Fuzz.test_all_extensions:type_name -> goproto.proto.test.TestAllExtensions
207 3, // 2: goproto.proto.fuzz.Fuzz.test_required:type_name -> goproto.proto.test.TestRequired
208 4, // 3: goproto.proto.fuzz.Fuzz.test_required_foreign:type_name -> goproto.proto.test.TestRequiredForeign
209 5, // 4: goproto.proto.fuzz.Fuzz.test_required_group_fields:type_name -> goproto.proto.test.TestRequiredGroupFields
210 6, // 5: goproto.proto.fuzz.Fuzz.test_packed_types:type_name -> goproto.proto.test.TestPackedTypes
211 7, // 6: goproto.proto.fuzz.Fuzz.test_packed_extensions:type_name -> goproto.proto.test.TestPackedExtensions
212 8, // 7: goproto.proto.fuzz.Fuzz.test_all_types3:type_name -> goproto.proto.test3.TestAllTypes
213 8, // [8:8] is the sub-list for method output_type
214 8, // [8:8] is the sub-list for method input_type
215 8, // [8:8] is the sub-list for extension type_name
216 8, // [8:8] is the sub-list for extension extendee
217 0, // [0:8] is the sub-list for field type_name
218}
219
220func init() { file_fuzz_fuzz_proto_init() }
221func file_fuzz_fuzz_proto_init() {
222 if File_fuzz_fuzz_proto != nil {
223 return
224 }
225 if !protoimpl.UnsafeEnabled {
226 file_fuzz_fuzz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
227 switch v := v.(*Fuzz); i {
228 case 0:
229 return &v.state
230 case 1:
231 return &v.sizeCache
232 case 2:
233 return &v.unknownFields
234 default:
235 return nil
236 }
237 }
238 }
239 type x struct{}
240 out := protoimpl.TypeBuilder{
241 File: protoimpl.DescBuilder{
242 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
243 RawDescriptor: file_fuzz_fuzz_proto_rawDesc,
244 NumEnums: 0,
245 NumMessages: 1,
246 NumExtensions: 0,
247 NumServices: 0,
248 },
249 GoTypes: file_fuzz_fuzz_proto_goTypes,
250 DependencyIndexes: file_fuzz_fuzz_proto_depIdxs,
251 MessageInfos: file_fuzz_fuzz_proto_msgTypes,
252 }.Build()
253 File_fuzz_fuzz_proto = out.File
254 file_fuzz_fuzz_proto_rawDesc = nil
255 file_fuzz_fuzz_proto_goTypes = nil
256 file_fuzz_fuzz_proto_depIdxs = nil
257}