central-api/golang/central-api.pb.go

271 lines
8.9 KiB
Go
Raw Normal View History

2018-04-06 10:16:19 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
2018-04-25 09:35:38 +00:00
// source: central-api.proto
2018-04-06 10:16:19 +00:00
2018-04-25 09:35:38 +00:00
package central_api
2018-04-06 10:16:19 +00:00
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ServerInput struct {
2018-05-11 11:36:29 +00:00
Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
Params []string `protobuf:"bytes,3,rep,name=params" json:"params,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerInput) Reset() { *m = ServerInput{} }
func (m *ServerInput) String() string { return proto.CompactTextString(m) }
func (*ServerInput) ProtoMessage() {}
func (*ServerInput) Descriptor() ([]byte, []int) {
return fileDescriptor_central_api_90f582576a9bbfba, []int{0}
}
func (m *ServerInput) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerInput.Unmarshal(m, b)
}
func (m *ServerInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerInput.Marshal(b, m, deterministic)
}
func (dst *ServerInput) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerInput.Merge(dst, src)
}
func (m *ServerInput) XXX_Size() int {
return xxx_messageInfo_ServerInput.Size(m)
}
func (m *ServerInput) XXX_DiscardUnknown() {
xxx_messageInfo_ServerInput.DiscardUnknown(m)
2018-04-06 10:16:19 +00:00
}
2018-05-11 11:36:29 +00:00
var xxx_messageInfo_ServerInput proto.InternalMessageInfo
2018-04-06 10:16:19 +00:00
func (m *ServerInput) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
func (m *ServerInput) GetMethod() string {
if m != nil {
return m.Method
}
return ""
}
func (m *ServerInput) GetParams() []string {
if m != nil {
return m.Params
}
return nil
}
type ServerParam struct {
2018-05-11 11:36:29 +00:00
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
Data string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
IsCollection bool `protobuf:"varint,3,opt,name=isCollection" json:"isCollection,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2018-04-06 10:16:19 +00:00
}
2018-05-11 11:36:29 +00:00
func (m *ServerParam) Reset() { *m = ServerParam{} }
func (m *ServerParam) String() string { return proto.CompactTextString(m) }
func (*ServerParam) ProtoMessage() {}
func (*ServerParam) Descriptor() ([]byte, []int) {
return fileDescriptor_central_api_90f582576a9bbfba, []int{1}
}
func (m *ServerParam) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerParam.Unmarshal(m, b)
}
func (m *ServerParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerParam.Marshal(b, m, deterministic)
}
func (dst *ServerParam) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerParam.Merge(dst, src)
}
func (m *ServerParam) XXX_Size() int {
return xxx_messageInfo_ServerParam.Size(m)
}
func (m *ServerParam) XXX_DiscardUnknown() {
xxx_messageInfo_ServerParam.DiscardUnknown(m)
}
var xxx_messageInfo_ServerParam proto.InternalMessageInfo
2018-04-06 10:16:19 +00:00
func (m *ServerParam) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *ServerParam) GetData() string {
if m != nil {
return m.Data
}
return ""
}
func (m *ServerParam) GetIsCollection() bool {
if m != nil {
return m.IsCollection
}
return false
}
type ServerOutput struct {
2018-05-11 11:36:29 +00:00
Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerOutput) Reset() { *m = ServerOutput{} }
func (m *ServerOutput) String() string { return proto.CompactTextString(m) }
func (*ServerOutput) ProtoMessage() {}
func (*ServerOutput) Descriptor() ([]byte, []int) {
return fileDescriptor_central_api_90f582576a9bbfba, []int{2}
}
func (m *ServerOutput) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerOutput.Unmarshal(m, b)
}
func (m *ServerOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerOutput.Marshal(b, m, deterministic)
}
func (dst *ServerOutput) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerOutput.Merge(dst, src)
}
func (m *ServerOutput) XXX_Size() int {
return xxx_messageInfo_ServerOutput.Size(m)
}
func (m *ServerOutput) XXX_DiscardUnknown() {
xxx_messageInfo_ServerOutput.DiscardUnknown(m)
2018-04-06 10:16:19 +00:00
}
2018-05-11 11:36:29 +00:00
var xxx_messageInfo_ServerOutput proto.InternalMessageInfo
2018-04-06 10:16:19 +00:00
func (m *ServerOutput) GetResult() string {
if m != nil {
return m.Result
}
return ""
}
func init() {
proto.RegisterType((*ServerInput)(nil), "ServerInput")
proto.RegisterType((*ServerParam)(nil), "ServerParam")
proto.RegisterType((*ServerOutput)(nil), "ServerOutput")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
2018-04-25 09:35:38 +00:00
// Client API for CentralAPI service
2018-04-06 10:16:19 +00:00
2018-04-25 09:35:38 +00:00
type CentralAPIClient interface {
2018-04-06 10:16:19 +00:00
Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error)
}
2018-04-25 09:35:38 +00:00
type centralAPIClient struct {
2018-04-06 10:16:19 +00:00
cc *grpc.ClientConn
}
2018-04-25 09:35:38 +00:00
func NewCentralAPIClient(cc *grpc.ClientConn) CentralAPIClient {
return &centralAPIClient{cc}
2018-04-06 10:16:19 +00:00
}
2018-04-25 09:35:38 +00:00
func (c *centralAPIClient) Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error) {
2018-04-06 10:16:19 +00:00
out := new(ServerOutput)
2018-04-25 09:35:38 +00:00
err := grpc.Invoke(ctx, "/CentralAPI/exec", in, out, c.cc, opts...)
2018-04-06 10:16:19 +00:00
if err != nil {
return nil, err
}
return out, nil
}
2018-04-25 09:35:38 +00:00
// Server API for CentralAPI service
2018-04-06 10:16:19 +00:00
2018-04-25 09:35:38 +00:00
type CentralAPIServer interface {
2018-04-06 10:16:19 +00:00
Exec(context.Context, *ServerInput) (*ServerOutput, error)
}
2018-04-25 09:35:38 +00:00
func RegisterCentralAPIServer(s *grpc.Server, srv CentralAPIServer) {
s.RegisterService(&_CentralAPI_serviceDesc, srv)
2018-04-06 10:16:19 +00:00
}
2018-04-25 09:35:38 +00:00
func _CentralAPI_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2018-04-06 10:16:19 +00:00
in := new(ServerInput)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
2018-04-25 09:35:38 +00:00
return srv.(CentralAPIServer).Exec(ctx, in)
2018-04-06 10:16:19 +00:00
}
info := &grpc.UnaryServerInfo{
Server: srv,
2018-04-25 09:35:38 +00:00
FullMethod: "/CentralAPI/Exec",
2018-04-06 10:16:19 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2018-04-25 09:35:38 +00:00
return srv.(CentralAPIServer).Exec(ctx, req.(*ServerInput))
2018-04-06 10:16:19 +00:00
}
return interceptor(ctx, in, info, handler)
}
2018-04-25 09:35:38 +00:00
var _CentralAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "CentralAPI",
HandlerType: (*CentralAPIServer)(nil),
2018-04-06 10:16:19 +00:00
Methods: []grpc.MethodDesc{
{
MethodName: "exec",
2018-04-25 09:35:38 +00:00
Handler: _CentralAPI_Exec_Handler,
2018-04-06 10:16:19 +00:00
},
},
Streams: []grpc.StreamDesc{},
2018-04-25 09:35:38 +00:00
Metadata: "central-api.proto",
2018-04-06 10:16:19 +00:00
}
2018-05-11 11:36:29 +00:00
func init() { proto.RegisterFile("central-api.proto", fileDescriptor_central_api_90f582576a9bbfba) }
2018-04-06 10:16:19 +00:00
2018-05-11 11:36:29 +00:00
var fileDescriptor_central_api_90f582576a9bbfba = []byte{
2018-04-25 09:35:38 +00:00
// 241 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
0x10, 0x40, 0x31, 0xa9, 0x2a, 0x38, 0xc2, 0x80, 0x07, 0x14, 0xb1, 0x10, 0x59, 0xa2, 0xea, 0x82,
0x07, 0xfa, 0x05, 0xd0, 0xa9, 0x13, 0x51, 0x11, 0x03, 0xa3, 0x49, 0xaf, 0x10, 0xc9, 0xc9, 0x59,
0xce, 0xa5, 0xc0, 0x1f, 0xf0, 0xd9, 0xc8, 0xb1, 0x41, 0x61, 0xbb, 0xf7, 0x86, 0xa7, 0xbb, 0x83,
0x8b, 0x1a, 0x3b, 0xf6, 0xc6, 0xde, 0x1a, 0xd7, 0x68, 0xe7, 0x89, 0x49, 0x3d, 0xc3, 0xd9, 0x13,
0xfa, 0x03, 0xfa, 0x4d, 0xe7, 0x06, 0x96, 0x97, 0x30, 0x67, 0xe3, 0xdf, 0x90, 0x0b, 0x51, 0x8a,
0xe5, 0xe9, 0x36, 0x51, 0xf0, 0x2d, 0xf2, 0x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