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