Autogenerated update 31aa9e44a919c2489c1691ad38a32d291f4ba5d1
This commit is contained in:
parent
4e8ad3e48a
commit
06530548b0
682
bots/bots.pb.go
Normal file
682
bots/bots.pb.go
Normal file
@ -0,0 +1,682 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.18.1
|
||||
// source: bots.proto
|
||||
|
||||
package bots
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type IdList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID []int64 `protobuf:"varint,1,rep,packed,name=ID,proto3" json:"ID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *IdList) Reset() {
|
||||
*x = IdList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bots_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IdList) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdList) ProtoMessage() {}
|
||||
|
||||
func (x *IdList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bots_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 IdList.ProtoReflect.Descriptor instead.
|
||||
func (*IdList) Descriptor() ([]byte, []int) {
|
||||
return file_bots_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *IdList) GetID() []int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
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_bots_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_bots_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_bots_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *IdMessage) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type BotResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
TimeID int64 `protobuf:"varint,2,opt,name=TimeID,proto3" json:"TimeID,omitempty"`
|
||||
Date int64 `protobuf:"varint,3,opt,name=Date,proto3" json:"Date,omitempty"`
|
||||
FileID string `protobuf:"bytes,4,opt,name=FileID,proto3" json:"FileID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *BotResponse) Reset() {
|
||||
*x = BotResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bots_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *BotResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*BotResponse) ProtoMessage() {}
|
||||
|
||||
func (x *BotResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bots_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 BotResponse.ProtoReflect.Descriptor instead.
|
||||
func (*BotResponse) Descriptor() ([]byte, []int) {
|
||||
return file_bots_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *BotResponse) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BotResponse) GetTimeID() int64 {
|
||||
if x != nil {
|
||||
return x.TimeID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BotResponse) GetDate() int64 {
|
||||
if x != nil {
|
||||
return x.Date
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BotResponse) GetFileID() string {
|
||||
if x != nil {
|
||||
return x.FileID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type BotRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
TimeID *int64 `protobuf:"varint,2,opt,name=TimeID,proto3,oneof" json:"TimeID,omitempty"`
|
||||
Date *int64 `protobuf:"varint,3,opt,name=Date,proto3,oneof" json:"Date,omitempty"`
|
||||
FileID *string `protobuf:"bytes,4,opt,name=FileID,proto3,oneof" json:"FileID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *BotRequest) Reset() {
|
||||
*x = BotRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bots_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *BotRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*BotRequest) ProtoMessage() {}
|
||||
|
||||
func (x *BotRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bots_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 BotRequest.ProtoReflect.Descriptor instead.
|
||||
func (*BotRequest) Descriptor() ([]byte, []int) {
|
||||
return file_bots_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *BotRequest) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BotRequest) GetTimeID() int64 {
|
||||
if x != nil && x.TimeID != nil {
|
||||
return *x.TimeID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BotRequest) GetDate() int64 {
|
||||
if x != nil && x.Date != nil {
|
||||
return *x.Date
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BotRequest) GetFileID() string {
|
||||
if x != nil && x.FileID != nil {
|
||||
return *x.FileID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type BotList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Bots []*BotResponse `protobuf:"bytes,1,rep,name=Bots,proto3" json:"Bots,omitempty"`
|
||||
}
|
||||
|
||||
func (x *BotList) Reset() {
|
||||
*x = BotList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bots_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *BotList) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*BotList) ProtoMessage() {}
|
||||
|
||||
func (x *BotList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bots_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 BotList.ProtoReflect.Descriptor instead.
|
||||
func (*BotList) Descriptor() ([]byte, []int) {
|
||||
return file_bots_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *BotList) GetBots() []*BotResponse {
|
||||
if x != nil {
|
||||
return x.Bots
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Filter *BotRequest `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_bots_proto_msgTypes[5]
|
||||
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_bots_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 ListRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListRequest) Descriptor() ([]byte, []int) {
|
||||
return file_bots_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ListRequest) GetFilter() *BotRequest {
|
||||
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_bots_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_bots_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_bots_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 NullResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *NullResponse) Reset() {
|
||||
*x = NullResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_bots_proto_msgTypes[7]
|
||||
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_bots_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 NullResponse.ProtoReflect.Descriptor instead.
|
||||
func (*NullResponse) Descriptor() ([]byte, []int) {
|
||||
return file_bots_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
var File_bots_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_bots_proto_rawDesc = []byte{
|
||||
0x0a, 0x0a, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x62, 0x6f,
|
||||
0x74, 0x73, 0x22, 0x18, 0x0a, 0x06, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
|
||||
0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 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, 0x61, 0x0a, 0x0b, 0x42, 0x6f, 0x74,
|
||||
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, 0x16, 0x0a, 0x06, 0x54, 0x69, 0x6d, 0x65,
|
||||
0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x44,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04,
|
||||
0x44, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x18, 0x04,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x22, 0x8e, 0x01, 0x0a,
|
||||
0x0a, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49,
|
||||
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1b, 0x0a, 0x06, 0x54,
|
||||
0x69, 0x6d, 0x65, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x06, 0x54,
|
||||
0x69, 0x6d, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x88, 0x01,
|
||||
0x01, 0x12, 0x1b, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x09, 0x48, 0x02, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x09,
|
||||
0x0a, 0x07, 0x5f, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x44, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x44, 0x61,
|
||||
0x74, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x44, 0x22, 0x30, 0x0a,
|
||||
0x07, 0x42, 0x6f, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x42, 0x6f, 0x74, 0x73,
|
||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f,
|
||||
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x04, 0x42, 0x6f, 0x74, 0x73, 0x22,
|
||||
0x5d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28,
|
||||
0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
|
||||
0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x52, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x04, 0x50, 0x61, 0x67, 0x65,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x62, 0x6f, 0x74, 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, 0x96, 0x02, 0x0a, 0x0b, 0x42, 0x6f, 0x74,
|
||||
0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12,
|
||||
0x0f, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||
0x1a, 0x11, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0c,
|
||||
0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x62,
|
||||
0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x10, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f, 0x74,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x4e,
|
||||
0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x10, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f, 0x74,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x49,
|
||||
0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65,
|
||||
0x74, 0x65, 0x12, 0x0f, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x1a, 0x12, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12,
|
||||
0x11, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x62, 0x6f, 0x74, 0x73, 0x2e, 0x42, 0x6f, 0x74, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x42, 0x2d, 0x5a, 0x2b, 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, 0x62, 0x6f, 0x74, 0x73,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_bots_proto_rawDescOnce sync.Once
|
||||
file_bots_proto_rawDescData = file_bots_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_bots_proto_rawDescGZIP() []byte {
|
||||
file_bots_proto_rawDescOnce.Do(func() {
|
||||
file_bots_proto_rawDescData = protoimpl.X.CompressGZIP(file_bots_proto_rawDescData)
|
||||
})
|
||||
return file_bots_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_bots_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_bots_proto_goTypes = []interface{}{
|
||||
(*IdList)(nil), // 0: bots.IdList
|
||||
(*IdMessage)(nil), // 1: bots.IdMessage
|
||||
(*BotResponse)(nil), // 2: bots.BotResponse
|
||||
(*BotRequest)(nil), // 3: bots.BotRequest
|
||||
(*BotList)(nil), // 4: bots.BotList
|
||||
(*ListRequest)(nil), // 5: bots.ListRequest
|
||||
(*Pagination)(nil), // 6: bots.Pagination
|
||||
(*NullResponse)(nil), // 7: bots.NullResponse
|
||||
}
|
||||
var file_bots_proto_depIdxs = []int32{
|
||||
2, // 0: bots.BotList.Bots:type_name -> bots.BotResponse
|
||||
3, // 1: bots.ListRequest.Filter:type_name -> bots.BotRequest
|
||||
6, // 2: bots.ListRequest.Page:type_name -> bots.Pagination
|
||||
1, // 3: bots.BotsService.Get:input_type -> bots.IdMessage
|
||||
0, // 4: bots.BotsService.GetList:input_type -> bots.IdList
|
||||
3, // 5: bots.BotsService.Update:input_type -> bots.BotRequest
|
||||
3, // 6: bots.BotsService.Create:input_type -> bots.BotRequest
|
||||
1, // 7: bots.BotsService.Delete:input_type -> bots.IdMessage
|
||||
5, // 8: bots.BotsService.List:input_type -> bots.ListRequest
|
||||
2, // 9: bots.BotsService.Get:output_type -> bots.BotResponse
|
||||
4, // 10: bots.BotsService.GetList:output_type -> bots.BotList
|
||||
7, // 11: bots.BotsService.Update:output_type -> bots.NullResponse
|
||||
1, // 12: bots.BotsService.Create:output_type -> bots.IdMessage
|
||||
7, // 13: bots.BotsService.Delete:output_type -> bots.NullResponse
|
||||
4, // 14: bots.BotsService.List:output_type -> bots.BotList
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_bots_proto_init() }
|
||||
func file_bots_proto_init() {
|
||||
if File_bots_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_bots_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IdList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bots_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_bots_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*BotResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bots_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*BotRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bots_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*BotList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_bots_proto_msgTypes[5].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_bots_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_bots_proto_msgTypes[7].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_bots_proto_msgTypes[3].OneofWrappers = []interface{}{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_bots_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_bots_proto_goTypes,
|
||||
DependencyIndexes: file_bots_proto_depIdxs,
|
||||
MessageInfos: file_bots_proto_msgTypes,
|
||||
}.Build()
|
||||
File_bots_proto = out.File
|
||||
file_bots_proto_rawDesc = nil
|
||||
file_bots_proto_goTypes = nil
|
||||
file_bots_proto_depIdxs = nil
|
||||
}
|
285
bots/bots_grpc.pb.go
Normal file
285
bots/bots_grpc.pb.go
Normal file
@ -0,0 +1,285 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: bots.proto
|
||||
|
||||
package bots
|
||||
|
||||
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
|
||||
|
||||
// BotsServiceClient is the client API for BotsService 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 BotsServiceClient interface {
|
||||
Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*BotResponse, error)
|
||||
GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*BotList, error)
|
||||
Update(ctx context.Context, in *BotRequest, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
Create(ctx context.Context, in *BotRequest, opts ...grpc.CallOption) (*IdMessage, error)
|
||||
Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*BotList, error)
|
||||
}
|
||||
|
||||
type botsServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewBotsServiceClient(cc grpc.ClientConnInterface) BotsServiceClient {
|
||||
return &botsServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *botsServiceClient) Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*BotResponse, error) {
|
||||
out := new(BotResponse)
|
||||
err := c.cc.Invoke(ctx, "/bots.BotsService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *botsServiceClient) GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*BotList, error) {
|
||||
out := new(BotList)
|
||||
err := c.cc.Invoke(ctx, "/bots.BotsService/GetList", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *botsServiceClient) Update(ctx context.Context, in *BotRequest, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/bots.BotsService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *botsServiceClient) Create(ctx context.Context, in *BotRequest, opts ...grpc.CallOption) (*IdMessage, error) {
|
||||
out := new(IdMessage)
|
||||
err := c.cc.Invoke(ctx, "/bots.BotsService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *botsServiceClient) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/bots.BotsService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *botsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*BotList, error) {
|
||||
out := new(BotList)
|
||||
err := c.cc.Invoke(ctx, "/bots.BotsService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// BotsServiceServer is the server API for BotsService service.
|
||||
// All implementations must embed UnimplementedBotsServiceServer
|
||||
// for forward compatibility
|
||||
type BotsServiceServer interface {
|
||||
Get(context.Context, *IdMessage) (*BotResponse, error)
|
||||
GetList(context.Context, *IdList) (*BotList, error)
|
||||
Update(context.Context, *BotRequest) (*NullResponse, error)
|
||||
Create(context.Context, *BotRequest) (*IdMessage, error)
|
||||
Delete(context.Context, *IdMessage) (*NullResponse, error)
|
||||
List(context.Context, *ListRequest) (*BotList, error)
|
||||
mustEmbedUnimplementedBotsServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedBotsServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedBotsServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedBotsServiceServer) Get(context.Context, *IdMessage) (*BotResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedBotsServiceServer) GetList(context.Context, *IdList) (*BotList, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented")
|
||||
}
|
||||
func (UnimplementedBotsServiceServer) Update(context.Context, *BotRequest) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedBotsServiceServer) Create(context.Context, *BotRequest) (*IdMessage, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedBotsServiceServer) Delete(context.Context, *IdMessage) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedBotsServiceServer) List(context.Context, *ListRequest) (*BotList, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedBotsServiceServer) mustEmbedUnimplementedBotsServiceServer() {}
|
||||
|
||||
// UnsafeBotsServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to BotsServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeBotsServiceServer interface {
|
||||
mustEmbedUnimplementedBotsServiceServer()
|
||||
}
|
||||
|
||||
func RegisterBotsServiceServer(s grpc.ServiceRegistrar, srv BotsServiceServer) {
|
||||
s.RegisterService(&BotsService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _BotsService_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.(BotsServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/bots.BotsService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BotsServiceServer).Get(ctx, req.(*IdMessage))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _BotsService_GetList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdList)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(BotsServiceServer).GetList(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/bots.BotsService/GetList",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BotsServiceServer).GetList(ctx, req.(*IdList))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _BotsService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BotRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(BotsServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/bots.BotsService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BotsServiceServer).Update(ctx, req.(*BotRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _BotsService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BotRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(BotsServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/bots.BotsService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BotsServiceServer).Create(ctx, req.(*BotRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _BotsService_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.(BotsServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/bots.BotsService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BotsServiceServer).Delete(ctx, req.(*IdMessage))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _BotsService_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.(BotsServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/bots.BotsService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BotsServiceServer).List(ctx, req.(*ListRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// BotsService_ServiceDesc is the grpc.ServiceDesc for BotsService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var BotsService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "bots.BotsService",
|
||||
HandlerType: (*BotsServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _BotsService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetList",
|
||||
Handler: _BotsService_GetList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _BotsService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _BotsService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _BotsService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _BotsService_List_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "bots.proto",
|
||||
}
|
799
maps/maps.pb.go
Normal file
799
maps/maps.pb.go
Normal file
@ -0,0 +1,799 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.18.1
|
||||
// source: maps.proto
|
||||
|
||||
package maps
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type IdList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID []int64 `protobuf:"varint,1,rep,packed,name=ID,proto3" json:"ID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *IdList) Reset() {
|
||||
*x = IdList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_maps_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IdList) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdList) ProtoMessage() {}
|
||||
|
||||
func (x *IdList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_maps_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 IdList.ProtoReflect.Descriptor instead.
|
||||
func (*IdList) Descriptor() ([]byte, []int) {
|
||||
return file_maps_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *IdList) GetID() []int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
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_maps_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_maps_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_maps_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *IdMessage) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type MapResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
DisplayName string `protobuf:"bytes,2,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"`
|
||||
Creator string `protobuf:"bytes,3,opt,name=Creator,proto3" json:"Creator,omitempty"`
|
||||
GameID int32 `protobuf:"varint,4,opt,name=GameID,proto3" json:"GameID,omitempty"`
|
||||
Date int64 `protobuf:"varint,5,opt,name=Date,proto3" json:"Date,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MapResponse) Reset() {
|
||||
*x = MapResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_maps_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MapResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MapResponse) ProtoMessage() {}
|
||||
|
||||
func (x *MapResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_maps_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 MapResponse.ProtoReflect.Descriptor instead.
|
||||
func (*MapResponse) Descriptor() ([]byte, []int) {
|
||||
return file_maps_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *MapResponse) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MapResponse) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MapResponse) GetCreator() string {
|
||||
if x != nil {
|
||||
return x.Creator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MapResponse) GetGameID() int32 {
|
||||
if x != nil {
|
||||
return x.GameID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MapResponse) GetDate() int64 {
|
||||
if x != nil {
|
||||
return x.Date
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type MapRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
DisplayName *string `protobuf:"bytes,2,opt,name=DisplayName,proto3,oneof" json:"DisplayName,omitempty"`
|
||||
Creator *string `protobuf:"bytes,3,opt,name=Creator,proto3,oneof" json:"Creator,omitempty"`
|
||||
GameID *int32 `protobuf:"varint,4,opt,name=GameID,proto3,oneof" json:"GameID,omitempty"`
|
||||
Date *int64 `protobuf:"varint,5,opt,name=Date,proto3,oneof" json:"Date,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MapRequest) Reset() {
|
||||
*x = MapRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_maps_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MapRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MapRequest) ProtoMessage() {}
|
||||
|
||||
func (x *MapRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_maps_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 MapRequest.ProtoReflect.Descriptor instead.
|
||||
func (*MapRequest) Descriptor() ([]byte, []int) {
|
||||
return file_maps_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *MapRequest) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MapRequest) GetDisplayName() string {
|
||||
if x != nil && x.DisplayName != nil {
|
||||
return *x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MapRequest) GetCreator() string {
|
||||
if x != nil && x.Creator != nil {
|
||||
return *x.Creator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MapRequest) GetGameID() int32 {
|
||||
if x != nil && x.GameID != nil {
|
||||
return *x.GameID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MapRequest) GetDate() int64 {
|
||||
if x != nil && x.Date != nil {
|
||||
return *x.Date
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type MapFilter struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
DisplayName *string `protobuf:"bytes,2,opt,name=DisplayName,proto3,oneof" json:"DisplayName,omitempty"`
|
||||
Creator *string `protobuf:"bytes,3,opt,name=Creator,proto3,oneof" json:"Creator,omitempty"`
|
||||
GameID *int32 `protobuf:"varint,4,opt,name=GameID,proto3,oneof" json:"GameID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MapFilter) Reset() {
|
||||
*x = MapFilter{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_maps_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MapFilter) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MapFilter) ProtoMessage() {}
|
||||
|
||||
func (x *MapFilter) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_maps_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 MapFilter.ProtoReflect.Descriptor instead.
|
||||
func (*MapFilter) Descriptor() ([]byte, []int) {
|
||||
return file_maps_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *MapFilter) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *MapFilter) GetDisplayName() string {
|
||||
if x != nil && x.DisplayName != nil {
|
||||
return *x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MapFilter) GetCreator() string {
|
||||
if x != nil && x.Creator != nil {
|
||||
return *x.Creator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MapFilter) GetGameID() int32 {
|
||||
if x != nil && x.GameID != nil {
|
||||
return *x.GameID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type MapList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Maps []*MapResponse `protobuf:"bytes,1,rep,name=Maps,proto3" json:"Maps,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MapList) Reset() {
|
||||
*x = MapList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_maps_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *MapList) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*MapList) ProtoMessage() {}
|
||||
|
||||
func (x *MapList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_maps_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 MapList.ProtoReflect.Descriptor instead.
|
||||
func (*MapList) Descriptor() ([]byte, []int) {
|
||||
return file_maps_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *MapList) GetMaps() []*MapResponse {
|
||||
if x != nil {
|
||||
return x.Maps
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Filter *MapFilter `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_maps_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_maps_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_maps_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *ListRequest) GetFilter() *MapFilter {
|
||||
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_maps_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_maps_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_maps_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_maps_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_maps_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_maps_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
var File_maps_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_maps_proto_rawDesc = []byte{
|
||||
0x0a, 0x0a, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61,
|
||||
0x70, 0x73, 0x22, 0x18, 0x0a, 0x06, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
|
||||
0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 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, 0x85, 0x01, 0x0a, 0x0b, 0x4d, 0x61,
|
||||
0x70, 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, 0x20, 0x0a, 0x0b, 0x44, 0x69, 0x73,
|
||||
0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
||||
0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x72,
|
||||
0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x18,
|
||||
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x44, 0x61, 0x74,
|
||||
0x65, 0x22, 0xc8, 0x01, 0x0a, 0x0a, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44,
|
||||
0x12, 0x25, 0x0a, 0x0b, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
|
||||
0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x43, 0x72, 0x65, 0x61, 0x74,
|
||||
0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x07, 0x43, 0x72, 0x65, 0x61,
|
||||
0x74, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 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, 0x42, 0x0e, 0x0a, 0x0c,
|
||||
0x5f, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, 0x08,
|
||||
0x5f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x47, 0x61, 0x6d,
|
||||
0x65, 0x49, 0x44, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x44, 0x61, 0x74, 0x65, 0x22, 0xa5, 0x01, 0x0a,
|
||||
0x09, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x25, 0x0a, 0x0b, 0x44, 0x69,
|
||||
0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
|
||||
0x00, 0x52, 0x0b, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01,
|
||||
0x01, 0x12, 0x1d, 0x0a, 0x07, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x09, 0x48, 0x01, 0x52, 0x07, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x88, 0x01, 0x01,
|
||||
0x12, 0x1b, 0x0a, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
|
||||
0x48, 0x02, 0x52, 0x06, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a,
|
||||
0x0c, 0x5f, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a,
|
||||
0x08, 0x5f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x47, 0x61,
|
||||
0x6d, 0x65, 0x49, 0x44, 0x22, 0x30, 0x0a, 0x07, 0x4d, 0x61, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x12,
|
||||
0x25, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
|
||||
0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x52, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x22, 0x5c, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70,
|
||||
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x24,
|
||||
0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d,
|
||||
0x61, 0x70, 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, 0x96,
|
||||
0x02, 0x0a, 0x0b, 0x4d, 0x61, 0x70, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x29,
|
||||
0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x0f, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x49, 0x64, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x11, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61,
|
||||
0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x07, 0x47, 0x65, 0x74,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x12, 0x0c, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x49, 0x64, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x12, 0x2e, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x10, 0x2e, 0x6d, 0x61,
|
||||
0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e,
|
||||
0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x2b, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x10, 0x2e, 0x6d, 0x61,
|
||||
0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e,
|
||||
0x6d, 0x61, 0x70, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2d,
|
||||
0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x0f, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
|
||||
0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73,
|
||||
0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a,
|
||||
0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x11, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
|
||||
0x4d, 0x61, 0x70, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x2d, 0x5a, 0x2b, 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, 0x6d, 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_maps_proto_rawDescOnce sync.Once
|
||||
file_maps_proto_rawDescData = file_maps_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_maps_proto_rawDescGZIP() []byte {
|
||||
file_maps_proto_rawDescOnce.Do(func() {
|
||||
file_maps_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_proto_rawDescData)
|
||||
})
|
||||
return file_maps_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_maps_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_maps_proto_goTypes = []interface{}{
|
||||
(*IdList)(nil), // 0: maps.IdList
|
||||
(*IdMessage)(nil), // 1: maps.IdMessage
|
||||
(*MapResponse)(nil), // 2: maps.MapResponse
|
||||
(*MapRequest)(nil), // 3: maps.MapRequest
|
||||
(*MapFilter)(nil), // 4: maps.MapFilter
|
||||
(*MapList)(nil), // 5: maps.MapList
|
||||
(*ListRequest)(nil), // 6: maps.ListRequest
|
||||
(*Pagination)(nil), // 7: maps.Pagination
|
||||
(*NullResponse)(nil), // 8: maps.NullResponse
|
||||
}
|
||||
var file_maps_proto_depIdxs = []int32{
|
||||
2, // 0: maps.MapList.Maps:type_name -> maps.MapResponse
|
||||
4, // 1: maps.ListRequest.Filter:type_name -> maps.MapFilter
|
||||
7, // 2: maps.ListRequest.Page:type_name -> maps.Pagination
|
||||
1, // 3: maps.MapsService.Get:input_type -> maps.IdMessage
|
||||
0, // 4: maps.MapsService.GetList:input_type -> maps.IdList
|
||||
3, // 5: maps.MapsService.Update:input_type -> maps.MapRequest
|
||||
3, // 6: maps.MapsService.Create:input_type -> maps.MapRequest
|
||||
1, // 7: maps.MapsService.Delete:input_type -> maps.IdMessage
|
||||
6, // 8: maps.MapsService.List:input_type -> maps.ListRequest
|
||||
2, // 9: maps.MapsService.Get:output_type -> maps.MapResponse
|
||||
5, // 10: maps.MapsService.GetList:output_type -> maps.MapList
|
||||
8, // 11: maps.MapsService.Update:output_type -> maps.NullResponse
|
||||
1, // 12: maps.MapsService.Create:output_type -> maps.IdMessage
|
||||
8, // 13: maps.MapsService.Delete:output_type -> maps.NullResponse
|
||||
5, // 14: maps.MapsService.List:output_type -> maps.MapList
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_maps_proto_init() }
|
||||
func file_maps_proto_init() {
|
||||
if File_maps_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_maps_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IdList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_maps_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_maps_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MapResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_maps_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MapRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_maps_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MapFilter); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_maps_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MapList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_maps_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_maps_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_maps_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_maps_proto_msgTypes[3].OneofWrappers = []interface{}{}
|
||||
file_maps_proto_msgTypes[4].OneofWrappers = []interface{}{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_maps_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_maps_proto_goTypes,
|
||||
DependencyIndexes: file_maps_proto_depIdxs,
|
||||
MessageInfos: file_maps_proto_msgTypes,
|
||||
}.Build()
|
||||
File_maps_proto = out.File
|
||||
file_maps_proto_rawDesc = nil
|
||||
file_maps_proto_goTypes = nil
|
||||
file_maps_proto_depIdxs = nil
|
||||
}
|
285
maps/maps_grpc.pb.go
Normal file
285
maps/maps_grpc.pb.go
Normal file
@ -0,0 +1,285 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: maps.proto
|
||||
|
||||
package maps
|
||||
|
||||
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
|
||||
|
||||
// MapsServiceClient is the client API for MapsService 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 MapsServiceClient interface {
|
||||
Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*MapResponse, error)
|
||||
GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*MapList, error)
|
||||
Update(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
Create(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*IdMessage, error)
|
||||
Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*MapList, error)
|
||||
}
|
||||
|
||||
type mapsServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewMapsServiceClient(cc grpc.ClientConnInterface) MapsServiceClient {
|
||||
return &mapsServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *mapsServiceClient) Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*MapResponse, error) {
|
||||
out := new(MapResponse)
|
||||
err := c.cc.Invoke(ctx, "/maps.MapsService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *mapsServiceClient) GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*MapList, error) {
|
||||
out := new(MapList)
|
||||
err := c.cc.Invoke(ctx, "/maps.MapsService/GetList", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *mapsServiceClient) Update(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/maps.MapsService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *mapsServiceClient) Create(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*IdMessage, error) {
|
||||
out := new(IdMessage)
|
||||
err := c.cc.Invoke(ctx, "/maps.MapsService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *mapsServiceClient) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/maps.MapsService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *mapsServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*MapList, error) {
|
||||
out := new(MapList)
|
||||
err := c.cc.Invoke(ctx, "/maps.MapsService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// MapsServiceServer is the server API for MapsService service.
|
||||
// All implementations must embed UnimplementedMapsServiceServer
|
||||
// for forward compatibility
|
||||
type MapsServiceServer interface {
|
||||
Get(context.Context, *IdMessage) (*MapResponse, error)
|
||||
GetList(context.Context, *IdList) (*MapList, error)
|
||||
Update(context.Context, *MapRequest) (*NullResponse, error)
|
||||
Create(context.Context, *MapRequest) (*IdMessage, error)
|
||||
Delete(context.Context, *IdMessage) (*NullResponse, error)
|
||||
List(context.Context, *ListRequest) (*MapList, error)
|
||||
mustEmbedUnimplementedMapsServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedMapsServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedMapsServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedMapsServiceServer) Get(context.Context, *IdMessage) (*MapResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) GetList(context.Context, *IdList) (*MapList, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) Update(context.Context, *MapRequest) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) Create(context.Context, *MapRequest) (*IdMessage, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) Delete(context.Context, *IdMessage) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) List(context.Context, *ListRequest) (*MapList, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedMapsServiceServer) mustEmbedUnimplementedMapsServiceServer() {}
|
||||
|
||||
// UnsafeMapsServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to MapsServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeMapsServiceServer interface {
|
||||
mustEmbedUnimplementedMapsServiceServer()
|
||||
}
|
||||
|
||||
func RegisterMapsServiceServer(s grpc.ServiceRegistrar, srv MapsServiceServer) {
|
||||
s.RegisterService(&MapsService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _MapsService_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.(MapsServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/maps.MapsService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MapsServiceServer).Get(ctx, req.(*IdMessage))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MapsService_GetList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdList)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MapsServiceServer).GetList(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/maps.MapsService/GetList",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MapsServiceServer).GetList(ctx, req.(*IdList))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MapsService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MapRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MapsServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/maps.MapsService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MapsServiceServer).Update(ctx, req.(*MapRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MapsService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(MapRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MapsServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/maps.MapsService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MapsServiceServer).Create(ctx, req.(*MapRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MapsService_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.(MapsServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/maps.MapsService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MapsServiceServer).Delete(ctx, req.(*IdMessage))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MapsService_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.(MapsServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/maps.MapsService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MapsServiceServer).List(ctx, req.(*ListRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// MapsService_ServiceDesc is the grpc.ServiceDesc for MapsService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var MapsService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "maps.MapsService",
|
||||
HandlerType: (*MapsServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _MapsService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetList",
|
||||
Handler: _MapsService_GetList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _MapsService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _MapsService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _MapsService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _MapsService_List_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "maps.proto",
|
||||
}
|
749
users/users.pb.go
Normal file
749
users/users.pb.go
Normal file
@ -0,0 +1,749 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.18.1
|
||||
// source: users.proto
|
||||
|
||||
package users
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type IdList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID []int64 `protobuf:"varint,1,rep,packed,name=ID,proto3" json:"ID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *IdList) Reset() {
|
||||
*x = IdList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_users_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IdList) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdList) ProtoMessage() {}
|
||||
|
||||
func (x *IdList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_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 IdList.ProtoReflect.Descriptor instead.
|
||||
func (*IdList) Descriptor() ([]byte, []int) {
|
||||
return file_users_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *IdList) GetID() []int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
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_users_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_users_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_users_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *IdMessage) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UserResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
Username string `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"`
|
||||
StateID int32 `protobuf:"varint,3,opt,name=StateID,proto3" json:"StateID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UserResponse) Reset() {
|
||||
*x = UserResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_users_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UserResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserResponse) ProtoMessage() {}
|
||||
|
||||
func (x *UserResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_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 UserResponse.ProtoReflect.Descriptor instead.
|
||||
func (*UserResponse) Descriptor() ([]byte, []int) {
|
||||
return file_users_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *UserResponse) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserResponse) GetUsername() string {
|
||||
if x != nil {
|
||||
return x.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserResponse) GetStateID() int32 {
|
||||
if x != nil {
|
||||
return x.StateID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UserRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
||||
Username *string `protobuf:"bytes,2,opt,name=Username,proto3,oneof" json:"Username,omitempty"`
|
||||
StateID *int32 `protobuf:"varint,3,opt,name=StateID,proto3,oneof" json:"StateID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UserRequest) Reset() {
|
||||
*x = UserRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_users_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UserRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UserRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_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 UserRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UserRequest) Descriptor() ([]byte, []int) {
|
||||
return file_users_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *UserRequest) GetID() int64 {
|
||||
if x != nil {
|
||||
return x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserRequest) GetUsername() string {
|
||||
if x != nil && x.Username != nil {
|
||||
return *x.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserRequest) GetStateID() int32 {
|
||||
if x != nil && x.StateID != nil {
|
||||
return *x.StateID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UserFilter struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
ID *int64 `protobuf:"varint,1,opt,name=ID,proto3,oneof" json:"ID,omitempty"`
|
||||
Username *string `protobuf:"bytes,2,opt,name=Username,proto3,oneof" json:"Username,omitempty"`
|
||||
StateID *int32 `protobuf:"varint,3,opt,name=StateID,proto3,oneof" json:"StateID,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UserFilter) Reset() {
|
||||
*x = UserFilter{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_users_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UserFilter) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserFilter) ProtoMessage() {}
|
||||
|
||||
func (x *UserFilter) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_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 UserFilter.ProtoReflect.Descriptor instead.
|
||||
func (*UserFilter) Descriptor() ([]byte, []int) {
|
||||
return file_users_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *UserFilter) GetID() int64 {
|
||||
if x != nil && x.ID != nil {
|
||||
return *x.ID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserFilter) GetUsername() string {
|
||||
if x != nil && x.Username != nil {
|
||||
return *x.Username
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserFilter) GetStateID() int32 {
|
||||
if x != nil && x.StateID != nil {
|
||||
return *x.StateID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UserList struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Users []*UserResponse `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UserList) Reset() {
|
||||
*x = UserList{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_users_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UserList) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserList) ProtoMessage() {}
|
||||
|
||||
func (x *UserList) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_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 UserList.ProtoReflect.Descriptor instead.
|
||||
func (*UserList) Descriptor() ([]byte, []int) {
|
||||
return file_users_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *UserList) GetUsers() []*UserResponse {
|
||||
if x != nil {
|
||||
return x.Users
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Filter *UserFilter `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_users_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_users_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_users_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *ListRequest) GetFilter() *UserFilter {
|
||||
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_users_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_users_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_users_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_users_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_users_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_users_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
var File_users_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_users_proto_rawDesc = []byte{
|
||||
0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x75,
|
||||
0x73, 0x65, 0x72, 0x73, 0x22, 0x18, 0x0a, 0x06, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 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, 0x54, 0x0a, 0x0c, 0x55,
|
||||
0x73, 0x65, 0x72, 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, 0x1a, 0x0a, 0x08, 0x55,
|
||||
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x55,
|
||||
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 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, 0x22, 0x76, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44,
|
||||
0x12, 0x1f, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01,
|
||||
0x01, 0x12, 0x1d, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x05, 0x48, 0x01, 0x52, 0x07, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01,
|
||||
0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a,
|
||||
0x08, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x22, 0x81, 0x01, 0x0a, 0x0a, 0x55, 0x73,
|
||||
0x65, 0x72, 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, 0x1f, 0x0a,
|
||||
0x08, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
|
||||
0x01, 0x52, 0x08, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1d,
|
||||
0x0a, 0x07, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48,
|
||||
0x02, 0x52, 0x07, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a,
|
||||
0x03, 0x5f, 0x49, 0x44, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x44, 0x22, 0x35, 0x0a,
|
||||
0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x55, 0x73, 0x65,
|
||||
0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73,
|
||||
0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x55,
|
||||
0x73, 0x65, 0x72, 0x73, 0x22, 0x5f, 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, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72,
|
||||
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x25,
|
||||
0x0a, 0x04, 0x50, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x75,
|
||||
0x73, 0x65, 0x72, 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,
|
||||
0xa8, 0x02, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
||||
0x12, 0x2c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e,
|
||||
0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72,
|
||||
0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29,
|
||||
0x0a, 0x07, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0d, 0x2e, 0x75, 0x73, 0x65, 0x72,
|
||||
0x73, 0x2e, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73,
|
||||
0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x55, 0x70, 0x64,
|
||||
0x61, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e,
|
||||
0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06,
|
||||
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55,
|
||||
0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x75, 0x73, 0x65,
|
||||
0x72, 0x73, 0x2e, 0x49, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x0a, 0x06,
|
||||
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x10, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49,
|
||||
0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73,
|
||||
0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a,
|
||||
0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x75, 0x73, 0x65, 0x72,
|
||||
0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x0f, 0x5a, 0x0d, 0x70, 0x6b,
|
||||
0x67, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_users_proto_rawDescOnce sync.Once
|
||||
file_users_proto_rawDescData = file_users_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_users_proto_rawDescGZIP() []byte {
|
||||
file_users_proto_rawDescOnce.Do(func() {
|
||||
file_users_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_proto_rawDescData)
|
||||
})
|
||||
return file_users_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_users_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_users_proto_goTypes = []interface{}{
|
||||
(*IdList)(nil), // 0: users.IdList
|
||||
(*IdMessage)(nil), // 1: users.IdMessage
|
||||
(*UserResponse)(nil), // 2: users.UserResponse
|
||||
(*UserRequest)(nil), // 3: users.UserRequest
|
||||
(*UserFilter)(nil), // 4: users.UserFilter
|
||||
(*UserList)(nil), // 5: users.UserList
|
||||
(*ListRequest)(nil), // 6: users.ListRequest
|
||||
(*Pagination)(nil), // 7: users.Pagination
|
||||
(*NullResponse)(nil), // 8: users.NullResponse
|
||||
}
|
||||
var file_users_proto_depIdxs = []int32{
|
||||
2, // 0: users.UserList.Users:type_name -> users.UserResponse
|
||||
4, // 1: users.ListRequest.Filter:type_name -> users.UserFilter
|
||||
7, // 2: users.ListRequest.Page:type_name -> users.Pagination
|
||||
1, // 3: users.UsersService.Get:input_type -> users.IdMessage
|
||||
0, // 4: users.UsersService.GetList:input_type -> users.IdList
|
||||
3, // 5: users.UsersService.Update:input_type -> users.UserRequest
|
||||
3, // 6: users.UsersService.Create:input_type -> users.UserRequest
|
||||
1, // 7: users.UsersService.Delete:input_type -> users.IdMessage
|
||||
6, // 8: users.UsersService.List:input_type -> users.ListRequest
|
||||
2, // 9: users.UsersService.Get:output_type -> users.UserResponse
|
||||
5, // 10: users.UsersService.GetList:output_type -> users.UserList
|
||||
8, // 11: users.UsersService.Update:output_type -> users.NullResponse
|
||||
1, // 12: users.UsersService.Create:output_type -> users.IdMessage
|
||||
8, // 13: users.UsersService.Delete:output_type -> users.NullResponse
|
||||
5, // 14: users.UsersService.List:output_type -> users.UserList
|
||||
9, // [9:15] is the sub-list for method output_type
|
||||
3, // [3:9] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_users_proto_init() }
|
||||
func file_users_proto_init() {
|
||||
if File_users_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_users_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IdList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_users_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_users_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UserResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_users_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UserRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_users_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UserFilter); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_users_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UserList); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_users_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_users_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_users_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_users_proto_msgTypes[3].OneofWrappers = []interface{}{}
|
||||
file_users_proto_msgTypes[4].OneofWrappers = []interface{}{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_users_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_users_proto_goTypes,
|
||||
DependencyIndexes: file_users_proto_depIdxs,
|
||||
MessageInfos: file_users_proto_msgTypes,
|
||||
}.Build()
|
||||
File_users_proto = out.File
|
||||
file_users_proto_rawDesc = nil
|
||||
file_users_proto_goTypes = nil
|
||||
file_users_proto_depIdxs = nil
|
||||
}
|
285
users/users_grpc.pb.go
Normal file
285
users/users_grpc.pb.go
Normal file
@ -0,0 +1,285 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.18.1
|
||||
// source: users.proto
|
||||
|
||||
package users
|
||||
|
||||
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
|
||||
|
||||
// UsersServiceClient is the client API for UsersService 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 UsersServiceClient interface {
|
||||
Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*UserResponse, error)
|
||||
GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*UserList, error)
|
||||
Update(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
Create(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*IdMessage, error)
|
||||
Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error)
|
||||
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*UserList, error)
|
||||
}
|
||||
|
||||
type usersServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewUsersServiceClient(cc grpc.ClientConnInterface) UsersServiceClient {
|
||||
return &usersServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) Get(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*UserResponse, error) {
|
||||
out := new(UserResponse)
|
||||
err := c.cc.Invoke(ctx, "/users.UsersService/Get", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) GetList(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*UserList, error) {
|
||||
out := new(UserList)
|
||||
err := c.cc.Invoke(ctx, "/users.UsersService/GetList", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) Update(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/users.UsersService/Update", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) Create(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*IdMessage, error) {
|
||||
out := new(IdMessage)
|
||||
err := c.cc.Invoke(ctx, "/users.UsersService/Create", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) Delete(ctx context.Context, in *IdMessage, opts ...grpc.CallOption) (*NullResponse, error) {
|
||||
out := new(NullResponse)
|
||||
err := c.cc.Invoke(ctx, "/users.UsersService/Delete", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*UserList, error) {
|
||||
out := new(UserList)
|
||||
err := c.cc.Invoke(ctx, "/users.UsersService/List", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// UsersServiceServer is the server API for UsersService service.
|
||||
// All implementations must embed UnimplementedUsersServiceServer
|
||||
// for forward compatibility
|
||||
type UsersServiceServer interface {
|
||||
Get(context.Context, *IdMessage) (*UserResponse, error)
|
||||
GetList(context.Context, *IdList) (*UserList, error)
|
||||
Update(context.Context, *UserRequest) (*NullResponse, error)
|
||||
Create(context.Context, *UserRequest) (*IdMessage, error)
|
||||
Delete(context.Context, *IdMessage) (*NullResponse, error)
|
||||
List(context.Context, *ListRequest) (*UserList, error)
|
||||
mustEmbedUnimplementedUsersServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedUsersServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedUsersServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedUsersServiceServer) Get(context.Context, *IdMessage) (*UserResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) GetList(context.Context, *IdList) (*UserList, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetList not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) Update(context.Context, *UserRequest) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) Create(context.Context, *UserRequest) (*IdMessage, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) Delete(context.Context, *IdMessage) (*NullResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) List(context.Context, *ListRequest) (*UserList, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) mustEmbedUnimplementedUsersServiceServer() {}
|
||||
|
||||
// UnsafeUsersServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to UsersServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeUsersServiceServer interface {
|
||||
mustEmbedUnimplementedUsersServiceServer()
|
||||
}
|
||||
|
||||
func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer) {
|
||||
s.RegisterService(&UsersService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _UsersService_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.(UsersServiceServer).Get(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/users.UsersService/Get",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).Get(ctx, req.(*IdMessage))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_GetList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdList)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).GetList(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/users.UsersService/GetList",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).GetList(ctx, req.(*IdList))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).Update(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/users.UsersService/Update",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).Update(ctx, req.(*UserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).Create(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/users.UsersService/Create",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).Create(ctx, req.(*UserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_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.(UsersServiceServer).Delete(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/users.UsersService/Delete",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).Delete(ctx, req.(*IdMessage))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_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.(UsersServiceServer).List(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/users.UsersService/List",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).List(ctx, req.(*ListRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// UsersService_ServiceDesc is the grpc.ServiceDesc for UsersService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var UsersService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "users.UsersService",
|
||||
HandlerType: (*UsersServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Get",
|
||||
Handler: _UsersService_Get_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetList",
|
||||
Handler: _UsersService_GetList_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Update",
|
||||
Handler: _UsersService_Update_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Create",
|
||||
Handler: _UsersService_Create_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Delete",
|
||||
Handler: _UsersService_Delete_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "List",
|
||||
Handler: _UsersService_List_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "users.proto",
|
||||
}
|
Loading…
Reference in New Issue
Block a user