data_workshop/way.pb.go

125 lines
4.1 KiB
Go
Raw Permalink Normal View History

2020-05-22 07:39:43 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: way.proto
package main
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
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
func init() {
proto.RegisterFile("way.proto", fileDescriptor_8313664ff05de314)
}
var fileDescriptor_8313664ff05de314 = []byte{
// 148 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2c, 0x4f, 0xac, 0xd4,
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0xc9, 0x4d, 0xcc, 0xcc, 0x93, 0x92, 0x49, 0xcf, 0xcf,
0x4f, 0xcf, 0x49, 0xd5, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9,
0xcc, 0xcf, 0x2b, 0x86, 0xa8, 0x91, 0xe2, 0x4a, 0x4a, 0x2c, 0x4e, 0x85, 0xb0, 0x8d, 0x9c, 0xb8,
0x98, 0xc3, 0x13, 0x2b, 0x85, 0xac, 0xb9, 0x58, 0xfc, 0x12, 0x73, 0x53, 0x85, 0x78, 0xf5, 0x40,
0xfa, 0xf5, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0xa4, 0xb8, 0x61, 0xdc, 0x82, 0x9c, 0x4a,
0x25, 0xf1, 0xa6, 0xcb, 0x4f, 0x26, 0x33, 0x09, 0x2a, 0xf1, 0xe8, 0x97, 0x19, 0xea, 0x97, 0x27,
0x56, 0xea, 0xe7, 0x25, 0xe6, 0xa6, 0x5a, 0x31, 0x6a, 0x39, 0x71, 0x44, 0xb1, 0xe9, 0x59, 0x83,
0x14, 0x26, 0xb1, 0x81, 0x0d, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x21, 0x70, 0x64, 0x1b,
0x91, 0x00, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// WayClient is the client API for Way service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WayClient interface {
Name(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}
type wayClient struct {
cc grpc.ClientConnInterface
}
func NewWayClient(cc grpc.ClientConnInterface) WayClient {
return &wayClient{cc}
}
func (c *wayClient) Name(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error) {
out := new(Reply)
err := c.cc.Invoke(ctx, "/main.Way/Name", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WayServer is the server API for Way service.
type WayServer interface {
Name(context.Context, *Request) (*Reply, error)
}
// UnimplementedWayServer can be embedded to have forward compatible implementations.
type UnimplementedWayServer struct {
}
func (*UnimplementedWayServer) Name(ctx context.Context, req *Request) (*Reply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Name not implemented")
}
func RegisterWayServer(s *grpc.Server, srv WayServer) {
s.RegisterService(&_Way_serviceDesc, srv)
}
func _Way_Name_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WayServer).Name(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/main.Way/Name",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WayServer).Name(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
var _Way_serviceDesc = grpc.ServiceDesc{
ServiceName: "main.Way",
HandlerType: (*WayServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Name",
Handler: _Way_Name_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "way.proto",
}