Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: benchmarks.proto |
| 3 | |
| 4 | package benchmarks |
| 5 | |
| 6 | import ( |
| 7 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 8 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame^] | 9 | reflect "reflect" |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 10 | sync "sync" |
| 11 | ) |
| 12 | |
| 13 | const ( |
| 14 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 15 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0) |
| 16 | // Verify that this generated code is sufficiently up-to-date. |
| 17 | _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion) |
| 18 | ) |
| 19 | |
| 20 | type BenchmarkDataset struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 21 | state protoimpl.MessageState |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 22 | // Name of the benchmark dataset. This should be unique across all datasets. |
| 23 | // Should only contain word characters: [a-zA-Z0-9_] |
| 24 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 25 | // Fully-qualified name of the protobuf message for this dataset. |
| 26 | // It will be one of the messages defined benchmark_messages_proto2.proto |
| 27 | // or benchmark_messages_proto3.proto. |
| 28 | // |
| 29 | // Implementations that do not support reflection can implement this with |
| 30 | // an explicit "if/else" chain that lists every known message defined |
| 31 | // in those files. |
| 32 | MessageName string `protobuf:"bytes,2,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"` |
| 33 | // The payload(s) for this dataset. They should be parsed or serialized |
| 34 | // in sequence, in a loop, ie. |
| 35 | // |
| 36 | // while (!benchmarkDone) { // Benchmark runner decides when to exit. |
| 37 | // for (i = 0; i < benchmark.payload.length; i++) { |
| 38 | // parse(benchmark.payload[i]) |
| 39 | // } |
| 40 | // } |
| 41 | // |
| 42 | // This is intended to let datasets include a variety of data to provide |
| 43 | // potentially more realistic results than just parsing the same message |
| 44 | // over and over. A single message parsed repeatedly could yield unusually |
| 45 | // good branch prediction performance. |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 46 | Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"` |
| 47 | sizeCache protoimpl.SizeCache |
| 48 | unknownFields protoimpl.UnknownFields |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | func (x *BenchmarkDataset) Reset() { |
| 52 | *x = BenchmarkDataset{} |
| 53 | } |
| 54 | |
| 55 | func (x *BenchmarkDataset) String() string { |
| 56 | return protoimpl.X.MessageStringOf(x) |
| 57 | } |
| 58 | |
| 59 | func (*BenchmarkDataset) ProtoMessage() {} |
| 60 | |
| 61 | func (x *BenchmarkDataset) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 62 | mi := &file_benchmarks_proto_msgTypes[0] |
| 63 | if protoimpl.UnsafeEnabled && x != nil { |
| 64 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 65 | if ms.LoadMessageInfo() == nil { |
| 66 | ms.StoreMessageInfo(mi) |
| 67 | } |
| 68 | return ms |
| 69 | } |
| 70 | return mi.MessageOf(x) |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 71 | } |
| 72 | |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 73 | // Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead. |
| 74 | func (*BenchmarkDataset) Descriptor() ([]byte, []int) { |
| 75 | return file_benchmarks_proto_rawDescGZIP(), []int{0} |
| 76 | } |
| 77 | |
| 78 | func (x *BenchmarkDataset) GetName() string { |
| 79 | if x != nil { |
| 80 | return x.Name |
| 81 | } |
| 82 | return "" |
| 83 | } |
| 84 | |
| 85 | func (x *BenchmarkDataset) GetMessageName() string { |
| 86 | if x != nil { |
| 87 | return x.MessageName |
| 88 | } |
| 89 | return "" |
| 90 | } |
| 91 | |
| 92 | func (x *BenchmarkDataset) GetPayload() [][]byte { |
| 93 | if x != nil { |
| 94 | return x.Payload |
| 95 | } |
| 96 | return nil |
| 97 | } |
| 98 | |
| 99 | var File_benchmarks_proto protoreflect.FileDescriptor |
| 100 | |
| 101 | var file_benchmarks_proto_rawDesc = []byte{ |
| 102 | 0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, |
| 103 | 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63, |
| 104 | 0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73, |
| 105 | 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 106 | 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, |
| 107 | 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, |
| 108 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, |
| 109 | 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, |
| 110 | 0x6f, 0x61, 0x64, 0x42, 0x5b, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 111 | 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68, |
| 112 | 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, |
| 113 | 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 114 | 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, |
| 115 | 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, |
| 116 | 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 117 | } |
| 118 | |
| 119 | var ( |
| 120 | file_benchmarks_proto_rawDescOnce sync.Once |
| 121 | file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc |
| 122 | ) |
| 123 | |
| 124 | func file_benchmarks_proto_rawDescGZIP() []byte { |
| 125 | file_benchmarks_proto_rawDescOnce.Do(func() { |
| 126 | file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData) |
| 127 | }) |
| 128 | return file_benchmarks_proto_rawDescData |
| 129 | } |
| 130 | |
| 131 | var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 132 | var file_benchmarks_proto_goTypes = []interface{}{ |
| 133 | (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset |
| 134 | } |
| 135 | var file_benchmarks_proto_depIdxs = []int32{ |
| 136 | 0, // starting offset of method output_type sub-list |
| 137 | 0, // starting offset of method input_type sub-list |
| 138 | 0, // starting offset of extension type_name sub-list |
| 139 | 0, // starting offset of extension extendee sub-list |
| 140 | 0, // starting offset of field type_name sub-list |
| 141 | } |
| 142 | |
| 143 | func init() { file_benchmarks_proto_init() } |
| 144 | func file_benchmarks_proto_init() { |
| 145 | if File_benchmarks_proto != nil { |
| 146 | return |
| 147 | } |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 148 | if !protoimpl.UnsafeEnabled { |
| 149 | file_benchmarks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 150 | switch v := v.(*BenchmarkDataset); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 151 | case 0: |
| 152 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 153 | case 4: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 154 | return &v.sizeCache |
| 155 | case 5: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 156 | return &v.unknownFields |
| 157 | default: |
| 158 | return nil |
| 159 | } |
| 160 | } |
| 161 | } |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame^] | 162 | type x struct{} |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 163 | out := protoimpl.TypeBuilder{ |
| 164 | File: protoimpl.DescBuilder{ |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame^] | 165 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame] | 166 | RawDescriptor: file_benchmarks_proto_rawDesc, |
| 167 | NumEnums: 0, |
| 168 | NumMessages: 1, |
| 169 | NumExtensions: 0, |
| 170 | NumServices: 0, |
| 171 | }, |
| 172 | GoTypes: file_benchmarks_proto_goTypes, |
| 173 | DependencyIndexes: file_benchmarks_proto_depIdxs, |
| 174 | MessageInfos: file_benchmarks_proto_msgTypes, |
| 175 | }.Build() |
| 176 | File_benchmarks_proto = out.File |
| 177 | file_benchmarks_proto_rawDesc = nil |
| 178 | file_benchmarks_proto_goTypes = nil |
| 179 | file_benchmarks_proto_depIdxs = nil |
| 180 | } |