Autogenerated update for 34e63ea6ba...b8bc25bb8e
This commit is contained in:
@@ -387,6 +387,53 @@ func (x *IdMessage) GetID() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type IdListMessage struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID []int64 `protobuf:"varint,1,rep,packed,name=ID,proto3" json:"ID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *IdListMessage) Reset() {
|
||||
*x = IdListMessage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IdListMessage) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdListMessage) ProtoMessage() {}
|
||||
|
||||
func (x *IdListMessage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[4]
|
||||
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 IdListMessage.ProtoReflect.Descriptor instead.
|
||||
func (*IdListMessage) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *IdListMessage) GetID() []int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type TimeList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -399,7 +446,7 @@ type TimeList struct {
|
||||
func (x *TimeList) Reset() {
|
||||
*x = TimeList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[4]
|
||||
mi := &file_times_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -412,7 +459,7 @@ func (x *TimeList) String() string {
|
||||
func (*TimeList) ProtoMessage() {}
|
||||
|
||||
func (x *TimeList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[4]
|
||||
mi := &file_times_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -425,7 +472,7 @@ func (x *TimeList) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use TimeList.ProtoReflect.Descriptor instead.
|
||||
func (*TimeList) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{4}
|
||||
return file_times_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *TimeList) GetTimes() []*TimeResponse {
|
||||
@@ -442,18 +489,66 @@ func (x *TimeList) GetTotal() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type RankListResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Ranks []*RankResponse `protobuf:"bytes,1,rep,name=Ranks,proto3" json:"Ranks,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RankListResponse) Reset() {
|
||||
*x = RankListResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RankListResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RankListResponse) ProtoMessage() {}
|
||||
|
||||
func (x *RankListResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[6]
|
||||
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 RankListResponse.ProtoReflect.Descriptor instead.
|
||||
func (*RankListResponse) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *RankListResponse) GetRanks() []*RankResponse {
|
||||
if x != nil {
|
||||
return x.Ranks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RankResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Rank int64 `protobuf:"varint,1,opt,name=Rank,proto3" json:"Rank,omitempty"`
|
||||
ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RankResponse) Reset() {
|
||||
*x = RankResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[5]
|
||||
mi := &file_times_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -466,7 +561,7 @@ func (x *RankResponse) String() string {
|
||||
func (*RankResponse) ProtoMessage() {}
|
||||
|
||||
func (x *RankResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[5]
|
||||
mi := &file_times_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -479,7 +574,7 @@ func (x *RankResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RankResponse.ProtoReflect.Descriptor instead.
|
||||
func (*RankResponse) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{5}
|
||||
return file_times_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *RankResponse) GetRank() int64 {
|
||||
@@ -489,6 +584,13 @@ func (x *RankResponse) GetRank() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RankResponse) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ListRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -507,7 +609,7 @@ type ListRequest struct {
|
||||
func (x *ListRequest) Reset() {
|
||||
*x = ListRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[6]
|
||||
mi := &file_times_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -520,7 +622,7 @@ func (x *ListRequest) String() string {
|
||||
func (*ListRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[6]
|
||||
mi := &file_times_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -533,7 +635,7 @@ func (x *ListRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListRequest) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{6}
|
||||
return file_times_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *ListRequest) GetFilter() *TimeFilter {
|
||||
@@ -576,7 +678,7 @@ type WrListRequest struct {
|
||||
func (x *WrListRequest) Reset() {
|
||||
*x = WrListRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[7]
|
||||
mi := &file_times_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -589,7 +691,7 @@ func (x *WrListRequest) String() string {
|
||||
func (*WrListRequest) ProtoMessage() {}
|
||||
|
||||
func (x *WrListRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[7]
|
||||
mi := &file_times_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -602,7 +704,7 @@ func (x *WrListRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use WrListRequest.ProtoReflect.Descriptor instead.
|
||||
func (*WrListRequest) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{7}
|
||||
return file_times_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *WrListRequest) GetFilter() *TimeFilter {
|
||||
@@ -631,7 +733,7 @@ type Pagination struct {
|
||||
func (x *Pagination) Reset() {
|
||||
*x = Pagination{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[8]
|
||||
mi := &file_times_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -644,7 +746,7 @@ func (x *Pagination) String() string {
|
||||
func (*Pagination) ProtoMessage() {}
|
||||
|
||||
func (x *Pagination) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[8]
|
||||
mi := &file_times_proto_msgTypes[10]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -657,7 +759,7 @@ func (x *Pagination) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
|
||||
func (*Pagination) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{8}
|
||||
return file_times_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *Pagination) GetSize() int32 {
|
||||
@@ -683,7 +785,7 @@ type NullResponse struct {
|
||||
func (x *NullResponse) Reset() {
|
||||
*x = NullResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_times_proto_msgTypes[9]
|
||||
mi := &file_times_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -696,7 +798,7 @@ func (x *NullResponse) String() string {
|
||||
func (*NullResponse) ProtoMessage() {}
|
||||
|
||||
func (x *NullResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_times_proto_msgTypes[9]
|
||||
mi := &file_times_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -709,7 +811,7 @@ func (x *NullResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use NullResponse.ProtoReflect.Descriptor instead.
|
||||
func (*NullResponse) Descriptor() ([]byte, []int) {
|
||||
return file_times_proto_rawDescGZIP(), []int{9}
|
||||
return file_times_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
var File_times_proto protoreflect.FileDescriptor
|
||||
@@ -775,14 +877,21 @@ var file_times_proto_rawDesc = []byte{
|
||||
0x16, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x42, 0x6f, 0x74, 0x22,
|
||||
0x1b, 0x0a, 0x09, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02,
|
||||
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x22, 0x4b, 0x0a, 0x08,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x54, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x54, 0x69,
|
||||
0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x22, 0x0a, 0x0c, 0x52, 0x61, 0x6e,
|
||||
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x22, 0x1f, 0x0a, 0x0d,
|
||||
0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a,
|
||||
0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x22, 0x4b, 0x0a,
|
||||
0x08, 0x54, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x54, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
||||
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x54,
|
||||
0x69, 0x6d, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x3d, 0x0a, 0x10, 0x52, 0x61,
|
||||
0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29,
|
||||
0x0a, 0x05, 0x52, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x52, 0x05, 0x52, 0x61, 0x6e, 0x6b, 0x73, 0x22, 0x32, 0x0a, 0x0c, 0x52, 0x61, 0x6e,
|
||||
0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x52, 0x61, 0x6e,
|
||||
0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x52, 0x61, 0x6e, 0x6b, 0x22, 0x95, 0x01,
|
||||
0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x52, 0x61, 0x6e, 0x6b, 0x12, 0x0e, 0x0a,
|
||||
0x02, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x22, 0x95, 0x01,
|
||||
0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a,
|
||||
0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
|
||||
@@ -803,7 +912,7 @@ var file_times_proto_rawDesc = []byte{
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x4e, 0x75,
|
||||
0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x4e, 0x75, 0x6d, 0x62,
|
||||
0x65, 0x72, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x32, 0xdd, 0x02, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76,
|
||||
0x73, 0x65, 0x32, 0x99, 0x03, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76,
|
||||
0x69, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x12, 0x2e,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x10, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73,
|
||||
@@ -825,10 +934,13 @@ var file_times_proto_rawDesc = []byte{
|
||||
0x69, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x52, 0x61, 0x6e, 0x6b, 0x12, 0x10, 0x2e, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x13, 0x2e,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x74, 0x7a, 0x61, 0x6e, 0x61,
|
||||
0x2e, 0x6d, 0x65, 0x2f, 0x73, 0x74, 0x72, 0x61, 0x66, 0x65, 0x73, 0x6e, 0x65, 0x74, 0x2f, 0x67,
|
||||
0x6f, 0x2d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
0x73, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x6b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12,
|
||||
0x14, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65,
|
||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x17, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x52, 0x61,
|
||||
0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x28,
|
||||
0x5a, 0x26, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x74, 0x7a, 0x61, 0x6e, 0x61, 0x2e, 0x6d, 0x65, 0x2f,
|
||||
0x73, 0x74, 0x72, 0x61, 0x66, 0x65, 0x73, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x72,
|
||||
0x70, 0x63, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -843,50 +955,55 @@ func file_times_proto_rawDescGZIP() []byte {
|
||||
return file_times_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_times_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_times_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||
var file_times_proto_goTypes = []interface{}{
|
||||
(*TimeRequest)(nil), // 0: times.TimeRequest
|
||||
(*TimeFilter)(nil), // 1: times.TimeFilter
|
||||
(*TimeResponse)(nil), // 2: times.TimeResponse
|
||||
(*IdMessage)(nil), // 3: times.IdMessage
|
||||
(*TimeList)(nil), // 4: times.TimeList
|
||||
(*RankResponse)(nil), // 5: times.RankResponse
|
||||
(*ListRequest)(nil), // 6: times.ListRequest
|
||||
(*WrListRequest)(nil), // 7: times.WrListRequest
|
||||
(*Pagination)(nil), // 8: times.Pagination
|
||||
(*NullResponse)(nil), // 9: times.NullResponse
|
||||
(*users.UserResponse)(nil), // 10: users.UserResponse
|
||||
(*maps.MapResponse)(nil), // 11: maps.MapResponse
|
||||
(*bots.BotResponse)(nil), // 12: bots.BotResponse
|
||||
(*IdListMessage)(nil), // 4: times.IdListMessage
|
||||
(*TimeList)(nil), // 5: times.TimeList
|
||||
(*RankListResponse)(nil), // 6: times.RankListResponse
|
||||
(*RankResponse)(nil), // 7: times.RankResponse
|
||||
(*ListRequest)(nil), // 8: times.ListRequest
|
||||
(*WrListRequest)(nil), // 9: times.WrListRequest
|
||||
(*Pagination)(nil), // 10: times.Pagination
|
||||
(*NullResponse)(nil), // 11: times.NullResponse
|
||||
(*users.UserResponse)(nil), // 12: users.UserResponse
|
||||
(*maps.MapResponse)(nil), // 13: maps.MapResponse
|
||||
(*bots.BotResponse)(nil), // 14: bots.BotResponse
|
||||
}
|
||||
var file_times_proto_depIdxs = []int32{
|
||||
10, // 0: times.TimeResponse.User:type_name -> users.UserResponse
|
||||
11, // 1: times.TimeResponse.Map:type_name -> maps.MapResponse
|
||||
12, // 2: times.TimeResponse.Bot:type_name -> bots.BotResponse
|
||||
12, // 0: times.TimeResponse.User:type_name -> users.UserResponse
|
||||
13, // 1: times.TimeResponse.Map:type_name -> maps.MapResponse
|
||||
14, // 2: times.TimeResponse.Bot:type_name -> bots.BotResponse
|
||||
2, // 3: times.TimeList.Times:type_name -> times.TimeResponse
|
||||
1, // 4: times.ListRequest.Filter:type_name -> times.TimeFilter
|
||||
8, // 5: times.ListRequest.Page:type_name -> times.Pagination
|
||||
1, // 6: times.WrListRequest.Filter:type_name -> times.TimeFilter
|
||||
8, // 7: times.WrListRequest.Page:type_name -> times.Pagination
|
||||
0, // 8: times.TimesService.Create:input_type -> times.TimeRequest
|
||||
0, // 9: times.TimesService.Update:input_type -> times.TimeRequest
|
||||
3, // 10: times.TimesService.Delete:input_type -> times.IdMessage
|
||||
3, // 11: times.TimesService.Get:input_type -> times.IdMessage
|
||||
6, // 12: times.TimesService.List:input_type -> times.ListRequest
|
||||
7, // 13: times.TimesService.ListWr:input_type -> times.WrListRequest
|
||||
3, // 14: times.TimesService.Rank:input_type -> times.IdMessage
|
||||
3, // 15: times.TimesService.Create:output_type -> times.IdMessage
|
||||
9, // 16: times.TimesService.Update:output_type -> times.NullResponse
|
||||
9, // 17: times.TimesService.Delete:output_type -> times.NullResponse
|
||||
2, // 18: times.TimesService.Get:output_type -> times.TimeResponse
|
||||
4, // 19: times.TimesService.List:output_type -> times.TimeList
|
||||
4, // 20: times.TimesService.ListWr:output_type -> times.TimeList
|
||||
5, // 21: times.TimesService.Rank:output_type -> times.RankResponse
|
||||
15, // [15:22] is the sub-list for method output_type
|
||||
8, // [8:15] is the sub-list for method input_type
|
||||
8, // [8:8] is the sub-list for extension type_name
|
||||
8, // [8:8] is the sub-list for extension extendee
|
||||
0, // [0:8] is the sub-list for field type_name
|
||||
7, // 4: times.RankListResponse.Ranks:type_name -> times.RankResponse
|
||||
1, // 5: times.ListRequest.Filter:type_name -> times.TimeFilter
|
||||
10, // 6: times.ListRequest.Page:type_name -> times.Pagination
|
||||
1, // 7: times.WrListRequest.Filter:type_name -> times.TimeFilter
|
||||
10, // 8: times.WrListRequest.Page:type_name -> times.Pagination
|
||||
0, // 9: times.TimesService.Create:input_type -> times.TimeRequest
|
||||
0, // 10: times.TimesService.Update:input_type -> times.TimeRequest
|
||||
3, // 11: times.TimesService.Delete:input_type -> times.IdMessage
|
||||
3, // 12: times.TimesService.Get:input_type -> times.IdMessage
|
||||
8, // 13: times.TimesService.List:input_type -> times.ListRequest
|
||||
9, // 14: times.TimesService.ListWr:input_type -> times.WrListRequest
|
||||
3, // 15: times.TimesService.Rank:input_type -> times.IdMessage
|
||||
4, // 16: times.TimesService.RankBatch:input_type -> times.IdListMessage
|
||||
3, // 17: times.TimesService.Create:output_type -> times.IdMessage
|
||||
11, // 18: times.TimesService.Update:output_type -> times.NullResponse
|
||||
11, // 19: times.TimesService.Delete:output_type -> times.NullResponse
|
||||
2, // 20: times.TimesService.Get:output_type -> times.TimeResponse
|
||||
5, // 21: times.TimesService.List:output_type -> times.TimeList
|
||||
5, // 22: times.TimesService.ListWr:output_type -> times.TimeList
|
||||
7, // 23: times.TimesService.Rank:output_type -> times.RankResponse
|
||||
6, // 24: times.TimesService.RankBatch:output_type -> times.RankListResponse
|
||||
17, // [17:25] is the sub-list for method output_type
|
||||
9, // [9:17] is the sub-list for method input_type
|
||||
9, // [9:9] is the sub-list for extension type_name
|
||||
9, // [9:9] is the sub-list for extension extendee
|
||||
0, // [0:9] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_times_proto_init() }
|
||||
@@ -944,7 +1061,7 @@ func file_times_proto_init() {
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*TimeList); i {
|
||||
switch v := v.(*IdListMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -956,7 +1073,7 @@ func file_times_proto_init() {
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RankResponse); i {
|
||||
switch v := v.(*TimeList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -968,7 +1085,7 @@ func file_times_proto_init() {
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ListRequest); i {
|
||||
switch v := v.(*RankListResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -980,7 +1097,7 @@ func file_times_proto_init() {
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WrListRequest); i {
|
||||
switch v := v.(*RankResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -992,7 +1109,7 @@ func file_times_proto_init() {
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pagination); i {
|
||||
switch v := v.(*ListRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -1004,6 +1121,30 @@ func file_times_proto_init() {
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*WrListRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Pagination); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_times_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NullResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -1025,7 +1166,7 @@ func file_times_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_times_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumMessages: 12,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -29,6 +29,7 @@ type TimesServiceClient interface {
|
||||
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*TimeList, error)
|
||||
ListWr(ctx context.Context, in *WrListRequest, opts ...grpc.CallOption) (*TimeList, error)
|
||||
Rank(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*RankResponse, error)
|
||||
RankBatch(ctx context.Context, in *IdListMessage, opts ...grpc.CallOption) (*RankListResponse, error)
|
||||
}
|
||||
|
||||
type timesServiceClient struct {
|
||||
@@ -102,6 +103,15 @@ func (c *timesServiceClient) Rank(ctx context.Context, in *IdMessage, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *timesServiceClient) RankBatch(ctx context.Context, in *IdListMessage, opts ...grpc.CallOption) (*RankListResponse, error) {
|
||||
out := new(RankListResponse)
|
||||
err := c.cc.Invoke(ctx, "/times.TimesService/RankBatch", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// TimesServiceServer is the server API for TimesService service.
|
||||
// All implementations must embed UnimplementedTimesServiceServer
|
||||
// for forward compatibility
|
||||
@@ -113,6 +123,7 @@ type TimesServiceServer interface {
|
||||
List(context.Context, *ListRequest) (*TimeList, error)
|
||||
ListWr(context.Context, *WrListRequest) (*TimeList, error)
|
||||
Rank(context.Context, *IdMessage) (*RankResponse, error)
|
||||
RankBatch(context.Context, *IdListMessage) (*RankListResponse, error)
|
||||
mustEmbedUnimplementedTimesServiceServer()
|
||||
}
|
||||
|
||||
@@ -141,6 +152,9 @@ func (UnimplementedTimesServiceServer) ListWr(context.Context, *WrListRequest) (
|
||||
func (UnimplementedTimesServiceServer) Rank(context.Context, *IdMessage) (*RankResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Rank not implemented")
|
||||
}
|
||||
func (UnimplementedTimesServiceServer) RankBatch(context.Context, *IdListMessage) (*RankListResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method RankBatch not implemented")
|
||||
}
|
||||
func (UnimplementedTimesServiceServer) mustEmbedUnimplementedTimesServiceServer() {}
|
||||
|
||||
// UnsafeTimesServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
@@ -280,6 +294,24 @@ func _TimesService_Rank_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TimesService_RankBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdListMessage)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TimesServiceServer).RankBatch(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/times.TimesService/RankBatch",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TimesServiceServer).RankBatch(ctx, req.(*IdListMessage))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// TimesService_ServiceDesc is the grpc.ServiceDesc for TimesService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -315,6 +347,10 @@ var TimesService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "Rank",
|
||||
Handler: _TimesService_Rank_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RankBatch",
|
||||
Handler: _TimesService_RankBatch_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "times.proto",
|
||||
|
||||
Reference in New Issue
Block a user