Joe Tsai | 8d5e6d6 | 2019-08-06 01:15:48 -0700 | [diff] [blame] | 1 | // Protocol Buffers - Google's data interchange format |
| 2 | // Copyright 2008 Google Inc. All rights reserved. |
| 3 | // https://developers.google.com/protocol-buffers/ |
| 4 | // |
| 5 | // Redistribution and use in source and binary forms, with or without |
| 6 | // modification, are permitted provided that the following conditions are |
| 7 | // met: |
| 8 | // |
| 9 | // * Redistributions of source code must retain the above copyright |
| 10 | // notice, this list of conditions and the following disclaimer. |
| 11 | // * Redistributions in binary form must reproduce the above |
| 12 | // copyright notice, this list of conditions and the following disclaimer |
| 13 | // in the documentation and/or other materials provided with the |
| 14 | // distribution. |
| 15 | // * Neither the name of Google Inc. nor the names of its |
| 16 | // contributors may be used to endorse or promote products derived from |
| 17 | // this software without specific prior written permission. |
| 18 | // |
| 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 31 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 32 | // source: benchmarks.proto |
| 33 | |
| 34 | package benchmarks |
| 35 | |
| 36 | import ( |
| 37 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 38 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 39 | reflect "reflect" |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 40 | sync "sync" |
| 41 | ) |
| 42 | |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 43 | type BenchmarkDataset struct { |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 44 | state protoimpl.MessageState |
| 45 | sizeCache protoimpl.SizeCache |
| 46 | unknownFields protoimpl.UnknownFields |
Joe Tsai | 8d5e6d6 | 2019-08-06 01:15:48 -0700 | [diff] [blame] | 47 | |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 48 | // Name of the benchmark dataset. This should be unique across all datasets. |
| 49 | // Should only contain word characters: [a-zA-Z0-9_] |
| 50 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 51 | // Fully-qualified name of the protobuf message for this dataset. |
| 52 | // It will be one of the messages defined benchmark_messages_proto2.proto |
| 53 | // or benchmark_messages_proto3.proto. |
| 54 | // |
| 55 | // Implementations that do not support reflection can implement this with |
| 56 | // an explicit "if/else" chain that lists every known message defined |
| 57 | // in those files. |
| 58 | MessageName string `protobuf:"bytes,2,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"` |
| 59 | // The payload(s) for this dataset. They should be parsed or serialized |
| 60 | // in sequence, in a loop, ie. |
| 61 | // |
| 62 | // while (!benchmarkDone) { // Benchmark runner decides when to exit. |
| 63 | // for (i = 0; i < benchmark.payload.length; i++) { |
| 64 | // parse(benchmark.payload[i]) |
| 65 | // } |
| 66 | // } |
| 67 | // |
| 68 | // This is intended to let datasets include a variety of data to provide |
| 69 | // potentially more realistic results than just parsing the same message |
| 70 | // over and over. A single message parsed repeatedly could yield unusually |
| 71 | // good branch prediction performance. |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 72 | Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"` |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | func (x *BenchmarkDataset) Reset() { |
| 76 | *x = BenchmarkDataset{} |
Joe Tsai | ae313d4 | 2019-10-16 10:25:54 -0700 | [diff] [blame^] | 77 | if protoimpl.UnsafeEnabled { |
| 78 | mi := &file_benchmarks_proto_msgTypes[0] |
| 79 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 80 | ms.StoreMessageInfo(mi) |
| 81 | } |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | func (x *BenchmarkDataset) String() string { |
| 85 | return protoimpl.X.MessageStringOf(x) |
| 86 | } |
| 87 | |
| 88 | func (*BenchmarkDataset) ProtoMessage() {} |
| 89 | |
| 90 | func (x *BenchmarkDataset) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 91 | mi := &file_benchmarks_proto_msgTypes[0] |
| 92 | if protoimpl.UnsafeEnabled && x != nil { |
| 93 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 94 | if ms.LoadMessageInfo() == nil { |
| 95 | ms.StoreMessageInfo(mi) |
| 96 | } |
| 97 | return ms |
| 98 | } |
| 99 | return mi.MessageOf(x) |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 100 | } |
| 101 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 102 | // Deprecated: Use BenchmarkDataset.ProtoReflect.Descriptor instead. |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 103 | func (*BenchmarkDataset) Descriptor() ([]byte, []int) { |
| 104 | return file_benchmarks_proto_rawDescGZIP(), []int{0} |
| 105 | } |
| 106 | |
| 107 | func (x *BenchmarkDataset) GetName() string { |
| 108 | if x != nil { |
| 109 | return x.Name |
| 110 | } |
| 111 | return "" |
| 112 | } |
| 113 | |
| 114 | func (x *BenchmarkDataset) GetMessageName() string { |
| 115 | if x != nil { |
| 116 | return x.MessageName |
| 117 | } |
| 118 | return "" |
| 119 | } |
| 120 | |
| 121 | func (x *BenchmarkDataset) GetPayload() [][]byte { |
| 122 | if x != nil { |
| 123 | return x.Payload |
| 124 | } |
| 125 | return nil |
| 126 | } |
| 127 | |
| 128 | var File_benchmarks_proto protoreflect.FileDescriptor |
| 129 | |
| 130 | var file_benchmarks_proto_rawDesc = []byte{ |
| 131 | 0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, |
| 132 | 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63, |
| 133 | 0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73, |
| 134 | 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 135 | 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, |
| 136 | 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, |
| 137 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, |
| 138 | 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, |
| 139 | 0x6f, 0x61, 0x64, 0x42, 0x5b, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 140 | 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68, |
| 141 | 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, |
| 142 | 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 143 | 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, |
| 144 | 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, |
| 145 | 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 146 | } |
| 147 | |
| 148 | var ( |
| 149 | file_benchmarks_proto_rawDescOnce sync.Once |
| 150 | file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc |
| 151 | ) |
| 152 | |
| 153 | func file_benchmarks_proto_rawDescGZIP() []byte { |
| 154 | file_benchmarks_proto_rawDescOnce.Do(func() { |
| 155 | file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData) |
| 156 | }) |
| 157 | return file_benchmarks_proto_rawDescData |
| 158 | } |
| 159 | |
| 160 | var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 161 | var file_benchmarks_proto_goTypes = []interface{}{ |
| 162 | (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset |
| 163 | } |
| 164 | var file_benchmarks_proto_depIdxs = []int32{ |
Joe Tsai | 7328839 | 2019-08-14 11:55:31 -0700 | [diff] [blame] | 165 | 0, // [0:0] is the sub-list for method output_type |
| 166 | 0, // [0:0] is the sub-list for method input_type |
| 167 | 0, // [0:0] is the sub-list for extension type_name |
| 168 | 0, // [0:0] is the sub-list for extension extendee |
| 169 | 0, // [0:0] is the sub-list for field type_name |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 170 | } |
| 171 | |
| 172 | func init() { file_benchmarks_proto_init() } |
| 173 | func file_benchmarks_proto_init() { |
| 174 | if File_benchmarks_proto != nil { |
| 175 | return |
| 176 | } |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 177 | if !protoimpl.UnsafeEnabled { |
| 178 | file_benchmarks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 179 | switch v := v.(*BenchmarkDataset); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 180 | case 0: |
| 181 | return &v.state |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 182 | case 1: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 183 | return &v.sizeCache |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 184 | case 2: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 185 | return &v.unknownFields |
| 186 | default: |
| 187 | return nil |
| 188 | } |
| 189 | } |
| 190 | } |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 191 | type x struct{} |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 192 | out := protoimpl.TypeBuilder{ |
| 193 | File: protoimpl.DescBuilder{ |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 194 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 195 | RawDescriptor: file_benchmarks_proto_rawDesc, |
| 196 | NumEnums: 0, |
| 197 | NumMessages: 1, |
| 198 | NumExtensions: 0, |
| 199 | NumServices: 0, |
| 200 | }, |
| 201 | GoTypes: file_benchmarks_proto_goTypes, |
| 202 | DependencyIndexes: file_benchmarks_proto_depIdxs, |
| 203 | MessageInfos: file_benchmarks_proto_msgTypes, |
| 204 | }.Build() |
| 205 | File_benchmarks_proto = out.File |
| 206 | file_benchmarks_proto_rawDesc = nil |
| 207 | file_benchmarks_proto_goTypes = nil |
| 208 | file_benchmarks_proto_depIdxs = nil |
| 209 | } |