Damien Neil | 7f9c7d9 | 2019-12-19 13:53:31 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: fuzz/fuzz.proto |
| 3 | |
| 4 | // Copyright 2019 The Go Authors. All rights reserved. |
| 5 | // Use of this source code is governed by a BSD-style |
| 6 | // license that can be found in the LICENSE file. |
| 7 | |
| 8 | package goproto_proto_fuzz |
| 9 | |
| 10 | import ( |
| 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. |
| 20 | type 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 | |
| 35 | func (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 | |
| 44 | func (x *Fuzz) String() string { |
| 45 | return protoimpl.X.MessageStringOf(x) |
| 46 | } |
| 47 | |
| 48 | func (*Fuzz) ProtoMessage() {} |
| 49 | |
| 50 | func (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. |
| 63 | func (*Fuzz) Descriptor() ([]byte, []int) { |
| 64 | return file_fuzz_fuzz_proto_rawDescGZIP(), []int{0} |
| 65 | } |
| 66 | |
| 67 | func (x *Fuzz) GetTestAllTypes() *test.TestAllTypes { |
| 68 | if x != nil { |
| 69 | return x.TestAllTypes |
| 70 | } |
| 71 | return nil |
| 72 | } |
| 73 | |
| 74 | func (x *Fuzz) GetTestAllExtensions() *test.TestAllExtensions { |
| 75 | if x != nil { |
| 76 | return x.TestAllExtensions |
| 77 | } |
| 78 | return nil |
| 79 | } |
| 80 | |
| 81 | func (x *Fuzz) GetTestRequired() *test.TestRequired { |
| 82 | if x != nil { |
| 83 | return x.TestRequired |
| 84 | } |
| 85 | return nil |
| 86 | } |
| 87 | |
| 88 | func (x *Fuzz) GetTestRequiredForeign() *test.TestRequiredForeign { |
| 89 | if x != nil { |
| 90 | return x.TestRequiredForeign |
| 91 | } |
| 92 | return nil |
| 93 | } |
| 94 | |
| 95 | func (x *Fuzz) GetTestRequiredGroupFields() *test.TestRequiredGroupFields { |
| 96 | if x != nil { |
| 97 | return x.TestRequiredGroupFields |
| 98 | } |
| 99 | return nil |
| 100 | } |
| 101 | |
| 102 | func (x *Fuzz) GetTestPackedTypes() *test.TestPackedTypes { |
| 103 | if x != nil { |
| 104 | return x.TestPackedTypes |
| 105 | } |
| 106 | return nil |
| 107 | } |
| 108 | |
| 109 | func (x *Fuzz) GetTestPackedExtensions() *test.TestPackedExtensions { |
| 110 | if x != nil { |
| 111 | return x.TestPackedExtensions |
| 112 | } |
| 113 | return nil |
| 114 | } |
| 115 | |
| 116 | func (x *Fuzz) GetTestAllTypes3() *test3.TestAllTypes { |
| 117 | if x != nil { |
| 118 | return x.TestAllTypes3 |
| 119 | } |
| 120 | return nil |
| 121 | } |
| 122 | |
| 123 | var File_fuzz_fuzz_proto protoreflect.FileDescriptor |
| 124 | |
| 125 | var 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, |
| 173 | 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x33, |
| 174 | } |
| 175 | |
| 176 | var ( |
| 177 | file_fuzz_fuzz_proto_rawDescOnce sync.Once |
| 178 | file_fuzz_fuzz_proto_rawDescData = file_fuzz_fuzz_proto_rawDesc |
| 179 | ) |
| 180 | |
| 181 | func file_fuzz_fuzz_proto_rawDescGZIP() []byte { |
| 182 | file_fuzz_fuzz_proto_rawDescOnce.Do(func() { |
| 183 | file_fuzz_fuzz_proto_rawDescData = protoimpl.X.CompressGZIP(file_fuzz_fuzz_proto_rawDescData) |
| 184 | }) |
| 185 | return file_fuzz_fuzz_proto_rawDescData |
| 186 | } |
| 187 | |
| 188 | var file_fuzz_fuzz_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 189 | var file_fuzz_fuzz_proto_goTypes = []interface{}{ |
| 190 | (*Fuzz)(nil), // 0: goproto.proto.fuzz.Fuzz |
| 191 | (*test.TestAllTypes)(nil), // 1: goproto.proto.test.TestAllTypes |
| 192 | (*test.TestAllExtensions)(nil), // 2: goproto.proto.test.TestAllExtensions |
| 193 | (*test.TestRequired)(nil), // 3: goproto.proto.test.TestRequired |
| 194 | (*test.TestRequiredForeign)(nil), // 4: goproto.proto.test.TestRequiredForeign |
| 195 | (*test.TestRequiredGroupFields)(nil), // 5: goproto.proto.test.TestRequiredGroupFields |
| 196 | (*test.TestPackedTypes)(nil), // 6: goproto.proto.test.TestPackedTypes |
| 197 | (*test.TestPackedExtensions)(nil), // 7: goproto.proto.test.TestPackedExtensions |
| 198 | (*test3.TestAllTypes)(nil), // 8: goproto.proto.test3.TestAllTypes |
| 199 | } |
| 200 | var file_fuzz_fuzz_proto_depIdxs = []int32{ |
| 201 | 1, // 0: goproto.proto.fuzz.Fuzz.test_all_types:type_name -> goproto.proto.test.TestAllTypes |
| 202 | 2, // 1: goproto.proto.fuzz.Fuzz.test_all_extensions:type_name -> goproto.proto.test.TestAllExtensions |
| 203 | 3, // 2: goproto.proto.fuzz.Fuzz.test_required:type_name -> goproto.proto.test.TestRequired |
| 204 | 4, // 3: goproto.proto.fuzz.Fuzz.test_required_foreign:type_name -> goproto.proto.test.TestRequiredForeign |
| 205 | 5, // 4: goproto.proto.fuzz.Fuzz.test_required_group_fields:type_name -> goproto.proto.test.TestRequiredGroupFields |
| 206 | 6, // 5: goproto.proto.fuzz.Fuzz.test_packed_types:type_name -> goproto.proto.test.TestPackedTypes |
| 207 | 7, // 6: goproto.proto.fuzz.Fuzz.test_packed_extensions:type_name -> goproto.proto.test.TestPackedExtensions |
| 208 | 8, // 7: goproto.proto.fuzz.Fuzz.test_all_types3:type_name -> goproto.proto.test3.TestAllTypes |
| 209 | 8, // [8:8] is the sub-list for method output_type |
| 210 | 8, // [8:8] is the sub-list for method input_type |
| 211 | 8, // [8:8] is the sub-list for extension type_name |
| 212 | 8, // [8:8] is the sub-list for extension extendee |
| 213 | 0, // [0:8] is the sub-list for field type_name |
| 214 | } |
| 215 | |
| 216 | func init() { file_fuzz_fuzz_proto_init() } |
| 217 | func file_fuzz_fuzz_proto_init() { |
| 218 | if File_fuzz_fuzz_proto != nil { |
| 219 | return |
| 220 | } |
| 221 | if !protoimpl.UnsafeEnabled { |
| 222 | file_fuzz_fuzz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 223 | switch v := v.(*Fuzz); i { |
| 224 | case 0: |
| 225 | return &v.state |
| 226 | case 1: |
| 227 | return &v.sizeCache |
| 228 | case 2: |
| 229 | return &v.unknownFields |
| 230 | default: |
| 231 | return nil |
| 232 | } |
| 233 | } |
| 234 | } |
| 235 | type x struct{} |
| 236 | out := protoimpl.TypeBuilder{ |
| 237 | File: protoimpl.DescBuilder{ |
| 238 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 239 | RawDescriptor: file_fuzz_fuzz_proto_rawDesc, |
| 240 | NumEnums: 0, |
| 241 | NumMessages: 1, |
| 242 | NumExtensions: 0, |
| 243 | NumServices: 0, |
| 244 | }, |
| 245 | GoTypes: file_fuzz_fuzz_proto_goTypes, |
| 246 | DependencyIndexes: file_fuzz_fuzz_proto_depIdxs, |
| 247 | MessageInfos: file_fuzz_fuzz_proto_msgTypes, |
| 248 | }.Build() |
| 249 | File_fuzz_fuzz_proto = out.File |
| 250 | file_fuzz_fuzz_proto_rawDesc = nil |
| 251 | file_fuzz_fuzz_proto_goTypes = nil |
| 252 | file_fuzz_fuzz_proto_depIdxs = nil |
| 253 | } |