blob: e677f97f5ffc556b8fa960b1275ba7ddc8756545 [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.
Damien Neil3c5fb5f2020-02-04 15:03:30 -08006// source: internal/testprotos/fuzz/fuzz.proto
Damien Neilf68f1702020-02-04 11:13:57 -08007
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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080038 mi := &file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0]
Damien Neil7f9c7d92019-12-19 13:53:31 -080039 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 {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080051 mi := &file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0]
Damien Neil7f9c7d92019-12-19 13:53:31 -080052 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) {
Damien Neil3c5fb5f2020-02-04 15:03:30 -080064 return file_internal_testprotos_fuzz_fuzz_proto_rawDescGZIP(), []int{0}
Damien Neil7f9c7d92019-12-19 13:53:31 -080065}
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
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800123var File_internal_testprotos_fuzz_fuzz_proto protoreflect.FileDescriptor
Damien Neil7f9c7d92019-12-19 13:53:31 -0800124
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800125var file_internal_testprotos_fuzz_fuzz_proto_rawDesc = []byte{
126 0x0a, 0x23, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
127 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x66, 0x75, 0x7a, 0x7a, 0x2f, 0x66, 0x75, 0x7a, 0x7a, 0x2e,
128 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
129 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x66, 0x75, 0x7a, 0x7a, 0x1a, 0x23, 0x69, 0x6e, 0x74, 0x65, 0x72,
130 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74,
131 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24,
132 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f,
133 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70,
134 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x46, 0x75, 0x7a, 0x7a, 0x12, 0x46, 0x0a,
135 0x0e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18,
136 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
137 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
138 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
139 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c,
140 0x6c, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01,
141 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
142 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x45,
143 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x11, 0x74, 0x65, 0x73, 0x74, 0x41,
144 0x6c, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0d,
145 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20,
146 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72,
147 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71,
148 0x75, 0x69, 0x72, 0x65, 0x64, 0x52, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69,
149 0x72, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x15, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75,
150 0x69, 0x72, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x18, 0x04, 0x20, 0x01,
151 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
152 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
153 0x69, 0x72, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x52, 0x13, 0x74, 0x65, 0x73,
154 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e,
155 0x12, 0x68, 0x0a, 0x1a, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
156 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x05,
157 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
158 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65,
159 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64,
160 0x73, 0x52, 0x17, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x47,
161 0x72, 0x6f, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x74, 0x65,
162 0x73, 0x74, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18,
163 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
164 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50,
165 0x61, 0x63, 0x6b, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x0f, 0x74, 0x65, 0x73, 0x74,
166 0x50, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x16, 0x74,
167 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
168 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f,
169 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74,
170 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e,
171 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x14, 0x74, 0x65, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65,
172 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x0f, 0x74,
173 0x65, 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x33, 0x18, 0x08,
174 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
175 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x33, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x41,
176 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x0d, 0x74, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
177 0x54, 0x79, 0x70, 0x65, 0x73, 0x33, 0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
178 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
179 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
180 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x66, 0x75, 0x7a, 0x7a,
Damien Neil7f9c7d92019-12-19 13:53:31 -0800181}
182
183var (
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800184 file_internal_testprotos_fuzz_fuzz_proto_rawDescOnce sync.Once
185 file_internal_testprotos_fuzz_fuzz_proto_rawDescData = file_internal_testprotos_fuzz_fuzz_proto_rawDesc
Damien Neil7f9c7d92019-12-19 13:53:31 -0800186)
187
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800188func file_internal_testprotos_fuzz_fuzz_proto_rawDescGZIP() []byte {
189 file_internal_testprotos_fuzz_fuzz_proto_rawDescOnce.Do(func() {
190 file_internal_testprotos_fuzz_fuzz_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_fuzz_fuzz_proto_rawDescData)
Damien Neil7f9c7d92019-12-19 13:53:31 -0800191 })
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800192 return file_internal_testprotos_fuzz_fuzz_proto_rawDescData
Damien Neil7f9c7d92019-12-19 13:53:31 -0800193}
194
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800195var file_internal_testprotos_fuzz_fuzz_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
196var file_internal_testprotos_fuzz_fuzz_proto_goTypes = []interface{}{
Damien Neil7f9c7d92019-12-19 13:53:31 -0800197 (*Fuzz)(nil), // 0: goproto.proto.fuzz.Fuzz
198 (*test.TestAllTypes)(nil), // 1: goproto.proto.test.TestAllTypes
199 (*test.TestAllExtensions)(nil), // 2: goproto.proto.test.TestAllExtensions
200 (*test.TestRequired)(nil), // 3: goproto.proto.test.TestRequired
201 (*test.TestRequiredForeign)(nil), // 4: goproto.proto.test.TestRequiredForeign
202 (*test.TestRequiredGroupFields)(nil), // 5: goproto.proto.test.TestRequiredGroupFields
203 (*test.TestPackedTypes)(nil), // 6: goproto.proto.test.TestPackedTypes
204 (*test.TestPackedExtensions)(nil), // 7: goproto.proto.test.TestPackedExtensions
205 (*test3.TestAllTypes)(nil), // 8: goproto.proto.test3.TestAllTypes
206}
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800207var file_internal_testprotos_fuzz_fuzz_proto_depIdxs = []int32{
Damien Neil7f9c7d92019-12-19 13:53:31 -0800208 1, // 0: goproto.proto.fuzz.Fuzz.test_all_types:type_name -> goproto.proto.test.TestAllTypes
209 2, // 1: goproto.proto.fuzz.Fuzz.test_all_extensions:type_name -> goproto.proto.test.TestAllExtensions
210 3, // 2: goproto.proto.fuzz.Fuzz.test_required:type_name -> goproto.proto.test.TestRequired
211 4, // 3: goproto.proto.fuzz.Fuzz.test_required_foreign:type_name -> goproto.proto.test.TestRequiredForeign
212 5, // 4: goproto.proto.fuzz.Fuzz.test_required_group_fields:type_name -> goproto.proto.test.TestRequiredGroupFields
213 6, // 5: goproto.proto.fuzz.Fuzz.test_packed_types:type_name -> goproto.proto.test.TestPackedTypes
214 7, // 6: goproto.proto.fuzz.Fuzz.test_packed_extensions:type_name -> goproto.proto.test.TestPackedExtensions
215 8, // 7: goproto.proto.fuzz.Fuzz.test_all_types3:type_name -> goproto.proto.test3.TestAllTypes
216 8, // [8:8] is the sub-list for method output_type
217 8, // [8:8] is the sub-list for method input_type
218 8, // [8:8] is the sub-list for extension type_name
219 8, // [8:8] is the sub-list for extension extendee
220 0, // [0:8] is the sub-list for field type_name
221}
222
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800223func init() { file_internal_testprotos_fuzz_fuzz_proto_init() }
224func file_internal_testprotos_fuzz_fuzz_proto_init() {
225 if File_internal_testprotos_fuzz_fuzz_proto != nil {
Damien Neil7f9c7d92019-12-19 13:53:31 -0800226 return
227 }
228 if !protoimpl.UnsafeEnabled {
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800229 file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
Damien Neil7f9c7d92019-12-19 13:53:31 -0800230 switch v := v.(*Fuzz); i {
231 case 0:
232 return &v.state
233 case 1:
234 return &v.sizeCache
235 case 2:
236 return &v.unknownFields
237 default:
238 return nil
239 }
240 }
241 }
242 type x struct{}
243 out := protoimpl.TypeBuilder{
244 File: protoimpl.DescBuilder{
245 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800246 RawDescriptor: file_internal_testprotos_fuzz_fuzz_proto_rawDesc,
Damien Neil7f9c7d92019-12-19 13:53:31 -0800247 NumEnums: 0,
248 NumMessages: 1,
249 NumExtensions: 0,
250 NumServices: 0,
251 },
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800252 GoTypes: file_internal_testprotos_fuzz_fuzz_proto_goTypes,
253 DependencyIndexes: file_internal_testprotos_fuzz_fuzz_proto_depIdxs,
254 MessageInfos: file_internal_testprotos_fuzz_fuzz_proto_msgTypes,
Damien Neil7f9c7d92019-12-19 13:53:31 -0800255 }.Build()
Damien Neil3c5fb5f2020-02-04 15:03:30 -0800256 File_internal_testprotos_fuzz_fuzz_proto = out.File
257 file_internal_testprotos_fuzz_fuzz_proto_rawDesc = nil
258 file_internal_testprotos_fuzz_fuzz_proto_goTypes = nil
259 file_internal_testprotos_fuzz_fuzz_proto_depIdxs = nil
Damien Neil7f9c7d92019-12-19 13:53:31 -0800260}