blob: 220ab24d50087d058c2cbcd37166a85723308209 [file] [log] [blame]
Damien Neila80229e2019-06-20 12:53:48 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: benchmarks.proto
3
4package benchmarks
5
6import (
7 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Damien Neila80229e2019-06-20 12:53:48 -07008 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -07009 reflect "reflect"
Damien Neila80229e2019-06-20 12:53:48 -070010 sync "sync"
11)
12
13const (
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
20type BenchmarkDataset struct {
Joe Tsai82760ce2019-06-20 03:09:57 -070021 state protoimpl.MessageState
Damien Neila80229e2019-06-20 12:53:48 -070022 // 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 Tsaic0e4bb22019-07-06 13:05:11 -070046 Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
Damien Neila80229e2019-06-20 12:53:48 -070049}
50
51func (x *BenchmarkDataset) Reset() {
52 *x = BenchmarkDataset{}
53}
54
55func (x *BenchmarkDataset) String() string {
56 return protoimpl.X.MessageStringOf(x)
57}
58
59func (*BenchmarkDataset) ProtoMessage() {}
60
61func (x *BenchmarkDataset) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -070062 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 Neila80229e2019-06-20 12:53:48 -070071}
72
Damien Neila80229e2019-06-20 12:53:48 -070073// Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead.
74func (*BenchmarkDataset) Descriptor() ([]byte, []int) {
75 return file_benchmarks_proto_rawDescGZIP(), []int{0}
76}
77
78func (x *BenchmarkDataset) GetName() string {
79 if x != nil {
80 return x.Name
81 }
82 return ""
83}
84
85func (x *BenchmarkDataset) GetMessageName() string {
86 if x != nil {
87 return x.MessageName
88 }
89 return ""
90}
91
92func (x *BenchmarkDataset) GetPayload() [][]byte {
93 if x != nil {
94 return x.Payload
95 }
96 return nil
97}
98
99var File_benchmarks_proto protoreflect.FileDescriptor
100
101var 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
119var (
120 file_benchmarks_proto_rawDescOnce sync.Once
121 file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc
122)
123
124func 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
131var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
132var file_benchmarks_proto_goTypes = []interface{}{
133 (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset
134}
135var 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
143func init() { file_benchmarks_proto_init() }
144func file_benchmarks_proto_init() {
145 if File_benchmarks_proto != nil {
146 return
147 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700148 if !protoimpl.UnsafeEnabled {
149 file_benchmarks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
150 switch v := v.(*BenchmarkDataset); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700151 case 0:
152 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700153 case 4:
Joe Tsai82760ce2019-06-20 03:09:57 -0700154 return &v.sizeCache
155 case 5:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700156 return &v.unknownFields
157 default:
158 return nil
159 }
160 }
161 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700162 type x struct{}
Damien Neila80229e2019-06-20 12:53:48 -0700163 out := protoimpl.TypeBuilder{
164 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700165 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Damien Neila80229e2019-06-20 12:53:48 -0700166 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}