Damien Neil | a80229e | 2019-06-20 12:53:48 -0700 | [diff] [blame^] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: benchmarks.proto |
| 3 | |
| 4 | package benchmarks |
| 5 | |
| 6 | import ( |
| 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 | |
| 13 | const ( |
| 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 | |
| 20 | type 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 | |
| 51 | func (x *BenchmarkDataset) Reset() { |
| 52 | *x = BenchmarkDataset{} |
| 53 | } |
| 54 | |
| 55 | func (x *BenchmarkDataset) String() string { |
| 56 | return protoimpl.X.MessageStringOf(x) |
| 57 | } |
| 58 | |
| 59 | func (*BenchmarkDataset) ProtoMessage() {} |
| 60 | |
| 61 | func (x *BenchmarkDataset) ProtoReflect() protoreflect.Message { |
| 62 | return file_benchmarks_proto_msgTypes[0].MessageOf(x) |
| 63 | } |
| 64 | |
| 65 | func (m *BenchmarkDataset) XXX_Methods() *protoiface.Methods { |
| 66 | return file_benchmarks_proto_msgTypes[0].Methods() |
| 67 | } |
| 68 | |
| 69 | // Deprecated: Use BenchmarkDataset.ProtoReflect.Type instead. |
| 70 | func (*BenchmarkDataset) Descriptor() ([]byte, []int) { |
| 71 | return file_benchmarks_proto_rawDescGZIP(), []int{0} |
| 72 | } |
| 73 | |
| 74 | func (x *BenchmarkDataset) GetName() string { |
| 75 | if x != nil { |
| 76 | return x.Name |
| 77 | } |
| 78 | return "" |
| 79 | } |
| 80 | |
| 81 | func (x *BenchmarkDataset) GetMessageName() string { |
| 82 | if x != nil { |
| 83 | return x.MessageName |
| 84 | } |
| 85 | return "" |
| 86 | } |
| 87 | |
| 88 | func (x *BenchmarkDataset) GetPayload() [][]byte { |
| 89 | if x != nil { |
| 90 | return x.Payload |
| 91 | } |
| 92 | return nil |
| 93 | } |
| 94 | |
| 95 | var File_benchmarks_proto protoreflect.FileDescriptor |
| 96 | |
| 97 | var 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 | |
| 115 | var ( |
| 116 | file_benchmarks_proto_rawDescOnce sync.Once |
| 117 | file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc |
| 118 | ) |
| 119 | |
| 120 | func 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 | |
| 127 | var file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 128 | var file_benchmarks_proto_goTypes = []interface{}{ |
| 129 | (*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset |
| 130 | } |
| 131 | var 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 | |
| 139 | func init() { file_benchmarks_proto_init() } |
| 140 | func 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 | } |