| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 | 
							- // Code generated by protoc-gen-go. DO NOT EDIT.
 
- // source: string.proto
 
- package pb
 
- import (
 
- 	context "context"
 
- 	fmt "fmt"
 
- 	proto "github.com/golang/protobuf/proto"
 
- 	grpc "google.golang.org/grpc"
 
- 	codes "google.golang.org/grpc/codes"
 
- 	status "google.golang.org/grpc/status"
 
- 	math "math"
 
- )
 
- // 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.ProtoPackageIsVersion3 // please upgrade the proto package
 
- type StringRequest struct {
 
- 	RequestType          string   `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"`
 
- 	A                    string   `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"`
 
- 	B                    string   `protobuf:"bytes,3,opt,name=b,proto3" json:"b,omitempty"`
 
- 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 
- 	XXX_unrecognized     []byte   `json:"-"`
 
- 	XXX_sizecache        int32    `json:"-"`
 
- }
 
- func (m *StringRequest) Reset()         { *m = StringRequest{} }
 
- func (m *StringRequest) String() string { return proto.CompactTextString(m) }
 
- func (*StringRequest) ProtoMessage()    {}
 
- func (*StringRequest) Descriptor() ([]byte, []int) {
 
- 	return fileDescriptor_38ecded40dd872b6, []int{0}
 
- }
 
- func (m *StringRequest) XXX_Unmarshal(b []byte) error {
 
- 	return xxx_messageInfo_StringRequest.Unmarshal(m, b)
 
- }
 
- func (m *StringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 
- 	return xxx_messageInfo_StringRequest.Marshal(b, m, deterministic)
 
- }
 
- func (m *StringRequest) XXX_Merge(src proto.Message) {
 
- 	xxx_messageInfo_StringRequest.Merge(m, src)
 
- }
 
- func (m *StringRequest) XXX_Size() int {
 
- 	return xxx_messageInfo_StringRequest.Size(m)
 
- }
 
- func (m *StringRequest) XXX_DiscardUnknown() {
 
- 	xxx_messageInfo_StringRequest.DiscardUnknown(m)
 
- }
 
- var xxx_messageInfo_StringRequest proto.InternalMessageInfo
 
- func (m *StringRequest) GetRequestType() string {
 
- 	if m != nil {
 
- 		return m.RequestType
 
- 	}
 
- 	return ""
 
- }
 
- func (m *StringRequest) GetA() string {
 
- 	if m != nil {
 
- 		return m.A
 
- 	}
 
- 	return ""
 
- }
 
- func (m *StringRequest) GetB() string {
 
- 	if m != nil {
 
- 		return m.B
 
- 	}
 
- 	return ""
 
- }
 
- type StringResponse struct {
 
- 	Result               string   `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
 
- 	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
 
- 	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 
- 	XXX_unrecognized     []byte   `json:"-"`
 
- 	XXX_sizecache        int32    `json:"-"`
 
- }
 
- func (m *StringResponse) Reset()         { *m = StringResponse{} }
 
- func (m *StringResponse) String() string { return proto.CompactTextString(m) }
 
- func (*StringResponse) ProtoMessage()    {}
 
- func (*StringResponse) Descriptor() ([]byte, []int) {
 
- 	return fileDescriptor_38ecded40dd872b6, []int{1}
 
- }
 
- func (m *StringResponse) XXX_Unmarshal(b []byte) error {
 
- 	return xxx_messageInfo_StringResponse.Unmarshal(m, b)
 
- }
 
- func (m *StringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 
- 	return xxx_messageInfo_StringResponse.Marshal(b, m, deterministic)
 
- }
 
- func (m *StringResponse) XXX_Merge(src proto.Message) {
 
- 	xxx_messageInfo_StringResponse.Merge(m, src)
 
- }
 
- func (m *StringResponse) XXX_Size() int {
 
- 	return xxx_messageInfo_StringResponse.Size(m)
 
- }
 
- func (m *StringResponse) XXX_DiscardUnknown() {
 
- 	xxx_messageInfo_StringResponse.DiscardUnknown(m)
 
- }
 
- var xxx_messageInfo_StringResponse proto.InternalMessageInfo
 
- func (m *StringResponse) GetResult() string {
 
- 	if m != nil {
 
- 		return m.Result
 
- 	}
 
- 	return ""
 
- }
 
- func (m *StringResponse) GetErr() string {
 
- 	if m != nil {
 
- 		return m.Err
 
- 	}
 
- 	return ""
 
- }
 
- func init() {
 
- 	proto.RegisterType((*StringRequest)(nil), "pb.StringRequest")
 
- 	proto.RegisterType((*StringResponse)(nil), "pb.StringResponse")
 
- }
 
- func init() { proto.RegisterFile("string.proto", fileDescriptor_38ecded40dd872b6) }
 
- var fileDescriptor_38ecded40dd872b6 = []byte{
 
- 	// 178 bytes of a gzipped FileDescriptorProto
 
- 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x2e, 0x29, 0xca,
 
- 	0xcc, 0x4b, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x52, 0xf2, 0xe3, 0xe2,
 
- 	0x0d, 0x06, 0x8b, 0x05, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x29, 0x72, 0xf1, 0x14, 0x41,
 
- 	0x98, 0xf1, 0x25, 0x95, 0x05, 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xdc, 0x50, 0xb1,
 
- 	0x90, 0xca, 0x82, 0x54, 0x21, 0x1e, 0x2e, 0xc6, 0x44, 0x09, 0x26, 0xb0, 0x38, 0x63, 0x22, 0x88,
 
- 	0x97, 0x24, 0xc1, 0x0c, 0xe1, 0x25, 0x29, 0x59, 0x71, 0xf1, 0xc1, 0xcc, 0x2b, 0x2e, 0xc8, 0xcf,
 
- 	0x2b, 0x4e, 0x15, 0x12, 0xe3, 0x62, 0x2b, 0x4a, 0x2d, 0x2e, 0xcd, 0x29, 0x81, 0x1a, 0x05, 0xe5,
 
- 	0x09, 0x09, 0x70, 0x31, 0xa7, 0x16, 0x15, 0x41, 0xcd, 0x01, 0x31, 0x8d, 0x1c, 0x60, 0x6e, 0x09,
 
- 	0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x15, 0xd2, 0xe7, 0x62, 0x71, 0xc9, 0x4c, 0x4b, 0x13, 0x12,
 
- 	0xd4, 0x2b, 0x48, 0xd2, 0x43, 0x71, 0xa6, 0x94, 0x10, 0xb2, 0x10, 0xc4, 0x26, 0x25, 0x86, 0x24,
 
- 	0x36, 0xb0, 0xc7, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x19, 0xa1, 0xe9, 0xf2, 0xe8, 0x00,
 
- 	0x00, 0x00,
 
- }
 
- // 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
 
- // StringServiceClient is the client API for StringService service.
 
- //
 
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
 
- type StringServiceClient interface {
 
- 	Diff(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringResponse, error)
 
- }
 
- type stringServiceClient struct {
 
- 	cc *grpc.ClientConn
 
- }
 
- func NewStringServiceClient(cc *grpc.ClientConn) StringServiceClient {
 
- 	return &stringServiceClient{cc}
 
- }
 
- func (c *stringServiceClient) Diff(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*StringResponse, error) {
 
- 	out := new(StringResponse)
 
- 	err := c.cc.Invoke(ctx, "/pb.StringService/Diff", in, out, opts...)
 
- 	if err != nil {
 
- 		return nil, err
 
- 	}
 
- 	return out, nil
 
- }
 
- // StringServiceServer is the server API for StringService service.
 
- type StringServiceServer interface {
 
- 	Diff(context.Context, *StringRequest) (*StringResponse, error)
 
- }
 
- // UnimplementedStringServiceServer can be embedded to have forward compatible implementations.
 
- type UnimplementedStringServiceServer struct {
 
- }
 
- func (*UnimplementedStringServiceServer) Diff(ctx context.Context, req *StringRequest) (*StringResponse, error) {
 
- 	return nil, status.Errorf(codes.Unimplemented, "method Diff not implemented")
 
- }
 
- func RegisterStringServiceServer(s *grpc.Server, srv StringServiceServer) {
 
- 	s.RegisterService(&_StringService_serviceDesc, srv)
 
- }
 
- func _StringService_Diff_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 
- 	in := new(StringRequest)
 
- 	if err := dec(in); err != nil {
 
- 		return nil, err
 
- 	}
 
- 	if interceptor == nil {
 
- 		return srv.(StringServiceServer).Diff(ctx, in)
 
- 	}
 
- 	info := &grpc.UnaryServerInfo{
 
- 		Server:     srv,
 
- 		FullMethod: "/pb.StringService/Diff",
 
- 	}
 
- 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 
- 		return srv.(StringServiceServer).Diff(ctx, req.(*StringRequest))
 
- 	}
 
- 	return interceptor(ctx, in, info, handler)
 
- }
 
- var _StringService_serviceDesc = grpc.ServiceDesc{
 
- 	ServiceName: "pb.StringService",
 
- 	HandlerType: (*StringServiceServer)(nil),
 
- 	Methods: []grpc.MethodDesc{
 
- 		{
 
- 			MethodName: "Diff",
 
- 			Handler:    _StringService_Diff_Handler,
 
- 		},
 
- 	},
 
- 	Streams:  []grpc.StreamDesc{},
 
- 	Metadata: "string.proto",
 
- }
 
 
  |