// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.19.4 // source: info.proto package valhalla 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) ) // the type of statistic we are recording type StatisticType int32 const ( StatisticType_count StatisticType = 0 StatisticType_gauge StatisticType = 1 StatisticType_timing StatisticType = 2 StatisticType_set StatisticType = 3 ) // Enum value maps for StatisticType. var ( StatisticType_name = map[int32]string{ 0: "count", 1: "gauge", 2: "timing", 3: "set", } StatisticType_value = map[string]int32{ "count": 0, "gauge": 1, "timing": 2, "set": 3, } ) func (x StatisticType) Enum() *StatisticType { p := new(StatisticType) *p = x return p } func (x StatisticType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (StatisticType) Descriptor() protoreflect.EnumDescriptor { return file_info_proto_enumTypes[0].Descriptor() } func (StatisticType) Type() protoreflect.EnumType { return &file_info_proto_enumTypes[0] } func (x StatisticType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use StatisticType.Descriptor instead. func (StatisticType) EnumDescriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{0} } type Statistic struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // the key/name of the statistic Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` // the value of the statistic Frequency float32 `protobuf:"fixed32,3,opt,name=frequency,proto3" json:"frequency,omitempty"` // how often to report the statistic [0-1] Type StatisticType `protobuf:"varint,4,opt,name=type,proto3,enum=valhalla.StatisticType" json:"type,omitempty"` // what type is it } func (x *Statistic) Reset() { *x = Statistic{} if protoimpl.UnsafeEnabled { mi := &file_info_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Statistic) String() string { return protoimpl.X.MessageStringOf(x) } func (*Statistic) ProtoMessage() {} func (x *Statistic) ProtoReflect() protoreflect.Message { mi := &file_info_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 Statistic.ProtoReflect.Descriptor instead. func (*Statistic) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{0} } func (x *Statistic) GetKey() string { if x != nil { return x.Key } return "" } func (x *Statistic) GetValue() float64 { if x != nil { return x.Value } return 0 } func (x *Statistic) GetFrequency() float32 { if x != nil { return x.Frequency } return 0 } func (x *Statistic) GetType() StatisticType { if x != nil { return x.Type } return StatisticType_count } type CodedDescription struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` Code uint64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` } func (x *CodedDescription) Reset() { *x = CodedDescription{} if protoimpl.UnsafeEnabled { mi := &file_info_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CodedDescription) String() string { return protoimpl.X.MessageStringOf(x) } func (*CodedDescription) ProtoMessage() {} func (x *CodedDescription) ProtoReflect() protoreflect.Message { mi := &file_info_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 CodedDescription.ProtoReflect.Descriptor instead. func (*CodedDescription) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{1} } func (x *CodedDescription) GetDescription() string { if x != nil { return x.Description } return "" } func (x *CodedDescription) GetCode() uint64 { if x != nil { return x.Code } return 0 } type Info struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Statistics []*Statistic `protobuf:"bytes,1,rep,name=statistics,proto3" json:"statistics,omitempty"` // stats that we collect during request processing Errors []*CodedDescription `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // errors that occured during request processing Warnings []*CodedDescription `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"` // warnings that occured during request processing IsService bool `protobuf:"varint,4,opt,name=is_service,json=isService,proto3" json:"is_service,omitempty"` // was this a service request/response rather than a direct call to the library } func (x *Info) Reset() { *x = Info{} if protoimpl.UnsafeEnabled { mi := &file_info_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Info) String() string { return protoimpl.X.MessageStringOf(x) } func (*Info) ProtoMessage() {} func (x *Info) ProtoReflect() protoreflect.Message { mi := &file_info_proto_msgTypes[2] 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 Info.ProtoReflect.Descriptor instead. func (*Info) Descriptor() ([]byte, []int) { return file_info_proto_rawDescGZIP(), []int{2} } func (x *Info) GetStatistics() []*Statistic { if x != nil { return x.Statistics } return nil } func (x *Info) GetErrors() []*CodedDescription { if x != nil { return x.Errors } return nil } func (x *Info) GetWarnings() []*CodedDescription { if x != nil { return x.Warnings } return nil } func (x *Info) GetIsService() bool { if x != nil { return x.IsService } return false } var File_info_proto protoreflect.FileDescriptor var file_info_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x76, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x61, 0x22, 0x7e, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x76, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x48, 0x0a, 0x10, 0x43, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x32, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x61, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x76, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x61, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2a, 0x3a, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x67, 0x61, 0x75, 0x67, 0x65, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x73, 0x65, 0x74, 0x10, 0x03, 0x42, 0x40, 0x48, 0x03, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x2e, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_info_proto_rawDescOnce sync.Once file_info_proto_rawDescData = file_info_proto_rawDesc ) func file_info_proto_rawDescGZIP() []byte { file_info_proto_rawDescOnce.Do(func() { file_info_proto_rawDescData = protoimpl.X.CompressGZIP(file_info_proto_rawDescData) }) return file_info_proto_rawDescData } var file_info_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_info_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_info_proto_goTypes = []interface{}{ (StatisticType)(0), // 0: valhalla.StatisticType (*Statistic)(nil), // 1: valhalla.Statistic (*CodedDescription)(nil), // 2: valhalla.CodedDescription (*Info)(nil), // 3: valhalla.Info } var file_info_proto_depIdxs = []int32{ 0, // 0: valhalla.Statistic.type:type_name -> valhalla.StatisticType 1, // 1: valhalla.Info.statistics:type_name -> valhalla.Statistic 2, // 2: valhalla.Info.errors:type_name -> valhalla.CodedDescription 2, // 3: valhalla.Info.warnings:type_name -> valhalla.CodedDescription 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_info_proto_init() } func file_info_proto_init() { if File_info_proto != nil { return } if !protoimpl.UnsafeEnabled { file_info_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Statistic); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_info_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CodedDescription); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_info_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Info); 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_info_proto_rawDesc, NumEnums: 1, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_info_proto_goTypes, DependencyIndexes: file_info_proto_depIdxs, EnumInfos: file_info_proto_enumTypes, MessageInfos: file_info_proto_msgTypes, }.Build() File_info_proto = out.File file_info_proto_rawDesc = nil file_info_proto_goTypes = nil file_info_proto_depIdxs = nil }