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