xref: /aosp_15_r20/external/golang-protobuf/internal/testprotos/benchmarks/benchmarks.pb.go (revision 1c12ee1efe575feb122dbf939ff15148a3b3e8f2)
1*1c12ee1eSDan Willemsen// Protocol Buffers - Google's data interchange format
2*1c12ee1eSDan Willemsen// Copyright 2008 Google Inc.  All rights reserved.
3*1c12ee1eSDan Willemsen// https://developers.google.com/protocol-buffers/
4*1c12ee1eSDan Willemsen//
5*1c12ee1eSDan Willemsen// Redistribution and use in source and binary forms, with or without
6*1c12ee1eSDan Willemsen// modification, are permitted provided that the following conditions are
7*1c12ee1eSDan Willemsen// met:
8*1c12ee1eSDan Willemsen//
9*1c12ee1eSDan Willemsen//     * Redistributions of source code must retain the above copyright
10*1c12ee1eSDan Willemsen// notice, this list of conditions and the following disclaimer.
11*1c12ee1eSDan Willemsen//     * Redistributions in binary form must reproduce the above
12*1c12ee1eSDan Willemsen// copyright notice, this list of conditions and the following disclaimer
13*1c12ee1eSDan Willemsen// in the documentation and/or other materials provided with the
14*1c12ee1eSDan Willemsen// distribution.
15*1c12ee1eSDan Willemsen//     * Neither the name of Google Inc. nor the names of its
16*1c12ee1eSDan Willemsen// contributors may be used to endorse or promote products derived from
17*1c12ee1eSDan Willemsen// this software without specific prior written permission.
18*1c12ee1eSDan Willemsen//
19*1c12ee1eSDan Willemsen// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20*1c12ee1eSDan Willemsen// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21*1c12ee1eSDan Willemsen// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22*1c12ee1eSDan Willemsen// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23*1c12ee1eSDan Willemsen// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24*1c12ee1eSDan Willemsen// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25*1c12ee1eSDan Willemsen// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26*1c12ee1eSDan Willemsen// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27*1c12ee1eSDan Willemsen// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28*1c12ee1eSDan Willemsen// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29*1c12ee1eSDan Willemsen// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30*1c12ee1eSDan Willemsen
31*1c12ee1eSDan Willemsen// Code generated by protoc-gen-go. DO NOT EDIT.
32*1c12ee1eSDan Willemsen// source: benchmarks.proto
33*1c12ee1eSDan Willemsen
34*1c12ee1eSDan Willemsenpackage benchmarks
35*1c12ee1eSDan Willemsen
36*1c12ee1eSDan Willemsenimport (
37*1c12ee1eSDan Willemsen	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
38*1c12ee1eSDan Willemsen	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
39*1c12ee1eSDan Willemsen	reflect "reflect"
40*1c12ee1eSDan Willemsen	sync "sync"
41*1c12ee1eSDan Willemsen)
42*1c12ee1eSDan Willemsen
43*1c12ee1eSDan Willemsentype BenchmarkDataset struct {
44*1c12ee1eSDan Willemsen	state         protoimpl.MessageState
45*1c12ee1eSDan Willemsen	sizeCache     protoimpl.SizeCache
46*1c12ee1eSDan Willemsen	unknownFields protoimpl.UnknownFields
47*1c12ee1eSDan Willemsen
48*1c12ee1eSDan Willemsen	// Name of the benchmark dataset.  This should be unique across all datasets.
49*1c12ee1eSDan Willemsen	// Should only contain word characters: [a-zA-Z0-9_]
50*1c12ee1eSDan Willemsen	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
51*1c12ee1eSDan Willemsen	// Fully-qualified name of the protobuf message for this dataset.
52*1c12ee1eSDan Willemsen	// It will be one of the messages defined benchmark_messages_proto2.proto
53*1c12ee1eSDan Willemsen	// or benchmark_messages_proto3.proto.
54*1c12ee1eSDan Willemsen	//
55*1c12ee1eSDan Willemsen	// Implementations that do not support reflection can implement this with
56*1c12ee1eSDan Willemsen	// an explicit "if/else" chain that lists every known message defined
57*1c12ee1eSDan Willemsen	// in those files.
58*1c12ee1eSDan Willemsen	MessageName string `protobuf:"bytes,2,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
59*1c12ee1eSDan Willemsen	// The payload(s) for this dataset.  They should be parsed or serialized
60*1c12ee1eSDan Willemsen	// in sequence, in a loop, ie.
61*1c12ee1eSDan Willemsen	//
62*1c12ee1eSDan Willemsen	//  while (!benchmarkDone) {  // Benchmark runner decides when to exit.
63*1c12ee1eSDan Willemsen	//    for (i = 0; i < benchmark.payload.length; i++) {
64*1c12ee1eSDan Willemsen	//      parse(benchmark.payload[i])
65*1c12ee1eSDan Willemsen	//    }
66*1c12ee1eSDan Willemsen	//  }
67*1c12ee1eSDan Willemsen	//
68*1c12ee1eSDan Willemsen	// This is intended to let datasets include a variety of data to provide
69*1c12ee1eSDan Willemsen	// potentially more realistic results than just parsing the same message
70*1c12ee1eSDan Willemsen	// over and over.  A single message parsed repeatedly could yield unusually
71*1c12ee1eSDan Willemsen	// good branch prediction performance.
72*1c12ee1eSDan Willemsen	Payload [][]byte `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
73*1c12ee1eSDan Willemsen}
74*1c12ee1eSDan Willemsen
75*1c12ee1eSDan Willemsenfunc (x *BenchmarkDataset) Reset() {
76*1c12ee1eSDan Willemsen	*x = BenchmarkDataset{}
77*1c12ee1eSDan Willemsen	if protoimpl.UnsafeEnabled {
78*1c12ee1eSDan Willemsen		mi := &file_benchmarks_proto_msgTypes[0]
79*1c12ee1eSDan Willemsen		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80*1c12ee1eSDan Willemsen		ms.StoreMessageInfo(mi)
81*1c12ee1eSDan Willemsen	}
82*1c12ee1eSDan Willemsen}
83*1c12ee1eSDan Willemsen
84*1c12ee1eSDan Willemsenfunc (x *BenchmarkDataset) String() string {
85*1c12ee1eSDan Willemsen	return protoimpl.X.MessageStringOf(x)
86*1c12ee1eSDan Willemsen}
87*1c12ee1eSDan Willemsen
88*1c12ee1eSDan Willemsenfunc (*BenchmarkDataset) ProtoMessage() {}
89*1c12ee1eSDan Willemsen
90*1c12ee1eSDan Willemsenfunc (x *BenchmarkDataset) ProtoReflect() protoreflect.Message {
91*1c12ee1eSDan Willemsen	mi := &file_benchmarks_proto_msgTypes[0]
92*1c12ee1eSDan Willemsen	if protoimpl.UnsafeEnabled && x != nil {
93*1c12ee1eSDan Willemsen		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
94*1c12ee1eSDan Willemsen		if ms.LoadMessageInfo() == nil {
95*1c12ee1eSDan Willemsen			ms.StoreMessageInfo(mi)
96*1c12ee1eSDan Willemsen		}
97*1c12ee1eSDan Willemsen		return ms
98*1c12ee1eSDan Willemsen	}
99*1c12ee1eSDan Willemsen	return mi.MessageOf(x)
100*1c12ee1eSDan Willemsen}
101*1c12ee1eSDan Willemsen
102*1c12ee1eSDan Willemsen// Deprecated: Use BenchmarkDataset.ProtoReflect.Descriptor instead.
103*1c12ee1eSDan Willemsenfunc (*BenchmarkDataset) Descriptor() ([]byte, []int) {
104*1c12ee1eSDan Willemsen	return file_benchmarks_proto_rawDescGZIP(), []int{0}
105*1c12ee1eSDan Willemsen}
106*1c12ee1eSDan Willemsen
107*1c12ee1eSDan Willemsenfunc (x *BenchmarkDataset) GetName() string {
108*1c12ee1eSDan Willemsen	if x != nil {
109*1c12ee1eSDan Willemsen		return x.Name
110*1c12ee1eSDan Willemsen	}
111*1c12ee1eSDan Willemsen	return ""
112*1c12ee1eSDan Willemsen}
113*1c12ee1eSDan Willemsen
114*1c12ee1eSDan Willemsenfunc (x *BenchmarkDataset) GetMessageName() string {
115*1c12ee1eSDan Willemsen	if x != nil {
116*1c12ee1eSDan Willemsen		return x.MessageName
117*1c12ee1eSDan Willemsen	}
118*1c12ee1eSDan Willemsen	return ""
119*1c12ee1eSDan Willemsen}
120*1c12ee1eSDan Willemsen
121*1c12ee1eSDan Willemsenfunc (x *BenchmarkDataset) GetPayload() [][]byte {
122*1c12ee1eSDan Willemsen	if x != nil {
123*1c12ee1eSDan Willemsen		return x.Payload
124*1c12ee1eSDan Willemsen	}
125*1c12ee1eSDan Willemsen	return nil
126*1c12ee1eSDan Willemsen}
127*1c12ee1eSDan Willemsen
128*1c12ee1eSDan Willemsenvar File_benchmarks_proto protoreflect.FileDescriptor
129*1c12ee1eSDan Willemsen
130*1c12ee1eSDan Willemsenvar file_benchmarks_proto_rawDesc = []byte{
131*1c12ee1eSDan Willemsen	0x0a, 0x10, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f,
132*1c12ee1eSDan Willemsen	0x74, 0x6f, 0x12, 0x0a, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x63,
133*1c12ee1eSDan Willemsen	0x0a, 0x10, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x73,
134*1c12ee1eSDan Willemsen	0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
135*1c12ee1eSDan Willemsen	0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
136*1c12ee1eSDan Willemsen	0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65,
137*1c12ee1eSDan Willemsen	0x73, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79,
138*1c12ee1eSDan Willemsen	0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c,
139*1c12ee1eSDan Willemsen	0x6f, 0x61, 0x64, 0x42, 0x20, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
140*1c12ee1eSDan Willemsen	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x62, 0x65, 0x6e, 0x63, 0x68,
141*1c12ee1eSDan Willemsen	0x6d, 0x61, 0x72, 0x6b, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
142*1c12ee1eSDan Willemsen}
143*1c12ee1eSDan Willemsen
144*1c12ee1eSDan Willemsenvar (
145*1c12ee1eSDan Willemsen	file_benchmarks_proto_rawDescOnce sync.Once
146*1c12ee1eSDan Willemsen	file_benchmarks_proto_rawDescData = file_benchmarks_proto_rawDesc
147*1c12ee1eSDan Willemsen)
148*1c12ee1eSDan Willemsen
149*1c12ee1eSDan Willemsenfunc file_benchmarks_proto_rawDescGZIP() []byte {
150*1c12ee1eSDan Willemsen	file_benchmarks_proto_rawDescOnce.Do(func() {
151*1c12ee1eSDan Willemsen		file_benchmarks_proto_rawDescData = protoimpl.X.CompressGZIP(file_benchmarks_proto_rawDescData)
152*1c12ee1eSDan Willemsen	})
153*1c12ee1eSDan Willemsen	return file_benchmarks_proto_rawDescData
154*1c12ee1eSDan Willemsen}
155*1c12ee1eSDan Willemsen
156*1c12ee1eSDan Willemsenvar file_benchmarks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
157*1c12ee1eSDan Willemsenvar file_benchmarks_proto_goTypes = []interface{}{
158*1c12ee1eSDan Willemsen	(*BenchmarkDataset)(nil), // 0: benchmarks.BenchmarkDataset
159*1c12ee1eSDan Willemsen}
160*1c12ee1eSDan Willemsenvar file_benchmarks_proto_depIdxs = []int32{
161*1c12ee1eSDan Willemsen	0, // [0:0] is the sub-list for method output_type
162*1c12ee1eSDan Willemsen	0, // [0:0] is the sub-list for method input_type
163*1c12ee1eSDan Willemsen	0, // [0:0] is the sub-list for extension type_name
164*1c12ee1eSDan Willemsen	0, // [0:0] is the sub-list for extension extendee
165*1c12ee1eSDan Willemsen	0, // [0:0] is the sub-list for field type_name
166*1c12ee1eSDan Willemsen}
167*1c12ee1eSDan Willemsen
168*1c12ee1eSDan Willemsenfunc init() { file_benchmarks_proto_init() }
169*1c12ee1eSDan Willemsenfunc file_benchmarks_proto_init() {
170*1c12ee1eSDan Willemsen	if File_benchmarks_proto != nil {
171*1c12ee1eSDan Willemsen		return
172*1c12ee1eSDan Willemsen	}
173*1c12ee1eSDan Willemsen	if !protoimpl.UnsafeEnabled {
174*1c12ee1eSDan Willemsen		file_benchmarks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
175*1c12ee1eSDan Willemsen			switch v := v.(*BenchmarkDataset); i {
176*1c12ee1eSDan Willemsen			case 0:
177*1c12ee1eSDan Willemsen				return &v.state
178*1c12ee1eSDan Willemsen			case 1:
179*1c12ee1eSDan Willemsen				return &v.sizeCache
180*1c12ee1eSDan Willemsen			case 2:
181*1c12ee1eSDan Willemsen				return &v.unknownFields
182*1c12ee1eSDan Willemsen			default:
183*1c12ee1eSDan Willemsen				return nil
184*1c12ee1eSDan Willemsen			}
185*1c12ee1eSDan Willemsen		}
186*1c12ee1eSDan Willemsen	}
187*1c12ee1eSDan Willemsen	type x struct{}
188*1c12ee1eSDan Willemsen	out := protoimpl.TypeBuilder{
189*1c12ee1eSDan Willemsen		File: protoimpl.DescBuilder{
190*1c12ee1eSDan Willemsen			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
191*1c12ee1eSDan Willemsen			RawDescriptor: file_benchmarks_proto_rawDesc,
192*1c12ee1eSDan Willemsen			NumEnums:      0,
193*1c12ee1eSDan Willemsen			NumMessages:   1,
194*1c12ee1eSDan Willemsen			NumExtensions: 0,
195*1c12ee1eSDan Willemsen			NumServices:   0,
196*1c12ee1eSDan Willemsen		},
197*1c12ee1eSDan Willemsen		GoTypes:           file_benchmarks_proto_goTypes,
198*1c12ee1eSDan Willemsen		DependencyIndexes: file_benchmarks_proto_depIdxs,
199*1c12ee1eSDan Willemsen		MessageInfos:      file_benchmarks_proto_msgTypes,
200*1c12ee1eSDan Willemsen	}.Build()
201*1c12ee1eSDan Willemsen	File_benchmarks_proto = out.File
202*1c12ee1eSDan Willemsen	file_benchmarks_proto_rawDesc = nil
203*1c12ee1eSDan Willemsen	file_benchmarks_proto_goTypes = nil
204*1c12ee1eSDan Willemsen	file_benchmarks_proto_depIdxs = nil
205*1c12ee1eSDan Willemsen}
206