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