231 lines
8.3 KiB
Go
231 lines
8.3 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: api_method_stat_service.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 FindAPIMethodStatsWithDayRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Day string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"` // YYYYMMDD
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAPIMethodStatsWithDayRequest) Reset() {
|
|
*x = FindAPIMethodStatsWithDayRequest{}
|
|
mi := &file_api_method_stat_service_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAPIMethodStatsWithDayRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAPIMethodStatsWithDayRequest) ProtoMessage() {}
|
|
|
|
func (x *FindAPIMethodStatsWithDayRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_method_stat_service_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAPIMethodStatsWithDayRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindAPIMethodStatsWithDayRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_method_stat_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *FindAPIMethodStatsWithDayRequest) GetDay() string {
|
|
if x != nil {
|
|
return x.Day
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FindAPIMethodStatsWithDayResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ApiMethodStats []*APIMethodStat `protobuf:"bytes,1,rep,name=apiMethodStats,proto3" json:"apiMethodStats,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAPIMethodStatsWithDayResponse) Reset() {
|
|
*x = FindAPIMethodStatsWithDayResponse{}
|
|
mi := &file_api_method_stat_service_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAPIMethodStatsWithDayResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAPIMethodStatsWithDayResponse) ProtoMessage() {}
|
|
|
|
func (x *FindAPIMethodStatsWithDayResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_method_stat_service_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAPIMethodStatsWithDayResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindAPIMethodStatsWithDayResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_method_stat_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *FindAPIMethodStatsWithDayResponse) GetApiMethodStats() []*APIMethodStat {
|
|
if x != nil {
|
|
return x.ApiMethodStats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 检查是否有统计数据
|
|
type CountAPIMethodStatsWithDayRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Day string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"` // YYYYMMDD
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAPIMethodStatsWithDayRequest) Reset() {
|
|
*x = CountAPIMethodStatsWithDayRequest{}
|
|
mi := &file_api_method_stat_service_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAPIMethodStatsWithDayRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAPIMethodStatsWithDayRequest) ProtoMessage() {}
|
|
|
|
func (x *CountAPIMethodStatsWithDayRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_method_stat_service_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountAPIMethodStatsWithDayRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountAPIMethodStatsWithDayRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_method_stat_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CountAPIMethodStatsWithDayRequest) GetDay() string {
|
|
if x != nil {
|
|
return x.Day
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_api_method_stat_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_method_stat_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1dapi_method_stat_service.proto\x12\x02pb\x1a\"models/model_api_method_stat.proto\x1a\x19models/rpc_messages.proto\"4\n" +
|
|
" FindAPIMethodStatsWithDayRequest\x12\x10\n" +
|
|
"\x03day\x18\x01 \x01(\tR\x03day\"^\n" +
|
|
"!FindAPIMethodStatsWithDayResponse\x129\n" +
|
|
"\x0eapiMethodStats\x18\x01 \x03(\v2\x11.pb.APIMethodStatR\x0eapiMethodStats\"5\n" +
|
|
"!CountAPIMethodStatsWithDayRequest\x12\x10\n" +
|
|
"\x03day\x18\x01 \x01(\tR\x03day2\xdb\x01\n" +
|
|
"\x14APIMethodStatService\x12h\n" +
|
|
"\x19findAPIMethodStatsWithDay\x12$.pb.FindAPIMethodStatsWithDayRequest\x1a%.pb.FindAPIMethodStatsWithDayResponse\x12Y\n" +
|
|
"\x1acountAPIMethodStatsWithDay\x12%.pb.CountAPIMethodStatsWithDayRequest\x1a\x14.pb.RPCCountResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_api_method_stat_service_proto_rawDescOnce sync.Once
|
|
file_api_method_stat_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_method_stat_service_proto_rawDescGZIP() []byte {
|
|
file_api_method_stat_service_proto_rawDescOnce.Do(func() {
|
|
file_api_method_stat_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_method_stat_service_proto_rawDesc), len(file_api_method_stat_service_proto_rawDesc)))
|
|
})
|
|
return file_api_method_stat_service_proto_rawDescData
|
|
}
|
|
|
|
var file_api_method_stat_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_api_method_stat_service_proto_goTypes = []any{
|
|
(*FindAPIMethodStatsWithDayRequest)(nil), // 0: pb.FindAPIMethodStatsWithDayRequest
|
|
(*FindAPIMethodStatsWithDayResponse)(nil), // 1: pb.FindAPIMethodStatsWithDayResponse
|
|
(*CountAPIMethodStatsWithDayRequest)(nil), // 2: pb.CountAPIMethodStatsWithDayRequest
|
|
(*APIMethodStat)(nil), // 3: pb.APIMethodStat
|
|
(*RPCCountResponse)(nil), // 4: pb.RPCCountResponse
|
|
}
|
|
var file_api_method_stat_service_proto_depIdxs = []int32{
|
|
3, // 0: pb.FindAPIMethodStatsWithDayResponse.apiMethodStats:type_name -> pb.APIMethodStat
|
|
0, // 1: pb.APIMethodStatService.findAPIMethodStatsWithDay:input_type -> pb.FindAPIMethodStatsWithDayRequest
|
|
2, // 2: pb.APIMethodStatService.countAPIMethodStatsWithDay:input_type -> pb.CountAPIMethodStatsWithDayRequest
|
|
1, // 3: pb.APIMethodStatService.findAPIMethodStatsWithDay:output_type -> pb.FindAPIMethodStatsWithDayResponse
|
|
4, // 4: pb.APIMethodStatService.countAPIMethodStatsWithDay:output_type -> pb.RPCCountResponse
|
|
3, // [3:5] is the sub-list for method output_type
|
|
1, // [1:3] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_method_stat_service_proto_init() }
|
|
func file_api_method_stat_service_proto_init() {
|
|
if File_api_method_stat_service_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_api_method_stat_proto_init()
|
|
file_models_rpc_messages_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_method_stat_service_proto_rawDesc), len(file_api_method_stat_service_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_api_method_stat_service_proto_goTypes,
|
|
DependencyIndexes: file_api_method_stat_service_proto_depIdxs,
|
|
MessageInfos: file_api_method_stat_service_proto_msgTypes,
|
|
}.Build()
|
|
File_api_method_stat_service_proto = out.File
|
|
file_api_method_stat_service_proto_goTypes = nil
|
|
file_api_method_stat_service_proto_depIdxs = nil
|
|
}
|