blob: 5479355125f5fab32929e89ca2fc5fbd0a332c94 [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"
8 protoiface "google.golang.org/protobuf/runtime/protoiface"
9 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
10 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
Joe Tsai82760ce2019-06-20 03:09:57 -070073func (x *BenchmarkDataset) XXX_Methods() *protoiface.Methods {
Damien Neila80229e2019-06-20 12:53:48 -070074 return file_benchmarks_proto_msgTypes[0].Methods()
75}
76
77// Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead.
78func (*BenchmarkDataset) Descriptor() ([]byte, []int) {
79 return file_benchmarks_proto_rawDescGZIP(), []int{0}
80}
81
82func (x *BenchmarkDataset) GetName() string {
83 if x != nil {
84 return x.Name
85 }
86 return ""
87}
88
89func (x *BenchmarkDataset) GetMessageName() string {
90 if x != nil {
91 return x.MessageName
92 }
93 return ""
94}
95
96func (x *BenchmarkDataset) GetPayload() [][]byte {
97 if x != nil {
98 return x.Payload
99 }
100 return nil
101}
102
103var File_benchmarks_proto protoreflect.FileDescriptor
104
105var file_benchmarks_proto_rawDesc = []byte{
106 0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f,
107 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63,
108 0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73,
109 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
110 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
111 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65,
112 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79,
113 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c,
114 0x6f, 0x61, 0x64, 0x42, 0x5b, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
115 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68,
116 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
117 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
118 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
119 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73,
120 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
121}
122
123var (
124 file_benchmarks_proto_rawDescOnce sync.Once
125 file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc
126)
127
128func file_benchmarks_proto_rawDescGZIP() []byte {
129 file_benchmarks_proto_rawDescOnce.Do(func() {
130 file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData)
131 })
132 return file_benchmarks_proto_rawDescData
133}
134
135var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
136var file_benchmarks_proto_goTypes = []interface{}{
137 (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset
138}
139var file_benchmarks_proto_depIdxs = []int32{
140 0, // starting offset of method output_type sub-list
141 0, // starting offset of method input_type sub-list
142 0, // starting offset of extension type_name sub-list
143 0, // starting offset of extension extendee sub-list
144 0, // starting offset of field type_name sub-list
145}
146
147func init() { file_benchmarks_proto_init() }
148func file_benchmarks_proto_init() {
149 if File_benchmarks_proto != nil {
150 return
151 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700152 if !protoimpl.UnsafeEnabled {
153 file_benchmarks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
154 switch v := v.(*BenchmarkDataset); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700155 case 0:
156 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700157 case 4:
Joe Tsai82760ce2019-06-20 03:09:57 -0700158 return &v.sizeCache
159 case 5:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700160 return &v.unknownFields
161 default:
162 return nil
163 }
164 }
165 }
Damien Neila80229e2019-06-20 12:53:48 -0700166 out := protoimpl.TypeBuilder{
167 File: protoimpl.DescBuilder{
168 RawDescriptor: file_benchmarks_proto_rawDesc,
169 NumEnums: 0,
170 NumMessages: 1,
171 NumExtensions: 0,
172 NumServices: 0,
173 },
174 GoTypes: file_benchmarks_proto_goTypes,
175 DependencyIndexes: file_benchmarks_proto_depIdxs,
176 MessageInfos: file_benchmarks_proto_msgTypes,
177 }.Build()
178 File_benchmarks_proto = out.File
179 file_benchmarks_proto_rawDesc = nil
180 file_benchmarks_proto_goTypes = nil
181 file_benchmarks_proto_depIdxs = nil
182}