Debian Codegraph @

examples/foo/foo.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: github.com/containerd/protobuild/examples/foo/foo.proto
3
4 package foo
5
6 import (
7 context "context"
8 fmt "fmt"
9 internal "github.com/containerd/protobuild/internal"
10 proto "github.com/golang/protobuf/proto"
11 timestamp "github.com/golang/protobuf/ptypes/timestamp"
12 grpc "google.golang.org/grpc"
13 codes "google.golang.org/grpc/codes"
14 status "google.golang.org/grpc/status"
15 math "math"
16 )
17
18 // Reference imports to suppress errors if they are not otherwise used.
19 var _ = proto.Marshal
20 var _ = fmt.Errorf
21 var _ = math.Inf
22
23 // This is a compile-time assertion to ensure that this generated file
24 // is compatible with the proto package it is being compiled against.
25 // A compilation error at this line likely means your copy of the
26 // proto package needs to be updated.
27 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
28
29 type DoRequest struct {
30 Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
31 XXX_NoUnkeyedLiteral struct{} `json:"-"`
32 XXX_unrecognized []byte `json:"-"`
33 XXX_sizecache int32 `json:"-"`
34 }
35
36 func (m *DoRequest) Reset() { *m = DoRequest{} }
37 func (m *DoRequest) String() string { return proto.CompactTextString(m) }
38 func (*DoRequest) ProtoMessage() {}
39 func (*DoRequest) Descriptor() ([]byte, []int) {
40 return fileDescriptor_db2b55b4267b3d4c, []int{0}
41 }
42
43 func (m *DoRequest) XXX_Unmarshal(b []byte) error {
44 return xxx_messageInfo_DoRequest.Unmarshal(m, b)
45 }
46 func (m *DoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
47 return xxx_messageInfo_DoRequest.Marshal(b, m, deterministic)
48 }
49 func (m *DoRequest) XXX_Merge(src proto.Message) {
50 xxx_messageInfo_DoRequest.Merge(m, src)
51 }
52 func (m *DoRequest) XXX_Size() int {
53 return xxx_messageInfo_DoRequest.Size(m)
54 }
55 func (m *DoRequest) XXX_DiscardUnknown() {
56 xxx_messageInfo_DoRequest.DiscardUnknown(m)
57 }
58
59 var xxx_messageInfo_DoRequest proto.InternalMessageInfo
60
61 func (m *DoRequest) GetTimestamp() *timestamp.Timestamp {
62 if m != nil {
63 return m.Timestamp
64 }
65 return nil
66 }
67
68 func init() {
69 proto.RegisterType((*DoRequest)(nil), "protobuild.example.foo.DoRequest")
70 }
71
72 func init() {
73 proto.RegisterFile("github.com/containerd/protobuild/examples/foo/foo.proto", fileDescriptor_db2b55b4267b3d4c)
74 }
75
76 var fileDescriptor_db2b55b4267b3d4c = []byte{
77 // 205 bytes of a gzipped FileDescriptorProto
78 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4f, 0xcf, 0x2c, 0xc9,
79 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0xcf, 0x2b, 0x49, 0xcc, 0xcc, 0x4b, 0x2d,
80 0x4a, 0xd1, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0xcd, 0xcc, 0x49, 0xd1, 0x4f, 0xad, 0x48,
81 0xcc, 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0x4f, 0xcb, 0xcf, 0x07, 0x61, 0x3d, 0xb0, 0x9c, 0x90, 0x18,
82 0x42, 0x89, 0x1e, 0x54, 0x89, 0x5e, 0x5a, 0x7e, 0xbe, 0x94, 0x74, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e,
83 0x2a, 0xcc, 0x84, 0x34, 0xfd, 0xd4, 0xdc, 0x82, 0x92, 0x4a, 0x88, 0x26, 0x29, 0x79, 0x74, 0xc9,
84 0x92, 0xcc, 0xdc, 0xd4, 0xe2, 0x92, 0xc4, 0xdc, 0x02, 0x88, 0x02, 0x25, 0x57, 0x2e, 0x4e, 0x97,
85 0xfc, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x21, 0x0b, 0x2e, 0x4e, 0xb8, 0xbc, 0x04, 0xb3,
86 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x94, 0x1e, 0xc4, 0x04, 0x3d, 0x98, 0x09, 0x7a, 0x21, 0x30, 0x15,
87 0x41, 0x08, 0xc5, 0x46, 0x6e, 0x5c, 0xcc, 0x6e, 0xf9, 0xf9, 0x42, 0xf6, 0x5c, 0x4c, 0x2e, 0xf9,
88 0x42, 0x8a, 0x7a, 0xd8, 0x9d, 0xaa, 0x07, 0xb7, 0x49, 0x4a, 0x0c, 0xc3, 0x58, 0x57, 0x90, 0xab,
89 0x9d, 0x4c, 0xa2, 0x8c, 0x48, 0x0b, 0x1f, 0xeb, 0xb4, 0xfc, 0xfc, 0x24, 0x36, 0xb0, 0xac, 0x31,
90 0x20, 0x00, 0x00, 0xff, 0xff, 0x79, 0xd3, 0x0b, 0x91, 0x5c, 0x01, 0x00, 0x00,
91 }
92
93 // Reference imports to suppress errors if they are not otherwise used.
94 var _ context.Context
95 var _ grpc.ClientConnInterface
96
97 // This is a compile-time assertion to ensure that this generated file
98 // is compatible with the grpc package it is being compiled against.
99 const _ = grpc.SupportPackageIsVersion6
100
101 // FooClient is the client API for Foo service.
102 //
103 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
104 type FooClient interface {
105 Do(ctx context.Context, in *DoRequest, opts ...grpc.CallOption) (*internal.Empty, error)
106 }
107
108 type fooClient struct {
109 cc grpc.ClientConnInterface
110 }
111
112 func NewFooClient(cc grpc.ClientConnInterface) FooClient {
113 return &fooClient{cc}
114 }
115
116 func (c *fooClient) Do(ctx context.Context, in *DoRequest, opts ...grpc.CallOption) (*internal.Empty, error) {
117 out := new(internal.Empty)
118 err := c.cc.Invoke(ctx, "/protobuild.example.foo.Foo/Do", in, out, opts...)
119 if err != nil {
120 return nil, err
121 }
122 return out, nil
123 }
124
125 // FooServer is the server API for Foo service.
126 type FooServer interface {
127 Do(context.Context, *DoRequest) (*internal.Empty, error)
128 }
129
130 // UnimplementedFooServer can be embedded to have forward compatible implementations.
131 type UnimplementedFooServer struct {
132 }
133
134 func (*UnimplementedFooServer) Do(ctx context.Context, req *DoRequest) (*internal.Empty, error) {
135 return nil, status.Errorf(codes.Unimplemented, "method Do not implemented")
136 }
137
138 func RegisterFooServer(s *grpc.Server, srv FooServer) {
139 s.RegisterService(&_Foo_serviceDesc, srv)
140 }
141
142 func _Foo_Do_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
143 in := new(DoRequest)
144 if err := dec(in); err != nil {
145 return nil, err
146 }
147 if interceptor == nil {
148 return srv.(FooServer).Do(ctx, in)
149 }
150 info := &grpc.UnaryServerInfo{
151 Server: srv,
152 FullMethod: "/protobuild.example.foo.Foo/Do",
153 }
154 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
155 return srv.(FooServer).Do(ctx, req.(*DoRequest))
156 }
157 return interceptor(ctx, in, info, handler)
158 }
159
160 var _Foo_serviceDesc = grpc.ServiceDesc{
161 ServiceName: "protobuild.example.foo.Foo",
162 HandlerType: (*FooServer)(nil),
163 Methods: []grpc.MethodDesc{
164 {
165 MethodName: "Do",
166 Handler: _Foo_Do_Handler,
167 },
168 },
169 Streams: []grpc.StreamDesc{},
170 Metadata: "github.com/containerd/protobuild/examples/foo/foo.proto",
171 }