// Code generated by protoc-gen-go. DO NOT EDIT.
// source: scw.proto

/*
Package scwrpc is a generated protocol buffer package.

It is generated from these files:
	scw.proto

It has these top-level messages:
	RequestResult
*/
package scwrpc

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import data "git.scraperwall.com/scw/data"

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 RequestResult struct {
	OK bool `protobuf:"varint,10,opt,name=OK" json:"OK,omitempty"`
}

func (m *RequestResult) Reset()                    { *m = RequestResult{} }
func (m *RequestResult) String() string            { return proto.CompactTextString(m) }
func (*RequestResult) ProtoMessage()               {}
func (*RequestResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

func (m *RequestResult) GetOK() bool {
	if m != nil {
		return m.OK
	}
	return false
}

func init() {
	proto.RegisterType((*RequestResult)(nil), "scwrpc.RequestResult")
}

// 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

// Client API for SCWProtos service

type SCWProtosClient interface {
	SendRequest(ctx context.Context, in *data.Request, opts ...grpc.CallOption) (*RequestResult, error)
}

type sCWProtosClient struct {
	cc *grpc.ClientConn
}

func NewSCWProtosClient(cc *grpc.ClientConn) SCWProtosClient {
	return &sCWProtosClient{cc}
}

func (c *sCWProtosClient) SendRequest(ctx context.Context, in *data.Request, opts ...grpc.CallOption) (*RequestResult, error) {
	out := new(RequestResult)
	err := grpc.Invoke(ctx, "/scwrpc.SCWProtos/SendRequest", in, out, c.cc, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// Server API for SCWProtos service

type SCWProtosServer interface {
	SendRequest(context.Context, *data.Request) (*RequestResult, error)
}

func RegisterSCWProtosServer(s *grpc.Server, srv SCWProtosServer) {
	s.RegisterService(&_SCWProtos_serviceDesc, srv)
}

func _SCWProtos_SendRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(data.Request)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(SCWProtosServer).SendRequest(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/scwrpc.SCWProtos/SendRequest",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(SCWProtosServer).SendRequest(ctx, req.(*data.Request))
	}
	return interceptor(ctx, in, info, handler)
}

var _SCWProtos_serviceDesc = grpc.ServiceDesc{
	ServiceName: "scwrpc.SCWProtos",
	HandlerType: (*SCWProtosServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendRequest",
			Handler:    _SCWProtos_SendRequest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "scw.proto",
}

func init() { proto.RegisterFile("scw.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 155 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2c, 0x4e, 0x2e, 0xd7,
	0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2b, 0x4e, 0x2e, 0x2f, 0x2a, 0x48, 0x96, 0xe2, 0x2d,
	0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x81, 0x08, 0x2b, 0xc9, 0x73, 0xf1, 0x06, 0x41, 0x04, 0x82,
	0x52, 0x8b, 0x4b, 0x73, 0x4a, 0x84, 0xf8, 0xb8, 0x98, 0xfc, 0xbd, 0x25, 0xb8, 0x14, 0x18, 0x35,
	0x38, 0x82, 0x98, 0xfc, 0xbd, 0x8d, 0x9c, 0xb8, 0x38, 0x83, 0x9d, 0xc3, 0x03, 0x40, 0x8a, 0x8b,
	0x85, 0x4c, 0xb9, 0xb8, 0x83, 0x53, 0xf3, 0x52, 0xa0, 0x3a, 0x84, 0x78, 0xf5, 0x52, 0x12, 0x4b,
	0x12, 0xf5, 0xa0, 0x5c, 0x29, 0x51, 0x3d, 0x88, 0x1d, 0x7a, 0x28, 0x26, 0x2a, 0x31, 0x38, 0xa9,
	0x72, 0x89, 0x25, 0xe7, 0xe7, 0xea, 0x15, 0x27, 0x17, 0x25, 0x16, 0xa4, 0x16, 0x95, 0x27, 0xe6,
	0xe4, 0x40, 0x55, 0x3a, 0x21, 0xcc, 0x0e, 0x60, 0x4c, 0x62, 0x03, 0x3b, 0xc9, 0x18, 0x10, 0x00,
	0x00, 0xff, 0xff, 0x94, 0xc6, 0x4e, 0x70, 0xb6, 0x00, 0x00, 0x00,
}
