Serge Bazanski | 62123e8 | 2018-10-05 14:32:59 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: proxy.proto |
| 3 | |
| 4 | package proto |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | context "golang.org/x/net/context" |
| 10 | grpc "google.golang.org/grpc" |
| 11 | math "math" |
| 12 | ) |
| 13 | |
| 14 | // Reference imports to suppress errors if they are not otherwise used. |
| 15 | var _ = proto.Marshal |
| 16 | var _ = fmt.Errorf |
| 17 | var _ = math.Inf |
| 18 | |
| 19 | // This is a compile-time assertion to ensure that this generated file |
| 20 | // is compatible with the proto package it is being compiled against. |
| 21 | // A compilation error at this line likely means your copy of the |
| 22 | // proto package needs to be updated. |
| 23 | const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| 24 | |
| 25 | type RunCommandRequest struct { |
| 26 | Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` |
| 27 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 28 | XXX_unrecognized []byte `json:"-"` |
| 29 | XXX_sizecache int32 `json:"-"` |
| 30 | } |
| 31 | |
| 32 | func (m *RunCommandRequest) Reset() { *m = RunCommandRequest{} } |
| 33 | func (m *RunCommandRequest) String() string { return proto.CompactTextString(m) } |
| 34 | func (*RunCommandRequest) ProtoMessage() {} |
| 35 | func (*RunCommandRequest) Descriptor() ([]byte, []int) { |
| 36 | return fileDescriptor_700b50b08ed8dbaf, []int{0} |
| 37 | } |
| 38 | |
| 39 | func (m *RunCommandRequest) XXX_Unmarshal(b []byte) error { |
| 40 | return xxx_messageInfo_RunCommandRequest.Unmarshal(m, b) |
| 41 | } |
| 42 | func (m *RunCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 43 | return xxx_messageInfo_RunCommandRequest.Marshal(b, m, deterministic) |
| 44 | } |
| 45 | func (m *RunCommandRequest) XXX_Merge(src proto.Message) { |
| 46 | xxx_messageInfo_RunCommandRequest.Merge(m, src) |
| 47 | } |
| 48 | func (m *RunCommandRequest) XXX_Size() int { |
| 49 | return xxx_messageInfo_RunCommandRequest.Size(m) |
| 50 | } |
| 51 | func (m *RunCommandRequest) XXX_DiscardUnknown() { |
| 52 | xxx_messageInfo_RunCommandRequest.DiscardUnknown(m) |
| 53 | } |
| 54 | |
| 55 | var xxx_messageInfo_RunCommandRequest proto.InternalMessageInfo |
| 56 | |
| 57 | func (m *RunCommandRequest) GetCommand() string { |
| 58 | if m != nil { |
| 59 | return m.Command |
| 60 | } |
| 61 | return "" |
| 62 | } |
| 63 | |
| 64 | type RunCommandResponse struct { |
| 65 | EffectiveCommand string `protobuf:"bytes,1,opt,name=effective_command,json=effectiveCommand,proto3" json:"effective_command,omitempty"` |
| 66 | Lines []string `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"` |
| 67 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 68 | XXX_unrecognized []byte `json:"-"` |
| 69 | XXX_sizecache int32 `json:"-"` |
| 70 | } |
| 71 | |
| 72 | func (m *RunCommandResponse) Reset() { *m = RunCommandResponse{} } |
| 73 | func (m *RunCommandResponse) String() string { return proto.CompactTextString(m) } |
| 74 | func (*RunCommandResponse) ProtoMessage() {} |
| 75 | func (*RunCommandResponse) Descriptor() ([]byte, []int) { |
| 76 | return fileDescriptor_700b50b08ed8dbaf, []int{1} |
| 77 | } |
| 78 | |
| 79 | func (m *RunCommandResponse) XXX_Unmarshal(b []byte) error { |
| 80 | return xxx_messageInfo_RunCommandResponse.Unmarshal(m, b) |
| 81 | } |
| 82 | func (m *RunCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 83 | return xxx_messageInfo_RunCommandResponse.Marshal(b, m, deterministic) |
| 84 | } |
| 85 | func (m *RunCommandResponse) XXX_Merge(src proto.Message) { |
| 86 | xxx_messageInfo_RunCommandResponse.Merge(m, src) |
| 87 | } |
| 88 | func (m *RunCommandResponse) XXX_Size() int { |
| 89 | return xxx_messageInfo_RunCommandResponse.Size(m) |
| 90 | } |
| 91 | func (m *RunCommandResponse) XXX_DiscardUnknown() { |
| 92 | xxx_messageInfo_RunCommandResponse.DiscardUnknown(m) |
| 93 | } |
| 94 | |
| 95 | var xxx_messageInfo_RunCommandResponse proto.InternalMessageInfo |
| 96 | |
| 97 | func (m *RunCommandResponse) GetEffectiveCommand() string { |
| 98 | if m != nil { |
| 99 | return m.EffectiveCommand |
| 100 | } |
| 101 | return "" |
| 102 | } |
| 103 | |
| 104 | func (m *RunCommandResponse) GetLines() []string { |
| 105 | if m != nil { |
| 106 | return m.Lines |
| 107 | } |
| 108 | return nil |
| 109 | } |
| 110 | |
| 111 | func init() { |
| 112 | proto.RegisterType((*RunCommandRequest)(nil), "proto.RunCommandRequest") |
| 113 | proto.RegisterType((*RunCommandResponse)(nil), "proto.RunCommandResponse") |
| 114 | } |
| 115 | |
| 116 | func init() { proto.RegisterFile("proxy.proto", fileDescriptor_700b50b08ed8dbaf) } |
| 117 | |
| 118 | var fileDescriptor_700b50b08ed8dbaf = []byte{ |
| 119 | // 165 bytes of a gzipped FileDescriptorProto |
| 120 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2e, 0x28, 0xca, 0xaf, |
| 121 | 0xa8, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x4a, 0xba, 0x5c, 0x82, 0x41, |
| 122 | 0xa5, 0x79, 0xce, 0xf9, 0xb9, 0xb9, 0x89, 0x79, 0x29, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, |
| 123 | 0x42, 0x12, 0x5c, 0xec, 0xc9, 0x10, 0x11, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x18, 0x57, |
| 124 | 0x29, 0x9c, 0x4b, 0x08, 0x59, 0x79, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x90, 0x36, 0x97, 0x60, |
| 125 | 0x6a, 0x5a, 0x5a, 0x6a, 0x72, 0x49, 0x66, 0x59, 0x6a, 0x3c, 0xaa, 0x4e, 0x01, 0xb8, 0x04, 0x54, |
| 126 | 0x93, 0x90, 0x08, 0x17, 0x6b, 0x4e, 0x66, 0x5e, 0x6a, 0xb1, 0x04, 0x93, 0x02, 0xb3, 0x06, 0x67, |
| 127 | 0x10, 0x84, 0x63, 0xe4, 0xcf, 0xc5, 0xe5, 0x6b, 0x66, 0x64, 0x64, 0x10, 0x00, 0x72, 0xa2, 0x90, |
| 128 | 0x23, 0x17, 0x17, 0xc2, 0x1a, 0x21, 0x09, 0x88, 0x93, 0xf5, 0x30, 0x1c, 0x2a, 0x25, 0x89, 0x45, |
| 129 | 0x06, 0xe2, 0xa6, 0x24, 0x36, 0xb0, 0x8c, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x39, 0x6d, 0xab, |
| 130 | 0xdd, 0xf5, 0x00, 0x00, 0x00, |
| 131 | } |
| 132 | |
| 133 | // Reference imports to suppress errors if they are not otherwise used. |
| 134 | var _ context.Context |
| 135 | var _ grpc.ClientConn |
| 136 | |
| 137 | // This is a compile-time assertion to ensure that this generated file |
| 138 | // is compatible with the grpc package it is being compiled against. |
| 139 | const _ = grpc.SupportPackageIsVersion4 |
| 140 | |
| 141 | // M6220ProxyClient is the client API for M6220Proxy service. |
| 142 | // |
| 143 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 144 | type M6220ProxyClient interface { |
| 145 | RunCommand(ctx context.Context, in *RunCommandRequest, opts ...grpc.CallOption) (*RunCommandResponse, error) |
| 146 | } |
| 147 | |
| 148 | type m6220ProxyClient struct { |
| 149 | cc *grpc.ClientConn |
| 150 | } |
| 151 | |
| 152 | func NewM6220ProxyClient(cc *grpc.ClientConn) M6220ProxyClient { |
| 153 | return &m6220ProxyClient{cc} |
| 154 | } |
| 155 | |
| 156 | func (c *m6220ProxyClient) RunCommand(ctx context.Context, in *RunCommandRequest, opts ...grpc.CallOption) (*RunCommandResponse, error) { |
| 157 | out := new(RunCommandResponse) |
| 158 | err := c.cc.Invoke(ctx, "/proto.M6220Proxy/RunCommand", in, out, opts...) |
| 159 | if err != nil { |
| 160 | return nil, err |
| 161 | } |
| 162 | return out, nil |
| 163 | } |
| 164 | |
| 165 | // M6220ProxyServer is the server API for M6220Proxy service. |
| 166 | type M6220ProxyServer interface { |
| 167 | RunCommand(context.Context, *RunCommandRequest) (*RunCommandResponse, error) |
| 168 | } |
| 169 | |
| 170 | func RegisterM6220ProxyServer(s *grpc.Server, srv M6220ProxyServer) { |
| 171 | s.RegisterService(&_M6220Proxy_serviceDesc, srv) |
| 172 | } |
| 173 | |
| 174 | func _M6220Proxy_RunCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 175 | in := new(RunCommandRequest) |
| 176 | if err := dec(in); err != nil { |
| 177 | return nil, err |
| 178 | } |
| 179 | if interceptor == nil { |
| 180 | return srv.(M6220ProxyServer).RunCommand(ctx, in) |
| 181 | } |
| 182 | info := &grpc.UnaryServerInfo{ |
| 183 | Server: srv, |
| 184 | FullMethod: "/proto.M6220Proxy/RunCommand", |
| 185 | } |
| 186 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 187 | return srv.(M6220ProxyServer).RunCommand(ctx, req.(*RunCommandRequest)) |
| 188 | } |
| 189 | return interceptor(ctx, in, info, handler) |
| 190 | } |
| 191 | |
| 192 | var _M6220Proxy_serviceDesc = grpc.ServiceDesc{ |
| 193 | ServiceName: "proto.M6220Proxy", |
| 194 | HandlerType: (*M6220ProxyServer)(nil), |
| 195 | Methods: []grpc.MethodDesc{ |
| 196 | { |
| 197 | MethodName: "RunCommand", |
| 198 | Handler: _M6220Proxy_RunCommand_Handler, |
| 199 | }, |
| 200 | }, |
| 201 | Streams: []grpc.StreamDesc{}, |
| 202 | Metadata: "proxy.proto", |
| 203 | } |