211 lines
6.4 KiB
Go
211 lines
6.4 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v6.31.0
|
|
// source: igapi/interface.proto
|
|
|
|
package igapi
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Request struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Igid string `protobuf:"bytes,2,opt,name=igid,proto3" json:"igid,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Request) Reset() {
|
|
*x = Request{}
|
|
mi := &file_igapi_interface_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Request) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Request) ProtoMessage() {}
|
|
|
|
func (x *Request) ProtoReflect() protoreflect.Message {
|
|
mi := &file_igapi_interface_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Request.ProtoReflect.Descriptor instead.
|
|
func (*Request) Descriptor() ([]byte, []int) {
|
|
return file_igapi_interface_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Request) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Request) GetIgid() string {
|
|
if x != nil {
|
|
return x.Igid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Reply struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Err int64 `protobuf:"varint,1,opt,name=err,proto3" json:"err,omitempty"`
|
|
Result map[string]string `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Reply) Reset() {
|
|
*x = Reply{}
|
|
mi := &file_igapi_interface_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Reply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Reply) ProtoMessage() {}
|
|
|
|
func (x *Reply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_igapi_interface_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Reply.ProtoReflect.Descriptor instead.
|
|
func (*Reply) Descriptor() ([]byte, []int) {
|
|
return file_igapi_interface_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Reply) GetErr() int64 {
|
|
if x != nil {
|
|
return x.Err
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Reply) GetResult() map[string]string {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_igapi_interface_proto protoreflect.FileDescriptor
|
|
|
|
const file_igapi_interface_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x15igapi/interface.proto\"-\n" +
|
|
"\aRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
|
"\x04igid\x18\x02 \x01(\tR\x04igid\"\x80\x01\n" +
|
|
"\x05Reply\x12\x10\n" +
|
|
"\x03err\x18\x01 \x01(\x03R\x03err\x12*\n" +
|
|
"\x06result\x18\x02 \x03(\v2\x12.Reply.ResultEntryR\x06result\x1a9\n" +
|
|
"\vResultEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x012\xbf\x01\n" +
|
|
"\x05IGAPI\x12\x1b\n" +
|
|
"\x05login\x12\b.Request\x1a\x06.Reply\"\x00\x12\"\n" +
|
|
"\faccount_info\x12\b.Request\x1a\x06.Reply\"\x00\x12\x1c\n" +
|
|
"\x06upload\x12\b.Request\x1a\x06.Reply\"\x00\x12\x1c\n" +
|
|
"\x06delete\x12\b.Request\x1a\x06.Reply\"\x00\x12\x1b\n" +
|
|
"\x05queue\x12\b.Request\x1a\x06.Reply\"\x00\x12\x1c\n" +
|
|
"\x06search\x12\b.Request\x1a\x06.Reply\"\x00B\x1cZ\x1anim.jasinco.work/app/igapib\x06proto3"
|
|
|
|
var (
|
|
file_igapi_interface_proto_rawDescOnce sync.Once
|
|
file_igapi_interface_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_igapi_interface_proto_rawDescGZIP() []byte {
|
|
file_igapi_interface_proto_rawDescOnce.Do(func() {
|
|
file_igapi_interface_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_igapi_interface_proto_rawDesc), len(file_igapi_interface_proto_rawDesc)))
|
|
})
|
|
return file_igapi_interface_proto_rawDescData
|
|
}
|
|
|
|
var file_igapi_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_igapi_interface_proto_goTypes = []any{
|
|
(*Request)(nil), // 0: Request
|
|
(*Reply)(nil), // 1: Reply
|
|
nil, // 2: Reply.ResultEntry
|
|
}
|
|
var file_igapi_interface_proto_depIdxs = []int32{
|
|
2, // 0: Reply.result:type_name -> Reply.ResultEntry
|
|
0, // 1: IGAPI.login:input_type -> Request
|
|
0, // 2: IGAPI.account_info:input_type -> Request
|
|
0, // 3: IGAPI.upload:input_type -> Request
|
|
0, // 4: IGAPI.delete:input_type -> Request
|
|
0, // 5: IGAPI.queue:input_type -> Request
|
|
0, // 6: IGAPI.search:input_type -> Request
|
|
1, // 7: IGAPI.login:output_type -> Reply
|
|
1, // 8: IGAPI.account_info:output_type -> Reply
|
|
1, // 9: IGAPI.upload:output_type -> Reply
|
|
1, // 10: IGAPI.delete:output_type -> Reply
|
|
1, // 11: IGAPI.queue:output_type -> Reply
|
|
1, // 12: IGAPI.search:output_type -> Reply
|
|
7, // [7:13] is the sub-list for method output_type
|
|
1, // [1:7] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_igapi_interface_proto_init() }
|
|
func file_igapi_interface_proto_init() {
|
|
if File_igapi_interface_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_igapi_interface_proto_rawDesc), len(file_igapi_interface_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_igapi_interface_proto_goTypes,
|
|
DependencyIndexes: file_igapi_interface_proto_depIdxs,
|
|
MessageInfos: file_igapi_interface_proto_msgTypes,
|
|
}.Build()
|
|
File_igapi_interface_proto = out.File
|
|
file_igapi_interface_proto_goTypes = nil
|
|
file_igapi_interface_proto_depIdxs = nil
|
|
}
|