From aa7d48f6ecab8c40ee0ac13656bc5f11268fe646 Mon Sep 17 00:00:00 2001 From: itzaname Date: Sun, 17 Jul 2022 06:23:51 +0000 Subject: [PATCH] Autogenerated update 35af70ed08df75da2586ca56efbe66718ff12e72 --- servers/servers.pb.go | 957 ++++++++++++++++++++++++++ servers/servers_grpc.pb.go | 249 +++++++ times/times.pb.go | 944 ++++++++++++++++++++++++++ times/times_grpc.pb.go | 285 ++++++++ transactions/transactions.pb.go | 973 +++++++++++++++++++++++++++ transactions/transactions_grpc.pb.go | 285 ++++++++ 6 files changed, 3693 insertions(+) create mode 100644 servers/servers.pb.go create mode 100644 servers/servers_grpc.pb.go create mode 100644 times/times.pb.go create mode 100644 times/times_grpc.pb.go create mode 100644 transactions/transactions.pb.go create mode 100644 transactions/transactions_grpc.pb.go diff --git a/servers/servers.pb.go b/servers/servers.pb.go new file mode 100644 index 0000000..ea3c8d1 --- /dev/null +++ b/servers/servers.pb.go @@ -0,0 +1,957 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.21.2 +// source: servers.proto + +package servers + +import ( + maps "git.itzana.me/strafesnet/protobufs/rpc/maps" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + users "pkg/rpc/users" + 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 ServerList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Servers []*ServerItem `protobuf:"bytes,1,rep,name=Servers,proto3" json:"Servers,omitempty"` +} + +func (x *ServerList) Reset() { + *x = ServerList{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerList) ProtoMessage() {} + +func (x *ServerList) ProtoReflect() protoreflect.Message { + mi := &file_servers_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 ServerList.ProtoReflect.Descriptor instead. +func (*ServerList) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{0} +} + +func (x *ServerList) GetServers() []*ServerItem { + if x != nil { + return x.Servers + } + return nil +} + +type IdMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` +} + +func (x *IdMessage) Reset() { + *x = IdMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IdMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IdMessage) ProtoMessage() {} + +func (x *IdMessage) ProtoReflect() protoreflect.Message { + mi := &file_servers_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 IdMessage.ProtoReflect.Descriptor instead. +func (*IdMessage) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{1} +} + +func (x *IdMessage) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +type ServerCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + PlaceID int64 `protobuf:"varint,2,opt,name=PlaceID,proto3" json:"PlaceID,omitempty"` + StartTime int64 `protobuf:"varint,3,opt,name=StartTime,proto3" json:"StartTime,omitempty"` + VipServerID string `protobuf:"bytes,4,opt,name=VipServerID,proto3" json:"VipServerID,omitempty"` + UserID int64 `protobuf:"varint,5,opt,name=UserID,proto3" json:"UserID,omitempty"` + GameID int32 `protobuf:"varint,6,opt,name=GameID,proto3" json:"GameID,omitempty"` + MapID int64 `protobuf:"varint,7,opt,name=MapID,proto3" json:"MapID,omitempty"` + MapDate int64 `protobuf:"varint,8,opt,name=MapDate,proto3" json:"MapDate,omitempty"` + PlayerList []int64 `protobuf:"varint,9,rep,packed,name=PlayerList,proto3" json:"PlayerList,omitempty"` + LastUpdate int64 `protobuf:"varint,10,opt,name=LastUpdate,proto3" json:"LastUpdate,omitempty"` +} + +func (x *ServerCreate) Reset() { + *x = ServerCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerCreate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerCreate) ProtoMessage() {} + +func (x *ServerCreate) ProtoReflect() protoreflect.Message { + mi := &file_servers_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 ServerCreate.ProtoReflect.Descriptor instead. +func (*ServerCreate) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{2} +} + +func (x *ServerCreate) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +func (x *ServerCreate) GetPlaceID() int64 { + if x != nil { + return x.PlaceID + } + return 0 +} + +func (x *ServerCreate) GetStartTime() int64 { + if x != nil { + return x.StartTime + } + return 0 +} + +func (x *ServerCreate) GetVipServerID() string { + if x != nil { + return x.VipServerID + } + return "" +} + +func (x *ServerCreate) GetUserID() int64 { + if x != nil { + return x.UserID + } + return 0 +} + +func (x *ServerCreate) GetGameID() int32 { + if x != nil { + return x.GameID + } + return 0 +} + +func (x *ServerCreate) GetMapID() int64 { + if x != nil { + return x.MapID + } + return 0 +} + +func (x *ServerCreate) GetMapDate() int64 { + if x != nil { + return x.MapDate + } + return 0 +} + +func (x *ServerCreate) GetPlayerList() []int64 { + if x != nil { + return x.PlayerList + } + return nil +} + +func (x *ServerCreate) GetLastUpdate() int64 { + if x != nil { + return x.LastUpdate + } + return 0 +} + +type ServerItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + PlaceID int64 `protobuf:"varint,2,opt,name=PlaceID,proto3" json:"PlaceID,omitempty"` + StartTime int64 `protobuf:"varint,3,opt,name=StartTime,proto3" json:"StartTime,omitempty"` + VipServerID string `protobuf:"bytes,4,opt,name=VipServerID,proto3" json:"VipServerID,omitempty"` + User *users.UserResponse `protobuf:"bytes,5,opt,name=User,proto3" json:"User,omitempty"` + GameID int32 `protobuf:"varint,6,opt,name=GameID,proto3" json:"GameID,omitempty"` + Map *maps.MapResponse `protobuf:"bytes,7,opt,name=Map,proto3" json:"Map,omitempty"` + MapDate int64 `protobuf:"varint,8,opt,name=MapDate,proto3" json:"MapDate,omitempty"` + PlayerList []int64 `protobuf:"varint,9,rep,packed,name=PlayerList,proto3" json:"PlayerList,omitempty"` + LastUpdate int64 `protobuf:"varint,10,opt,name=LastUpdate,proto3" json:"LastUpdate,omitempty"` +} + +func (x *ServerItem) Reset() { + *x = ServerItem{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerItem) ProtoMessage() {} + +func (x *ServerItem) ProtoReflect() protoreflect.Message { + mi := &file_servers_proto_msgTypes[3] + 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 ServerItem.ProtoReflect.Descriptor instead. +func (*ServerItem) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{3} +} + +func (x *ServerItem) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +func (x *ServerItem) GetPlaceID() int64 { + if x != nil { + return x.PlaceID + } + return 0 +} + +func (x *ServerItem) GetStartTime() int64 { + if x != nil { + return x.StartTime + } + return 0 +} + +func (x *ServerItem) GetVipServerID() string { + if x != nil { + return x.VipServerID + } + return "" +} + +func (x *ServerItem) GetUser() *users.UserResponse { + if x != nil { + return x.User + } + return nil +} + +func (x *ServerItem) GetGameID() int32 { + if x != nil { + return x.GameID + } + return 0 +} + +func (x *ServerItem) GetMap() *maps.MapResponse { + if x != nil { + return x.Map + } + return nil +} + +func (x *ServerItem) GetMapDate() int64 { + if x != nil { + return x.MapDate + } + return 0 +} + +func (x *ServerItem) GetPlayerList() []int64 { + if x != nil { + return x.PlayerList + } + return nil +} + +func (x *ServerItem) GetLastUpdate() int64 { + if x != nil { + return x.LastUpdate + } + return 0 +} + +type ServerUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + MapID *int64 `protobuf:"varint,2,opt,name=MapID,proto3,oneof" json:"MapID,omitempty"` + MapDate *int64 `protobuf:"varint,3,opt,name=MapDate,proto3,oneof" json:"MapDate,omitempty"` + PlayerList []int64 `protobuf:"varint,4,rep,packed,name=PlayerList,proto3" json:"PlayerList,omitempty"` +} + +func (x *ServerUpdate) Reset() { + *x = ServerUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerUpdate) ProtoMessage() {} + +func (x *ServerUpdate) ProtoReflect() protoreflect.Message { + mi := &file_servers_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 ServerUpdate.ProtoReflect.Descriptor instead. +func (*ServerUpdate) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{4} +} + +func (x *ServerUpdate) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +func (x *ServerUpdate) GetMapID() int64 { + if x != nil && x.MapID != nil { + return *x.MapID + } + return 0 +} + +func (x *ServerUpdate) GetMapDate() int64 { + if x != nil && x.MapDate != nil { + return *x.MapDate + } + return 0 +} + +func (x *ServerUpdate) GetPlayerList() []int64 { + if x != nil { + return x.PlayerList + } + return nil +} + +type ServerFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID *string `protobuf:"bytes,1,opt,name=ID,proto3,oneof" json:"ID,omitempty"` + PlaceID *int64 `protobuf:"varint,2,opt,name=PlaceID,proto3,oneof" json:"PlaceID,omitempty"` + VipServerID *string `protobuf:"bytes,4,opt,name=VipServerID,proto3,oneof" json:"VipServerID,omitempty"` + UserID *int64 `protobuf:"varint,5,opt,name=UserID,proto3,oneof" json:"UserID,omitempty"` + GameID *int32 `protobuf:"varint,6,opt,name=GameID,proto3,oneof" json:"GameID,omitempty"` + MapID *int64 `protobuf:"varint,7,opt,name=MapID,proto3,oneof" json:"MapID,omitempty"` +} + +func (x *ServerFilter) Reset() { + *x = ServerFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerFilter) ProtoMessage() {} + +func (x *ServerFilter) ProtoReflect() protoreflect.Message { + mi := &file_servers_proto_msgTypes[5] + 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 ServerFilter.ProtoReflect.Descriptor instead. +func (*ServerFilter) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{5} +} + +func (x *ServerFilter) GetID() string { + if x != nil && x.ID != nil { + return *x.ID + } + return "" +} + +func (x *ServerFilter) GetPlaceID() int64 { + if x != nil && x.PlaceID != nil { + return *x.PlaceID + } + return 0 +} + +func (x *ServerFilter) GetVipServerID() string { + if x != nil && x.VipServerID != nil { + return *x.VipServerID + } + return "" +} + +func (x *ServerFilter) GetUserID() int64 { + if x != nil && x.UserID != nil { + return *x.UserID + } + return 0 +} + +func (x *ServerFilter) GetGameID() int32 { + if x != nil && x.GameID != nil { + return *x.GameID + } + return 0 +} + +func (x *ServerFilter) GetMapID() int64 { + if x != nil && x.MapID != nil { + return *x.MapID + } + return 0 +} + +type Pagination struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Size int32 `protobuf:"varint,1,opt,name=Size,proto3" json:"Size,omitempty"` + Number int32 `protobuf:"varint,2,opt,name=Number,proto3" json:"Number,omitempty"` +} + +func (x *Pagination) Reset() { + *x = Pagination{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Pagination) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Pagination) ProtoMessage() {} + +func (x *Pagination) ProtoReflect() protoreflect.Message { + mi := &file_servers_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 Pagination.ProtoReflect.Descriptor instead. +func (*Pagination) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{6} +} + +func (x *Pagination) GetSize() int32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *Pagination) GetNumber() int32 { + if x != nil { + return x.Number + } + return 0 +} + +type ServerListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *ServerFilter `protobuf:"bytes,1,opt,name=Filter,proto3" json:"Filter,omitempty"` + Page *Pagination `protobuf:"bytes,2,opt,name=Page,proto3" json:"Page,omitempty"` +} + +func (x *ServerListRequest) Reset() { + *x = ServerListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerListRequest) ProtoMessage() {} + +func (x *ServerListRequest) ProtoReflect() protoreflect.Message { + mi := &file_servers_proto_msgTypes[7] + 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 ServerListRequest.ProtoReflect.Descriptor instead. +func (*ServerListRequest) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{7} +} + +func (x *ServerListRequest) GetFilter() *ServerFilter { + if x != nil { + return x.Filter + } + return nil +} + +func (x *ServerListRequest) GetPage() *Pagination { + if x != nil { + return x.Page + } + return nil +} + +type NullResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NullResponse) Reset() { + *x = NullResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_servers_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NullResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NullResponse) ProtoMessage() {} + +func (x *NullResponse) ProtoReflect() protoreflect.Message { + mi := &file_servers_proto_msgTypes[8] + 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 NullResponse.ProtoReflect.Descriptor instead. +func (*NullResponse) Descriptor() ([]byte, []int) { + return file_servers_proto_rawDescGZIP(), []int{8} +} + +var File_servers_proto protoreflect.FileDescriptor + +var file_servers_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x1a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x3b, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x2d, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x07, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x22, 0x1b, + 0x0a, 0x09, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, + 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x22, 0x98, 0x02, 0x0a, 0x0c, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, + 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, + 0x50, 0x6c, 0x61, 0x63, 0x65, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x50, + 0x6c, 0x61, 0x63, 0x65, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, + 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x56, 0x69, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x56, 0x69, 0x70, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, + 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, + 0x4d, 0x61, 0x70, 0x44, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x4d, + 0x61, 0x70, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x4c, 0x69, 0x73, 0x74, 0x18, 0x09, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, 0x50, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x4c, 0x61, 0x73, 0x74, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, 0xb6, 0x02, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x49, 0x44, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x49, 0x44, 0x12, + 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x56, 0x69, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x56, 0x69, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x12, + 0x27, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, + 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, + 0x12, 0x23, 0x0a, 0x03, 0x4d, 0x61, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x03, 0x4d, 0x61, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x61, 0x70, 0x44, 0x61, 0x74, 0x65, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x4d, 0x61, 0x70, 0x44, 0x61, 0x74, 0x65, 0x12, + 0x1e, 0x0a, 0x0a, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x09, 0x20, + 0x03, 0x28, 0x03, 0x52, 0x0a, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0a, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x22, + 0x8e, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, + 0x12, 0x19, 0x0a, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, + 0x00, 0x52, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x4d, + 0x61, 0x70, 0x44, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x07, + 0x4d, 0x61, 0x70, 0x44, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1e, 0x0a, 0x0a, 0x50, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, + 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x4d, + 0x61, 0x70, 0x49, 0x44, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x4d, 0x61, 0x70, 0x44, 0x61, 0x74, 0x65, + 0x22, 0x81, 0x02, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x12, 0x13, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x02, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x49, + 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x07, 0x50, 0x6c, 0x61, 0x63, 0x65, + 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x56, 0x69, 0x70, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0b, 0x56, 0x69, + 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, 0x52, 0x06, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x47, 0x61, 0x6d, + 0x65, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x48, 0x04, 0x52, 0x06, 0x47, 0x61, 0x6d, + 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x03, 0x48, 0x05, 0x52, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x88, 0x01, + 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x49, 0x44, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x50, 0x6c, 0x61, + 0x63, 0x65, 0x49, 0x44, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x56, 0x69, 0x70, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x49, 0x44, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x4d, + 0x61, 0x70, 0x49, 0x44, 0x22, 0x38, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 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, 0x6b, + 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x27, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x50, 0x61, 0x67, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, + 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x9d, 0x02, 0x0a, 0x0d, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, + 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x15, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, + 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, + 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, + 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x15, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x13, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x74, + 0x65, 0x6d, 0x12, 0x37, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1a, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x30, 0x5a, 0x2e, 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, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_servers_proto_rawDescOnce sync.Once + file_servers_proto_rawDescData = file_servers_proto_rawDesc +) + +func file_servers_proto_rawDescGZIP() []byte { + file_servers_proto_rawDescOnce.Do(func() { + file_servers_proto_rawDescData = protoimpl.X.CompressGZIP(file_servers_proto_rawDescData) + }) + return file_servers_proto_rawDescData +} + +var file_servers_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_servers_proto_goTypes = []interface{}{ + (*ServerList)(nil), // 0: servers.ServerList + (*IdMessage)(nil), // 1: servers.IdMessage + (*ServerCreate)(nil), // 2: servers.ServerCreate + (*ServerItem)(nil), // 3: servers.ServerItem + (*ServerUpdate)(nil), // 4: servers.ServerUpdate + (*ServerFilter)(nil), // 5: servers.ServerFilter + (*Pagination)(nil), // 6: servers.Pagination + (*ServerListRequest)(nil), // 7: servers.ServerListRequest + (*NullResponse)(nil), // 8: servers.NullResponse + (*users.UserResponse)(nil), // 9: users.UserResponse + (*maps.MapResponse)(nil), // 10: maps.MapResponse +} +var file_servers_proto_depIdxs = []int32{ + 3, // 0: servers.ServerList.Servers:type_name -> servers.ServerItem + 9, // 1: servers.ServerItem.User:type_name -> users.UserResponse + 10, // 2: servers.ServerItem.Map:type_name -> maps.MapResponse + 5, // 3: servers.ServerListRequest.Filter:type_name -> servers.ServerFilter + 6, // 4: servers.ServerListRequest.Page:type_name -> servers.Pagination + 2, // 5: servers.ServerService.Create:input_type -> servers.ServerCreate + 4, // 6: servers.ServerService.Update:input_type -> servers.ServerUpdate + 1, // 7: servers.ServerService.Delete:input_type -> servers.IdMessage + 1, // 8: servers.ServerService.Get:input_type -> servers.IdMessage + 7, // 9: servers.ServerService.List:input_type -> servers.ServerListRequest + 8, // 10: servers.ServerService.Create:output_type -> servers.NullResponse + 8, // 11: servers.ServerService.Update:output_type -> servers.NullResponse + 8, // 12: servers.ServerService.Delete:output_type -> servers.NullResponse + 3, // 13: servers.ServerService.Get:output_type -> servers.ServerItem + 0, // 14: servers.ServerService.List:output_type -> servers.ServerList + 10, // [10:15] is the sub-list for method output_type + 5, // [5:10] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_servers_proto_init() } +func file_servers_proto_init() { + if File_servers_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_servers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_servers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IdMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_servers_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_servers_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_servers_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_servers_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_servers_proto_msgTypes[6].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_servers_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_servers_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NullResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_servers_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_servers_proto_msgTypes[5].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_servers_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_servers_proto_goTypes, + DependencyIndexes: file_servers_proto_depIdxs, + MessageInfos: file_servers_proto_msgTypes, + }.Build() + File_servers_proto = out.File + file_servers_proto_rawDesc = nil + file_servers_proto_goTypes = nil + file_servers_proto_depIdxs = nil +} diff --git a/servers/servers_grpc.pb.go b/servers/servers_grpc.pb.go new file mode 100644 index 0000000..2971f12 --- /dev/null +++ b/servers/servers_grpc.pb.go @@ -0,0 +1,249 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.2 +// source: servers.proto + +package servers + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ServerServiceClient is the client API for ServerService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ServerServiceClient interface { + Create(ctx context.Context, in *ServerCreate, opts ...grpc.CallOption) (*NullResponse, error) + Update(ctx context.Context, in *ServerUpdate, opts ...grpc.CallOption) (*NullResponse, error) + Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) + Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*ServerItem, error) + List(ctx context.Context, in *ServerListRequest, opts ...grpc.CallOption) (*ServerList, error) +} + +type serverServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewServerServiceClient(cc grpc.ClientConnInterface) ServerServiceClient { + return &serverServiceClient{cc} +} + +func (c *serverServiceClient) Create(ctx context.Context, in *ServerCreate, opts ...grpc.CallOption) (*NullResponse, error) { + out := new(NullResponse) + err := c.cc.Invoke(ctx, "/servers.ServerService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverServiceClient) Update(ctx context.Context, in *ServerUpdate, opts ...grpc.CallOption) (*NullResponse, error) { + out := new(NullResponse) + err := c.cc.Invoke(ctx, "/servers.ServerService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverServiceClient) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) { + out := new(NullResponse) + err := c.cc.Invoke(ctx, "/servers.ServerService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverServiceClient) Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*ServerItem, error) { + out := new(ServerItem) + err := c.cc.Invoke(ctx, "/servers.ServerService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serverServiceClient) List(ctx context.Context, in *ServerListRequest, opts ...grpc.CallOption) (*ServerList, error) { + out := new(ServerList) + err := c.cc.Invoke(ctx, "/servers.ServerService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ServerServiceServer is the server API for ServerService service. +// All implementations must embed UnimplementedServerServiceServer +// for forward compatibility +type ServerServiceServer interface { + Create(context.Context, *ServerCreate) (*NullResponse, error) + Update(context.Context, *ServerUpdate) (*NullResponse, error) + Delete(context.Context, *IdMessage) (*NullResponse, error) + Get(context.Context, *IdMessage) (*ServerItem, error) + List(context.Context, *ServerListRequest) (*ServerList, error) + mustEmbedUnimplementedServerServiceServer() +} + +// UnimplementedServerServiceServer must be embedded to have forward compatible implementations. +type UnimplementedServerServiceServer struct { +} + +func (UnimplementedServerServiceServer) Create(context.Context, *ServerCreate) (*NullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedServerServiceServer) Update(context.Context, *ServerUpdate) (*NullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedServerServiceServer) Delete(context.Context, *IdMessage) (*NullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedServerServiceServer) Get(context.Context, *IdMessage) (*ServerItem, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedServerServiceServer) List(context.Context, *ServerListRequest) (*ServerList, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedServerServiceServer) mustEmbedUnimplementedServerServiceServer() {} + +// UnsafeServerServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ServerServiceServer will +// result in compilation errors. +type UnsafeServerServiceServer interface { + mustEmbedUnimplementedServerServiceServer() +} + +func RegisterServerServiceServer(s grpc.ServiceRegistrar, srv ServerServiceServer) { + s.RegisterService(&ServerService_ServiceDesc, srv) +} + +func _ServerService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ServerCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/servers.ServerService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).Create(ctx, req.(*ServerCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServerService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ServerUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/servers.ServerService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).Update(ctx, req.(*ServerUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServerService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/servers.ServerService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).Delete(ctx, req.(*IdMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServerService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/servers.ServerService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).Get(ctx, req.(*IdMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServerService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ServerListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/servers.ServerService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).List(ctx, req.(*ServerListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ServerService_ServiceDesc is the grpc.ServiceDesc for ServerService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ServerService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "servers.ServerService", + HandlerType: (*ServerServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _ServerService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _ServerService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _ServerService_Delete_Handler, + }, + { + MethodName: "Get", + Handler: _ServerService_Get_Handler, + }, + { + MethodName: "List", + Handler: _ServerService_List_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "servers.proto", +} diff --git a/times/times.pb.go b/times/times.pb.go new file mode 100644 index 0000000..eeccb46 --- /dev/null +++ b/times/times.pb.go @@ -0,0 +1,944 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.21.2 +// source: times.proto + +package times + +import ( + bots "git.itzana.me/strafesnet/protobufs/rpc/bots" + maps "git.itzana.me/strafesnet/protobufs/rpc/maps" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + users "pkg/rpc/users" + 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 TimeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Time *int64 `protobuf:"varint,2,opt,name=Time,proto3,oneof" json:"Time,omitempty"` + UserID *int64 `protobuf:"varint,3,opt,name=UserID,proto3,oneof" json:"UserID,omitempty"` + MapID *int64 `protobuf:"varint,4,opt,name=MapID,proto3,oneof" json:"MapID,omitempty"` + Date *int64 `protobuf:"varint,5,opt,name=Date,proto3,oneof" json:"Date,omitempty"` + StyleID *int32 `protobuf:"varint,6,opt,name=StyleID,proto3,oneof" json:"StyleID,omitempty"` + ModeID *int32 `protobuf:"varint,7,opt,name=ModeID,proto3,oneof" json:"ModeID,omitempty"` + GameID *int32 `protobuf:"varint,8,opt,name=GameID,proto3,oneof" json:"GameID,omitempty"` +} + +func (x *TimeRequest) Reset() { + *x = TimeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeRequest) ProtoMessage() {} + +func (x *TimeRequest) ProtoReflect() protoreflect.Message { + mi := &file_times_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 TimeRequest.ProtoReflect.Descriptor instead. +func (*TimeRequest) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{0} +} + +func (x *TimeRequest) GetID() int64 { + if x != nil { + return x.ID + } + return 0 +} + +func (x *TimeRequest) GetTime() int64 { + if x != nil && x.Time != nil { + return *x.Time + } + return 0 +} + +func (x *TimeRequest) GetUserID() int64 { + if x != nil && x.UserID != nil { + return *x.UserID + } + return 0 +} + +func (x *TimeRequest) GetMapID() int64 { + if x != nil && x.MapID != nil { + return *x.MapID + } + return 0 +} + +func (x *TimeRequest) GetDate() int64 { + if x != nil && x.Date != nil { + return *x.Date + } + return 0 +} + +func (x *TimeRequest) GetStyleID() int32 { + if x != nil && x.StyleID != nil { + return *x.StyleID + } + return 0 +} + +func (x *TimeRequest) GetModeID() int32 { + if x != nil && x.ModeID != nil { + return *x.ModeID + } + return 0 +} + +func (x *TimeRequest) GetGameID() int32 { + if x != nil && x.GameID != nil { + return *x.GameID + } + return 0 +} + +type TimeFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID *int64 `protobuf:"varint,1,opt,name=ID,proto3,oneof" json:"ID,omitempty"` + Time *int64 `protobuf:"varint,2,opt,name=Time,proto3,oneof" json:"Time,omitempty"` + UserID *int64 `protobuf:"varint,3,opt,name=UserID,proto3,oneof" json:"UserID,omitempty"` + MapID *int64 `protobuf:"varint,4,opt,name=MapID,proto3,oneof" json:"MapID,omitempty"` + Date *int64 `protobuf:"varint,5,opt,name=Date,proto3,oneof" json:"Date,omitempty"` + StyleID *int32 `protobuf:"varint,6,opt,name=StyleID,proto3,oneof" json:"StyleID,omitempty"` + ModeID *int32 `protobuf:"varint,7,opt,name=ModeID,proto3,oneof" json:"ModeID,omitempty"` + GameID *int32 `protobuf:"varint,8,opt,name=GameID,proto3,oneof" json:"GameID,omitempty"` +} + +func (x *TimeFilter) Reset() { + *x = TimeFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimeFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeFilter) ProtoMessage() {} + +func (x *TimeFilter) ProtoReflect() protoreflect.Message { + mi := &file_times_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 TimeFilter.ProtoReflect.Descriptor instead. +func (*TimeFilter) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{1} +} + +func (x *TimeFilter) GetID() int64 { + if x != nil && x.ID != nil { + return *x.ID + } + return 0 +} + +func (x *TimeFilter) GetTime() int64 { + if x != nil && x.Time != nil { + return *x.Time + } + return 0 +} + +func (x *TimeFilter) GetUserID() int64 { + if x != nil && x.UserID != nil { + return *x.UserID + } + return 0 +} + +func (x *TimeFilter) GetMapID() int64 { + if x != nil && x.MapID != nil { + return *x.MapID + } + return 0 +} + +func (x *TimeFilter) GetDate() int64 { + if x != nil && x.Date != nil { + return *x.Date + } + return 0 +} + +func (x *TimeFilter) GetStyleID() int32 { + if x != nil && x.StyleID != nil { + return *x.StyleID + } + return 0 +} + +func (x *TimeFilter) GetModeID() int32 { + if x != nil && x.ModeID != nil { + return *x.ModeID + } + return 0 +} + +func (x *TimeFilter) GetGameID() int32 { + if x != nil && x.GameID != nil { + return *x.GameID + } + return 0 +} + +type TimeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=Time,proto3" json:"Time,omitempty"` + User *users.UserResponse `protobuf:"bytes,3,opt,name=User,proto3" json:"User,omitempty"` + Map *maps.MapResponse `protobuf:"bytes,4,opt,name=Map,proto3" json:"Map,omitempty"` + Bot *bots.BotResponse `protobuf:"bytes,5,opt,name=Bot,proto3,oneof" json:"Bot,omitempty"` + Date int64 `protobuf:"varint,6,opt,name=Date,proto3" json:"Date,omitempty"` + StyleID int32 `protobuf:"varint,7,opt,name=StyleID,proto3" json:"StyleID,omitempty"` + ModeID int32 `protobuf:"varint,8,opt,name=ModeID,proto3" json:"ModeID,omitempty"` + GameID int32 `protobuf:"varint,9,opt,name=GameID,proto3" json:"GameID,omitempty"` +} + +func (x *TimeResponse) Reset() { + *x = TimeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeResponse) ProtoMessage() {} + +func (x *TimeResponse) ProtoReflect() protoreflect.Message { + mi := &file_times_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 TimeResponse.ProtoReflect.Descriptor instead. +func (*TimeResponse) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{2} +} + +func (x *TimeResponse) GetID() int64 { + if x != nil { + return x.ID + } + return 0 +} + +func (x *TimeResponse) GetTime() int64 { + if x != nil { + return x.Time + } + return 0 +} + +func (x *TimeResponse) GetUser() *users.UserResponse { + if x != nil { + return x.User + } + return nil +} + +func (x *TimeResponse) GetMap() *maps.MapResponse { + if x != nil { + return x.Map + } + return nil +} + +func (x *TimeResponse) GetBot() *bots.BotResponse { + if x != nil { + return x.Bot + } + return nil +} + +func (x *TimeResponse) GetDate() int64 { + if x != nil { + return x.Date + } + return 0 +} + +func (x *TimeResponse) GetStyleID() int32 { + if x != nil { + return x.StyleID + } + return 0 +} + +func (x *TimeResponse) GetModeID() int32 { + if x != nil { + return x.ModeID + } + return 0 +} + +func (x *TimeResponse) GetGameID() int32 { + if x != nil { + return x.GameID + } + return 0 +} + +type IdMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` +} + +func (x *IdMessage) Reset() { + *x = IdMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IdMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IdMessage) ProtoMessage() {} + +func (x *IdMessage) ProtoReflect() protoreflect.Message { + mi := &file_times_proto_msgTypes[3] + 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 IdMessage.ProtoReflect.Descriptor instead. +func (*IdMessage) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{3} +} + +func (x *IdMessage) GetID() int64 { + if x != nil { + return x.ID + } + return 0 +} + +type TimeList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Times []*TimeResponse `protobuf:"bytes,1,rep,name=Times,proto3" json:"Times,omitempty"` + Total int64 `protobuf:"varint,2,opt,name=Total,proto3" json:"Total,omitempty"` +} + +func (x *TimeList) Reset() { + *x = TimeList{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimeList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeList) ProtoMessage() {} + +func (x *TimeList) 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 TimeList.ProtoReflect.Descriptor instead. +func (*TimeList) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{4} +} + +func (x *TimeList) GetTimes() []*TimeResponse { + if x != nil { + return x.Times + } + return nil +} + +func (x *TimeList) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +type RankResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Rank int64 `protobuf:"varint,1,opt,name=Rank,proto3" json:"Rank,omitempty"` +} + +func (x *RankResponse) Reset() { + *x = RankResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RankResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RankResponse) ProtoMessage() {} + +func (x *RankResponse) ProtoReflect() protoreflect.Message { + mi := &file_times_proto_msgTypes[5] + 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 RankResponse.ProtoReflect.Descriptor instead. +func (*RankResponse) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{5} +} + +func (x *RankResponse) GetRank() int64 { + if x != nil { + return x.Rank + } + return 0 +} + +type ListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *TimeFilter `protobuf:"bytes,1,opt,name=Filter,proto3" json:"Filter,omitempty"` + Blacklisted bool `protobuf:"varint,2,opt,name=Blacklisted,proto3" json:"Blacklisted,omitempty"` + Page *Pagination `protobuf:"bytes,3,opt,name=Page,proto3" json:"Page,omitempty"` +} + +func (x *ListRequest) Reset() { + *x = ListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRequest) ProtoMessage() {} + +func (x *ListRequest) 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 ListRequest.ProtoReflect.Descriptor instead. +func (*ListRequest) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{6} +} + +func (x *ListRequest) GetFilter() *TimeFilter { + if x != nil { + return x.Filter + } + return nil +} + +func (x *ListRequest) GetBlacklisted() bool { + if x != nil { + return x.Blacklisted + } + return false +} + +func (x *ListRequest) GetPage() *Pagination { + if x != nil { + return x.Page + } + return nil +} + +type Pagination struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Size int32 `protobuf:"varint,1,opt,name=Size,proto3" json:"Size,omitempty"` + Number int32 `protobuf:"varint,2,opt,name=Number,proto3" json:"Number,omitempty"` +} + +func (x *Pagination) Reset() { + *x = Pagination{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Pagination) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Pagination) ProtoMessage() {} + +func (x *Pagination) ProtoReflect() protoreflect.Message { + mi := &file_times_proto_msgTypes[7] + 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 Pagination.ProtoReflect.Descriptor instead. +func (*Pagination) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{7} +} + +func (x *Pagination) GetSize() int32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *Pagination) GetNumber() int32 { + if x != nil { + return x.Number + } + return 0 +} + +type NullResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NullResponse) Reset() { + *x = NullResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_times_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NullResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NullResponse) ProtoMessage() {} + +func (x *NullResponse) ProtoReflect() protoreflect.Message { + mi := &file_times_proto_msgTypes[8] + 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 NullResponse.ProtoReflect.Descriptor instead. +func (*NullResponse) Descriptor() ([]byte, []int) { + return file_times_proto_rawDescGZIP(), []int{8} +} + +var File_times_proto protoreflect.FileDescriptor + +var file_times_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x1a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x0a, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x62, + 0x6f, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x02, 0x0a, 0x0b, 0x54, 0x69, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x17, 0x0a, 0x04, 0x54, 0x69, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x88, + 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x48, 0x01, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, + 0x19, 0x0a, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x02, + 0x52, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x44, 0x61, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, + 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x05, 0x48, 0x04, 0x52, 0x07, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x88, + 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x05, 0x48, 0x05, 0x52, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, + 0x1b, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x48, + 0x06, 0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, + 0x5f, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, + 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x44, + 0x61, 0x74, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x4d, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x47, + 0x61, 0x6d, 0x65, 0x49, 0x44, 0x22, 0xb4, 0x02, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x02, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x54, 0x69, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x88, + 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x48, 0x02, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, + 0x19, 0x0a, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, + 0x52, 0x05, 0x4d, 0x61, 0x70, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x44, 0x61, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x04, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, + 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x05, 0x48, 0x05, 0x52, 0x07, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x88, + 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x05, 0x48, 0x06, 0x52, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, + 0x1b, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x48, + 0x07, 0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, + 0x5f, 0x49, 0x44, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, + 0x5f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x4d, 0x61, 0x70, 0x49, + 0x44, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x44, 0x61, 0x74, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x53, + 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x4d, 0x6f, 0x64, 0x65, 0x49, + 0x44, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x22, 0x90, 0x02, 0x0a, + 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x12, 0x0a, + 0x04, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x27, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x03, 0x4d, 0x61, + 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, + 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x03, 0x4d, 0x61, 0x70, 0x12, + 0x28, 0x0a, 0x03, 0x42, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, + 0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x00, 0x52, 0x03, 0x42, 0x6f, 0x74, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, + 0x53, 0x74, 0x79, 0x6c, 0x65, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x49, + 0x44, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x49, 0x44, 0x12, + 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, + 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, 0x81, 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, + 0x52, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x61, 0x63, + 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x42, + 0x6c, 0x61, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x04, 0x50, 0x61, + 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x50, 0x61, 0x67, + 0x65, 0x22, 0x38, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 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, 0xac, 0x02, 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, 0x61, 0x67, 0x65, 0x12, 0x31, 0x0a, 0x06, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 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, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2c, 0x0a, 0x03, 0x47, 0x65, 0x74, 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, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, + 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x2e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x4c, 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, 0x0f, 0x5a, 0x0d, 0x70, 0x6b, + 0x67, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_times_proto_rawDescOnce sync.Once + file_times_proto_rawDescData = file_times_proto_rawDesc +) + +func file_times_proto_rawDescGZIP() []byte { + file_times_proto_rawDescOnce.Do(func() { + file_times_proto_rawDescData = protoimpl.X.CompressGZIP(file_times_proto_rawDescData) + }) + return file_times_proto_rawDescData +} + +var file_times_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +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 + (*Pagination)(nil), // 7: times.Pagination + (*NullResponse)(nil), // 8: times.NullResponse + (*users.UserResponse)(nil), // 9: users.UserResponse + (*maps.MapResponse)(nil), // 10: maps.MapResponse + (*bots.BotResponse)(nil), // 11: bots.BotResponse +} +var file_times_proto_depIdxs = []int32{ + 9, // 0: times.TimeResponse.User:type_name -> users.UserResponse + 10, // 1: times.TimeResponse.Map:type_name -> maps.MapResponse + 11, // 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 + 7, // 5: times.ListRequest.Page:type_name -> times.Pagination + 0, // 6: times.TimesService.Create:input_type -> times.TimeRequest + 0, // 7: times.TimesService.Update:input_type -> times.TimeRequest + 3, // 8: times.TimesService.Delete:input_type -> times.IdMessage + 3, // 9: times.TimesService.Get:input_type -> times.IdMessage + 6, // 10: times.TimesService.List:input_type -> times.ListRequest + 3, // 11: times.TimesService.Rank:input_type -> times.IdMessage + 3, // 12: times.TimesService.Create:output_type -> times.IdMessage + 8, // 13: times.TimesService.Update:output_type -> times.NullResponse + 8, // 14: times.TimesService.Delete:output_type -> times.NullResponse + 2, // 15: times.TimesService.Get:output_type -> times.TimeResponse + 4, // 16: times.TimesService.List:output_type -> times.TimeList + 5, // 17: times.TimesService.Rank:output_type -> times.RankResponse + 12, // [12:18] is the sub-list for method output_type + 6, // [6:12] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_times_proto_init() } +func file_times_proto_init() { + if File_times_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_times_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_times_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_times_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_times_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IdMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_times_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_times_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RankResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_times_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_times_proto_msgTypes[7].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[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NullResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_times_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_times_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_times_proto_msgTypes[2].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_times_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_times_proto_goTypes, + DependencyIndexes: file_times_proto_depIdxs, + MessageInfos: file_times_proto_msgTypes, + }.Build() + File_times_proto = out.File + file_times_proto_rawDesc = nil + file_times_proto_goTypes = nil + file_times_proto_depIdxs = nil +} diff --git a/times/times_grpc.pb.go b/times/times_grpc.pb.go new file mode 100644 index 0000000..3558d79 --- /dev/null +++ b/times/times_grpc.pb.go @@ -0,0 +1,285 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.2 +// source: times.proto + +package times + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// TimesServiceClient is the client API for TimesService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type TimesServiceClient interface { + Create(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*IdMessage, error) + Update(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*NullResponse, error) + Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) + Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*TimeResponse, error) + List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*TimeList, error) + Rank(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*RankResponse, error) +} + +type timesServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewTimesServiceClient(cc grpc.ClientConnInterface) TimesServiceClient { + return ×ServiceClient{cc} +} + +func (c *timesServiceClient) Create(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*IdMessage, error) { + out := new(IdMessage) + err := c.cc.Invoke(ctx, "/times.TimesService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timesServiceClient) Update(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*NullResponse, error) { + out := new(NullResponse) + err := c.cc.Invoke(ctx, "/times.TimesService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timesServiceClient) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) { + out := new(NullResponse) + err := c.cc.Invoke(ctx, "/times.TimesService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timesServiceClient) Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*TimeResponse, error) { + out := new(TimeResponse) + err := c.cc.Invoke(ctx, "/times.TimesService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timesServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*TimeList, error) { + out := new(TimeList) + err := c.cc.Invoke(ctx, "/times.TimesService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timesServiceClient) Rank(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*RankResponse, error) { + out := new(RankResponse) + err := c.cc.Invoke(ctx, "/times.TimesService/Rank", 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 +type TimesServiceServer interface { + Create(context.Context, *TimeRequest) (*IdMessage, error) + Update(context.Context, *TimeRequest) (*NullResponse, error) + Delete(context.Context, *IdMessage) (*NullResponse, error) + Get(context.Context, *IdMessage) (*TimeResponse, error) + List(context.Context, *ListRequest) (*TimeList, error) + Rank(context.Context, *IdMessage) (*RankResponse, error) + mustEmbedUnimplementedTimesServiceServer() +} + +// UnimplementedTimesServiceServer must be embedded to have forward compatible implementations. +type UnimplementedTimesServiceServer struct { +} + +func (UnimplementedTimesServiceServer) Create(context.Context, *TimeRequest) (*IdMessage, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedTimesServiceServer) Update(context.Context, *TimeRequest) (*NullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedTimesServiceServer) Delete(context.Context, *IdMessage) (*NullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedTimesServiceServer) Get(context.Context, *IdMessage) (*TimeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedTimesServiceServer) List(context.Context, *ListRequest) (*TimeList, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedTimesServiceServer) Rank(context.Context, *IdMessage) (*RankResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Rank not implemented") +} +func (UnimplementedTimesServiceServer) mustEmbedUnimplementedTimesServiceServer() {} + +// UnsafeTimesServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TimesServiceServer will +// result in compilation errors. +type UnsafeTimesServiceServer interface { + mustEmbedUnimplementedTimesServiceServer() +} + +func RegisterTimesServiceServer(s grpc.ServiceRegistrar, srv TimesServiceServer) { + s.RegisterService(&TimesService_ServiceDesc, srv) +} + +func _TimesService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TimeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimesServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/times.TimesService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimesServiceServer).Create(ctx, req.(*TimeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimesService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TimeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimesServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/times.TimesService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimesServiceServer).Update(ctx, req.(*TimeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimesService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimesServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/times.TimesService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimesServiceServer).Delete(ctx, req.(*IdMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimesService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimesServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/times.TimesService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimesServiceServer).Get(ctx, req.(*IdMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimesService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimesServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/times.TimesService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimesServiceServer).List(ctx, req.(*ListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimesService_Rank_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimesServiceServer).Rank(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/times.TimesService/Rank", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimesServiceServer).Rank(ctx, req.(*IdMessage)) + } + 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) +var TimesService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "times.TimesService", + HandlerType: (*TimesServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _TimesService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _TimesService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _TimesService_Delete_Handler, + }, + { + MethodName: "Get", + Handler: _TimesService_Get_Handler, + }, + { + MethodName: "List", + Handler: _TimesService_List_Handler, + }, + { + MethodName: "Rank", + Handler: _TimesService_Rank_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "times.proto", +} diff --git a/transactions/transactions.pb.go b/transactions/transactions.pb.go new file mode 100644 index 0000000..b3deba6 --- /dev/null +++ b/transactions/transactions.pb.go @@ -0,0 +1,973 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.21.2 +// source: transactions.proto + +package transactions + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + users "pkg/rpc/users" + 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 TransactionCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` + Value int64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` + StateID int32 `protobuf:"varint,3,opt,name=StateID,proto3" json:"StateID,omitempty"` + Data *structpb.Struct `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"` +} + +func (x *TransactionCreate) Reset() { + *x = TransactionCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransactionCreate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransactionCreate) ProtoMessage() {} + +func (x *TransactionCreate) ProtoReflect() protoreflect.Message { + mi := &file_transactions_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 TransactionCreate.ProtoReflect.Descriptor instead. +func (*TransactionCreate) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{0} +} + +func (x *TransactionCreate) GetUserID() int64 { + if x != nil { + return x.UserID + } + return 0 +} + +func (x *TransactionCreate) GetValue() int64 { + if x != nil { + return x.Value + } + return 0 +} + +func (x *TransactionCreate) GetStateID() int32 { + if x != nil { + return x.StateID + } + return 0 +} + +func (x *TransactionCreate) GetData() *structpb.Struct { + if x != nil { + return x.Data + } + return nil +} + +type TransactionUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + Value *int64 `protobuf:"varint,2,opt,name=Value,proto3,oneof" json:"Value,omitempty"` + StateID *int64 `protobuf:"varint,3,opt,name=StateID,proto3,oneof" json:"StateID,omitempty"` + Data *structpb.Struct `protobuf:"bytes,4,opt,name=Data,proto3,oneof" json:"Data,omitempty"` +} + +func (x *TransactionUpdate) Reset() { + *x = TransactionUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransactionUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransactionUpdate) ProtoMessage() {} + +func (x *TransactionUpdate) ProtoReflect() protoreflect.Message { + mi := &file_transactions_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 TransactionUpdate.ProtoReflect.Descriptor instead. +func (*TransactionUpdate) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{1} +} + +func (x *TransactionUpdate) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +func (x *TransactionUpdate) GetValue() int64 { + if x != nil && x.Value != nil { + return *x.Value + } + return 0 +} + +func (x *TransactionUpdate) GetStateID() int64 { + if x != nil && x.StateID != nil { + return *x.StateID + } + return 0 +} + +func (x *TransactionUpdate) GetData() *structpb.Struct { + if x != nil { + return x.Data + } + return nil +} + +type TransactionItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + User *users.UserResponse `protobuf:"bytes,2,opt,name=User,proto3" json:"User,omitempty"` + Value int64 `protobuf:"varint,3,opt,name=Value,proto3" json:"Value,omitempty"` + StateID int32 `protobuf:"varint,4,opt,name=StateID,proto3" json:"StateID,omitempty"` + Created int64 `protobuf:"varint,5,opt,name=Created,proto3" json:"Created,omitempty"` + Updated int64 `protobuf:"varint,6,opt,name=Updated,proto3" json:"Updated,omitempty"` + Data *structpb.Struct `protobuf:"bytes,7,opt,name=Data,proto3" json:"Data,omitempty"` +} + +func (x *TransactionItem) Reset() { + *x = TransactionItem{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransactionItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransactionItem) ProtoMessage() {} + +func (x *TransactionItem) ProtoReflect() protoreflect.Message { + mi := &file_transactions_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 TransactionItem.ProtoReflect.Descriptor instead. +func (*TransactionItem) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{2} +} + +func (x *TransactionItem) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +func (x *TransactionItem) GetUser() *users.UserResponse { + if x != nil { + return x.User + } + return nil +} + +func (x *TransactionItem) GetValue() int64 { + if x != nil { + return x.Value + } + return 0 +} + +func (x *TransactionItem) GetStateID() int32 { + if x != nil { + return x.StateID + } + return 0 +} + +func (x *TransactionItem) GetCreated() int64 { + if x != nil { + return x.Created + } + return 0 +} + +func (x *TransactionItem) GetUpdated() int64 { + if x != nil { + return x.Updated + } + return 0 +} + +func (x *TransactionItem) GetData() *structpb.Struct { + if x != nil { + return x.Data + } + return nil +} + +type TransactionFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserID *int64 `protobuf:"varint,1,opt,name=UserID,proto3,oneof" json:"UserID,omitempty"` + StateID *int32 `protobuf:"varint,2,opt,name=StateID,proto3,oneof" json:"StateID,omitempty"` +} + +func (x *TransactionFilter) Reset() { + *x = TransactionFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransactionFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransactionFilter) ProtoMessage() {} + +func (x *TransactionFilter) ProtoReflect() protoreflect.Message { + mi := &file_transactions_proto_msgTypes[3] + 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 TransactionFilter.ProtoReflect.Descriptor instead. +func (*TransactionFilter) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{3} +} + +func (x *TransactionFilter) GetUserID() int64 { + if x != nil && x.UserID != nil { + return *x.UserID + } + return 0 +} + +func (x *TransactionFilter) GetStateID() int32 { + if x != nil && x.StateID != nil { + return *x.StateID + } + return 0 +} + +type ListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filter *TransactionFilter `protobuf:"bytes,1,opt,name=Filter,proto3" json:"Filter,omitempty"` + Page *Pagination `protobuf:"bytes,2,opt,name=Page,proto3" json:"Page,omitempty"` +} + +func (x *ListRequest) Reset() { + *x = ListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRequest) ProtoMessage() {} + +func (x *ListRequest) ProtoReflect() protoreflect.Message { + mi := &file_transactions_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 ListRequest.ProtoReflect.Descriptor instead. +func (*ListRequest) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{4} +} + +func (x *ListRequest) GetFilter() *TransactionFilter { + if x != nil { + return x.Filter + } + return nil +} + +func (x *ListRequest) GetPage() *Pagination { + if x != nil { + return x.Page + } + return nil +} + +type Pagination struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Size int32 `protobuf:"varint,1,opt,name=Size,proto3" json:"Size,omitempty"` + Number int32 `protobuf:"varint,2,opt,name=Number,proto3" json:"Number,omitempty"` +} + +func (x *Pagination) Reset() { + *x = Pagination{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Pagination) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Pagination) ProtoMessage() {} + +func (x *Pagination) ProtoReflect() protoreflect.Message { + mi := &file_transactions_proto_msgTypes[5] + 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 Pagination.ProtoReflect.Descriptor instead. +func (*Pagination) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{5} +} + +func (x *Pagination) GetSize() int32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *Pagination) GetNumber() int32 { + if x != nil { + return x.Number + } + return 0 +} + +type TransactionList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Transactions []*TransactionItem `protobuf:"bytes,1,rep,name=Transactions,proto3" json:"Transactions,omitempty"` +} + +func (x *TransactionList) Reset() { + *x = TransactionList{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransactionList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransactionList) ProtoMessage() {} + +func (x *TransactionList) ProtoReflect() protoreflect.Message { + mi := &file_transactions_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 TransactionList.ProtoReflect.Descriptor instead. +func (*TransactionList) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{6} +} + +func (x *TransactionList) GetTransactions() []*TransactionItem { + if x != nil { + return x.Transactions + } + return nil +} + +type BalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Balance int64 `protobuf:"varint,1,opt,name=Balance,proto3" json:"Balance,omitempty"` +} + +func (x *BalanceResponse) Reset() { + *x = BalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BalanceResponse) ProtoMessage() {} + +func (x *BalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_transactions_proto_msgTypes[7] + 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 BalanceResponse.ProtoReflect.Descriptor instead. +func (*BalanceResponse) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{7} +} + +func (x *BalanceResponse) GetBalance() int64 { + if x != nil { + return x.Balance + } + return 0 +} + +type IdMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` +} + +func (x *IdMessage) Reset() { + *x = IdMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IdMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IdMessage) ProtoMessage() {} + +func (x *IdMessage) ProtoReflect() protoreflect.Message { + mi := &file_transactions_proto_msgTypes[8] + 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 IdMessage.ProtoReflect.Descriptor instead. +func (*IdMessage) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{8} +} + +func (x *IdMessage) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +type UserIdMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` +} + +func (x *UserIdMessage) Reset() { + *x = UserIdMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserIdMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserIdMessage) ProtoMessage() {} + +func (x *UserIdMessage) ProtoReflect() protoreflect.Message { + mi := &file_transactions_proto_msgTypes[9] + 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 UserIdMessage.ProtoReflect.Descriptor instead. +func (*UserIdMessage) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{9} +} + +func (x *UserIdMessage) GetUserID() int64 { + if x != nil { + return x.UserID + } + return 0 +} + +type NullResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NullResponse) Reset() { + *x = NullResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_transactions_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NullResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NullResponse) ProtoMessage() {} + +func (x *NullResponse) ProtoReflect() protoreflect.Message { + mi := &file_transactions_proto_msgTypes[10] + 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 NullResponse.ProtoReflect.Descriptor instead. +func (*NullResponse) Descriptor() ([]byte, []int) { + return file_transactions_proto_rawDescGZIP(), []int{10} +} + +var File_transactions_proto protoreflect.FileDescriptor + +var file_transactions_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x1a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01, + 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x12, 0x2b, 0x0a, 0x04, 0x44, + 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0xae, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x19, + 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, + 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x07, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, + 0x02, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, + 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x44, 0x61, 0x74, 0x61, 0x22, 0xdb, 0x01, 0x0a, 0x0f, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, + 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x27, 0x0a, + 0x04, 0x55, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x07, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x04, 0x44, 0x61, + 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x22, 0x66, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x06, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x06, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x07, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x44, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x22, + 0x74, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, + 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, + 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x04, 0x50, 0x61, 0x67, 0x65, 0x22, 0x38, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x01, 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, + 0x54, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2b, 0x0a, 0x0f, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x22, 0x1b, 0x0a, 0x09, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x22, + 0x27, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x22, 0x0e, 0x0a, 0x0c, 0x4e, 0x75, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa7, 0x03, 0x0a, 0x13, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x42, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x17, 0x2e, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1f, + 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, + 0x1a, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4e, + 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x1a, + 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4e, 0x75, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x07, 0x42, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x1a, 0x1d, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x17, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x1a, 0x1d, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, + 0x12, 0x40, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x42, 0x35, 0x5a, 0x33, 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, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_transactions_proto_rawDescOnce sync.Once + file_transactions_proto_rawDescData = file_transactions_proto_rawDesc +) + +func file_transactions_proto_rawDescGZIP() []byte { + file_transactions_proto_rawDescOnce.Do(func() { + file_transactions_proto_rawDescData = protoimpl.X.CompressGZIP(file_transactions_proto_rawDescData) + }) + return file_transactions_proto_rawDescData +} + +var file_transactions_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_transactions_proto_goTypes = []interface{}{ + (*TransactionCreate)(nil), // 0: transactions.TransactionCreate + (*TransactionUpdate)(nil), // 1: transactions.TransactionUpdate + (*TransactionItem)(nil), // 2: transactions.TransactionItem + (*TransactionFilter)(nil), // 3: transactions.TransactionFilter + (*ListRequest)(nil), // 4: transactions.ListRequest + (*Pagination)(nil), // 5: transactions.Pagination + (*TransactionList)(nil), // 6: transactions.TransactionList + (*BalanceResponse)(nil), // 7: transactions.BalanceResponse + (*IdMessage)(nil), // 8: transactions.IdMessage + (*UserIdMessage)(nil), // 9: transactions.UserIdMessage + (*NullResponse)(nil), // 10: transactions.NullResponse + (*structpb.Struct)(nil), // 11: google.protobuf.Struct + (*users.UserResponse)(nil), // 12: users.UserResponse +} +var file_transactions_proto_depIdxs = []int32{ + 11, // 0: transactions.TransactionCreate.Data:type_name -> google.protobuf.Struct + 11, // 1: transactions.TransactionUpdate.Data:type_name -> google.protobuf.Struct + 12, // 2: transactions.TransactionItem.User:type_name -> users.UserResponse + 11, // 3: transactions.TransactionItem.Data:type_name -> google.protobuf.Struct + 3, // 4: transactions.ListRequest.Filter:type_name -> transactions.TransactionFilter + 5, // 5: transactions.ListRequest.Page:type_name -> transactions.Pagination + 2, // 6: transactions.TransactionList.Transactions:type_name -> transactions.TransactionItem + 0, // 7: transactions.TransactionsService.Create:input_type -> transactions.TransactionCreate + 1, // 8: transactions.TransactionsService.Update:input_type -> transactions.TransactionUpdate + 8, // 9: transactions.TransactionsService.Delete:input_type -> transactions.IdMessage + 9, // 10: transactions.TransactionsService.Balance:input_type -> transactions.UserIdMessage + 8, // 11: transactions.TransactionsService.Get:input_type -> transactions.IdMessage + 4, // 12: transactions.TransactionsService.List:input_type -> transactions.ListRequest + 8, // 13: transactions.TransactionsService.Create:output_type -> transactions.IdMessage + 10, // 14: transactions.TransactionsService.Update:output_type -> transactions.NullResponse + 10, // 15: transactions.TransactionsService.Delete:output_type -> transactions.NullResponse + 7, // 16: transactions.TransactionsService.Balance:output_type -> transactions.BalanceResponse + 2, // 17: transactions.TransactionsService.Get:output_type -> transactions.TransactionItem + 6, // 18: transactions.TransactionsService.List:output_type -> transactions.TransactionList + 13, // [13:19] is the sub-list for method output_type + 7, // [7:13] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_transactions_proto_init() } +func file_transactions_proto_init() { + if File_transactions_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_transactions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[5].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_transactions_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransactionList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IdMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserIdMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_transactions_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NullResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_transactions_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_transactions_proto_msgTypes[3].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_transactions_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_transactions_proto_goTypes, + DependencyIndexes: file_transactions_proto_depIdxs, + MessageInfos: file_transactions_proto_msgTypes, + }.Build() + File_transactions_proto = out.File + file_transactions_proto_rawDesc = nil + file_transactions_proto_goTypes = nil + file_transactions_proto_depIdxs = nil +} diff --git a/transactions/transactions_grpc.pb.go b/transactions/transactions_grpc.pb.go new file mode 100644 index 0000000..24f6654 --- /dev/null +++ b/transactions/transactions_grpc.pb.go @@ -0,0 +1,285 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.2 +// source: transactions.proto + +package transactions + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// TransactionsServiceClient is the client API for TransactionsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type TransactionsServiceClient interface { + Create(ctx context.Context, in *TransactionCreate, opts ...grpc.CallOption) (*IdMessage, error) + Update(ctx context.Context, in *TransactionUpdate, opts ...grpc.CallOption) (*NullResponse, error) + Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) + Balance(ctx context.Context, in *UserIdMessage, opts ...grpc.CallOption) (*BalanceResponse, error) + Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*TransactionItem, error) + List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*TransactionList, error) +} + +type transactionsServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewTransactionsServiceClient(cc grpc.ClientConnInterface) TransactionsServiceClient { + return &transactionsServiceClient{cc} +} + +func (c *transactionsServiceClient) Create(ctx context.Context, in *TransactionCreate, opts ...grpc.CallOption) (*IdMessage, error) { + out := new(IdMessage) + err := c.cc.Invoke(ctx, "/transactions.TransactionsService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionsServiceClient) Update(ctx context.Context, in *TransactionUpdate, opts ...grpc.CallOption) (*NullResponse, error) { + out := new(NullResponse) + err := c.cc.Invoke(ctx, "/transactions.TransactionsService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionsServiceClient) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) { + out := new(NullResponse) + err := c.cc.Invoke(ctx, "/transactions.TransactionsService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionsServiceClient) Balance(ctx context.Context, in *UserIdMessage, opts ...grpc.CallOption) (*BalanceResponse, error) { + out := new(BalanceResponse) + err := c.cc.Invoke(ctx, "/transactions.TransactionsService/Balance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionsServiceClient) Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*TransactionItem, error) { + out := new(TransactionItem) + err := c.cc.Invoke(ctx, "/transactions.TransactionsService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *transactionsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*TransactionList, error) { + out := new(TransactionList) + err := c.cc.Invoke(ctx, "/transactions.TransactionsService/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TransactionsServiceServer is the server API for TransactionsService service. +// All implementations must embed UnimplementedTransactionsServiceServer +// for forward compatibility +type TransactionsServiceServer interface { + Create(context.Context, *TransactionCreate) (*IdMessage, error) + Update(context.Context, *TransactionUpdate) (*NullResponse, error) + Delete(context.Context, *IdMessage) (*NullResponse, error) + Balance(context.Context, *UserIdMessage) (*BalanceResponse, error) + Get(context.Context, *IdMessage) (*TransactionItem, error) + List(context.Context, *ListRequest) (*TransactionList, error) + mustEmbedUnimplementedTransactionsServiceServer() +} + +// UnimplementedTransactionsServiceServer must be embedded to have forward compatible implementations. +type UnimplementedTransactionsServiceServer struct { +} + +func (UnimplementedTransactionsServiceServer) Create(context.Context, *TransactionCreate) (*IdMessage, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedTransactionsServiceServer) Update(context.Context, *TransactionUpdate) (*NullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedTransactionsServiceServer) Delete(context.Context, *IdMessage) (*NullResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedTransactionsServiceServer) Balance(context.Context, *UserIdMessage) (*BalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") +} +func (UnimplementedTransactionsServiceServer) Get(context.Context, *IdMessage) (*TransactionItem, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedTransactionsServiceServer) List(context.Context, *ListRequest) (*TransactionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedTransactionsServiceServer) mustEmbedUnimplementedTransactionsServiceServer() {} + +// UnsafeTransactionsServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TransactionsServiceServer will +// result in compilation errors. +type UnsafeTransactionsServiceServer interface { + mustEmbedUnimplementedTransactionsServiceServer() +} + +func RegisterTransactionsServiceServer(s grpc.ServiceRegistrar, srv TransactionsServiceServer) { + s.RegisterService(&TransactionsService_ServiceDesc, srv) +} + +func _TransactionsService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TransactionCreate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionsServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/transactions.TransactionsService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionsServiceServer).Create(ctx, req.(*TransactionCreate)) + } + return interceptor(ctx, in, info, handler) +} + +func _TransactionsService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TransactionUpdate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionsServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/transactions.TransactionsService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionsServiceServer).Update(ctx, req.(*TransactionUpdate)) + } + return interceptor(ctx, in, info, handler) +} + +func _TransactionsService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionsServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/transactions.TransactionsService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionsServiceServer).Delete(ctx, req.(*IdMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _TransactionsService_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserIdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionsServiceServer).Balance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/transactions.TransactionsService/Balance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionsServiceServer).Balance(ctx, req.(*UserIdMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _TransactionsService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IdMessage) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionsServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/transactions.TransactionsService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionsServiceServer).Get(ctx, req.(*IdMessage)) + } + return interceptor(ctx, in, info, handler) +} + +func _TransactionsService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TransactionsServiceServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/transactions.TransactionsService/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TransactionsServiceServer).List(ctx, req.(*ListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// TransactionsService_ServiceDesc is the grpc.ServiceDesc for TransactionsService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var TransactionsService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "transactions.TransactionsService", + HandlerType: (*TransactionsServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _TransactionsService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _TransactionsService_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _TransactionsService_Delete_Handler, + }, + { + MethodName: "Balance", + Handler: _TransactionsService_Balance_Handler, + }, + { + MethodName: "Get", + Handler: _TransactionsService_Get_Handler, + }, + { + MethodName: "List", + Handler: _TransactionsService_List_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "transactions.proto", +}