blob: e1497cd19b50a3ac99eb8c7de24121604e1d6da2 [file]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.11.4
// source: values.proto
package perfpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Direction int32
const (
Direction_SMALLER_IS_BETTER Direction = 0
Direction_BIGGER_IS_BETTER Direction = 1
)
// Enum value maps for Direction.
var (
Direction_name = map[int32]string{
0: "SMALLER_IS_BETTER",
1: "BIGGER_IS_BETTER",
}
Direction_value = map[string]int32{
"SMALLER_IS_BETTER": 0,
"BIGGER_IS_BETTER": 1,
}
)
func (x Direction) Enum() *Direction {
p := new(Direction)
*p = x
return p
}
func (x Direction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Direction) Descriptor() protoreflect.EnumDescriptor {
return file_values_proto_enumTypes[0].Descriptor()
}
func (Direction) Type() protoreflect.EnumType {
return &file_values_proto_enumTypes[0]
}
func (x Direction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Direction.Descriptor instead.
func (Direction) EnumDescriptor() ([]byte, []int) {
return file_values_proto_rawDescGZIP(), []int{0}
}
type Value struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Variant string `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
Direction Direction `protobuf:"varint,4,opt,name=direction,proto3,enum=tast.common.perf.perfpb.Direction" json:"direction,omitempty"`
Multiple bool `protobuf:"varint,5,opt,name=multiple,proto3" json:"multiple,omitempty"`
Value []float64 `protobuf:"fixed64,6,rep,packed,name=value,proto3" json:"value,omitempty"`
}
func (x *Value) Reset() {
*x = Value{}
if protoimpl.UnsafeEnabled {
mi := &file_values_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Value) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Value) ProtoMessage() {}
func (x *Value) ProtoReflect() protoreflect.Message {
mi := &file_values_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Value.ProtoReflect.Descriptor instead.
func (*Value) Descriptor() ([]byte, []int) {
return file_values_proto_rawDescGZIP(), []int{0}
}
func (x *Value) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Value) GetVariant() string {
if x != nil {
return x.Variant
}
return ""
}
func (x *Value) GetUnit() string {
if x != nil {
return x.Unit
}
return ""
}
func (x *Value) GetDirection() Direction {
if x != nil {
return x.Direction
}
return Direction_SMALLER_IS_BETTER
}
func (x *Value) GetMultiple() bool {
if x != nil {
return x.Multiple
}
return false
}
func (x *Value) GetValue() []float64 {
if x != nil {
return x.Value
}
return nil
}
type Values struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}
func (x *Values) Reset() {
*x = Values{}
if protoimpl.UnsafeEnabled {
mi := &file_values_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Values) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Values) ProtoMessage() {}
func (x *Values) ProtoReflect() protoreflect.Message {
mi := &file_values_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Values.ProtoReflect.Descriptor instead.
func (*Values) Descriptor() ([]byte, []int) {
return file_values_proto_rawDescGZIP(), []int{1}
}
func (x *Values) GetValues() []*Value {
if x != nil {
return x.Values
}
return nil
}
var File_values_proto protoreflect.FileDescriptor
var file_values_proto_rawDesc = []byte{
0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17,
0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x66,
0x2e, 0x70, 0x65, 0x72, 0x66, 0x70, 0x62, 0x22, 0xbd, 0x01, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12,
0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75,
0x6e, 0x69, 0x74, 0x12, 0x40, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f,
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x66, 0x2e, 0x70, 0x65, 0x72, 0x66, 0x70, 0x62,
0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65,
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c,
0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x01,
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x40, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x36, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x61, 0x73, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
0x70, 0x65, 0x72, 0x66, 0x2e, 0x70, 0x65, 0x72, 0x66, 0x70, 0x62, 0x2e, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, 0x38, 0x0a, 0x09, 0x44, 0x69, 0x72,
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x4d, 0x41, 0x4c, 0x4c, 0x45,
0x52, 0x5f, 0x49, 0x53, 0x5f, 0x42, 0x45, 0x54, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x14, 0x0a,
0x10, 0x42, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x49, 0x53, 0x5f, 0x42, 0x45, 0x54, 0x54, 0x45,
0x52, 0x10, 0x01, 0x42, 0x24, 0x5a, 0x22, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f,
0x73, 0x2f, 0x74, 0x61, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x65,
0x72, 0x66, 0x2f, 0x70, 0x65, 0x72, 0x66, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_values_proto_rawDescOnce sync.Once
file_values_proto_rawDescData = file_values_proto_rawDesc
)
func file_values_proto_rawDescGZIP() []byte {
file_values_proto_rawDescOnce.Do(func() {
file_values_proto_rawDescData = protoimpl.X.CompressGZIP(file_values_proto_rawDescData)
})
return file_values_proto_rawDescData
}
var file_values_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_values_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_values_proto_goTypes = []interface{}{
(Direction)(0), // 0: tast.common.perf.perfpb.Direction
(*Value)(nil), // 1: tast.common.perf.perfpb.Value
(*Values)(nil), // 2: tast.common.perf.perfpb.Values
}
var file_values_proto_depIdxs = []int32{
0, // 0: tast.common.perf.perfpb.Value.direction:type_name -> tast.common.perf.perfpb.Direction
1, // 1: tast.common.perf.perfpb.Values.values:type_name -> tast.common.perf.perfpb.Value
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_values_proto_init() }
func file_values_proto_init() {
if File_values_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_values_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Value); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_values_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Values); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_values_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_values_proto_goTypes,
DependencyIndexes: file_values_proto_depIdxs,
EnumInfos: file_values_proto_enumTypes,
MessageInfos: file_values_proto_msgTypes,
}.Build()
File_values_proto = out.File
file_values_proto_rawDesc = nil
file_values_proto_goTypes = nil
file_values_proto_depIdxs = nil
}