benchmarks.pb.go 7.6 KB

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