blob: 62b706e7320cba71f01eba2d20c0e7c2c772800a [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.
45 Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
46 XXX_NoUnkeyedLiteral struct{} `json:"-"`
47 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
48 XXX_sizecache protoimpl.SizeCache `json:"-"`
49}
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 {
62 return file_benchmarks_proto_msgTypes[0].MessageOf(x)
63}
64
65func (m *BenchmarkDataset) XXX_Methods() *protoiface.Methods {
66 return file_benchmarks_proto_msgTypes[0].Methods()
67}
68
69// Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead.
70func (*BenchmarkDataset) Descriptor() ([]byte, []int) {
71 return file_benchmarks_proto_rawDescGZIP(), []int{0}
72}
73
74func (x *BenchmarkDataset) GetName() string {
75 if x != nil {
76 return x.Name
77 }
78 return ""
79}
80
81func (x *BenchmarkDataset) GetMessageName() string {
82 if x != nil {
83 return x.MessageName
84 }
85 return ""
86}
87
88func (x *BenchmarkDataset) GetPayload() [][]byte {
89 if x != nil {
90 return x.Payload
91 }
92 return nil
93}
94
95var File_benchmarks_proto protoreflect.FileDescriptor
96
97var file_benchmarks_proto_rawDesc = []byte{
98 0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f,
99 0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63,
100 0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73,
101 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
102 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
103 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65,
104 0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79,
105 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c,
106 0x6f, 0x61, 0x64, 0x42, 0x5b, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
107 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68,
108 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
109 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
110 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
111 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73,
112 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
113}
114
115var (
116 file_benchmarks_proto_rawDescOnce sync.Once
117 file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc
118)
119
120func file_benchmarks_proto_rawDescGZIP() []byte {
121 file_benchmarks_proto_rawDescOnce.Do(func() {
122 file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData)
123 })
124 return file_benchmarks_proto_rawDescData
125}
126
127var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
128var file_benchmarks_proto_goTypes = []interface{}{
129 (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset
130}
131var file_benchmarks_proto_depIdxs = []int32{
132 0, // starting offset of method output_type sub-list
133 0, // starting offset of method input_type sub-list
134 0, // starting offset of extension type_name sub-list
135 0, // starting offset of extension extendee sub-list
136 0, // starting offset of field type_name sub-list
137}
138
139func init() { file_benchmarks_proto_init() }
140func file_benchmarks_proto_init() {
141 if File_benchmarks_proto != nil {
142 return
143 }
144 out := protoimpl.TypeBuilder{
145 File: protoimpl.DescBuilder{
146 RawDescriptor: file_benchmarks_proto_rawDesc,
147 NumEnums: 0,
148 NumMessages: 1,
149 NumExtensions: 0,
150 NumServices: 0,
151 },
152 GoTypes: file_benchmarks_proto_goTypes,
153 DependencyIndexes: file_benchmarks_proto_depIdxs,
154 MessageInfos: file_benchmarks_proto_msgTypes,
155 }.Build()
156 File_benchmarks_proto = out.File
157 file_benchmarks_proto_rawDesc = nil
158 file_benchmarks_proto_goTypes = nil
159 file_benchmarks_proto_depIdxs = nil
160}