Debian Codegraph @

examples/bar/bar.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: github.com/containerd/protobuild/examples/bar/bar.proto
3
4 package bar
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_bdef534bf6116654, []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.bar.DoRequest")
70 }
71
72 func init() {
73 proto.RegisterFile("github.com/containerd/protobuild/examples/bar/bar.proto", fileDescriptor_bdef534bf6116654)
74 }
75
76 var fileDescriptor_bdef534bf6116654 = []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, 0x4a, 0x2c, 0x02, 0x61, 0x3d, 0xb0, 0x9c, 0x90, 0x18,
82 0x42, 0x89, 0x1e, 0x54, 0x89, 0x5e, 0x52, 0x62, 0x91, 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, 0x4e, 0x89, 0x45, 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, 0xa4, 0xc4, 0xa2, 0x24, 0x36, 0xb0, 0xac, 0x31,
90 0x20, 0x00, 0x00, 0xff, 0xff, 0x2a, 0xa0, 0x00, 0x73, 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 // BarClient is the client API for Bar 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 BarClient interface {
105 Do(ctx context.Context, in *DoRequest, opts ...grpc.CallOption) (*internal.Empty, error)
106 }
107
108 type barClient struct {
109 cc grpc.ClientConnInterface
110 }
111
112 func NewBarClient(cc grpc.ClientConnInterface) BarClient {
113 return &barClient{cc}
114 }
115
116 func (c *barClient) 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.bar.Bar/Do", in, out, opts...)
119 if err != nil {
120 return nil, err
121 }
122 return out, nil
123 }
124
125 // BarServer is the server API for Bar service.
126 type BarServer interface {
127 Do(context.Context, *DoRequest) (*internal.Empty, error)
128 }
129
130 // UnimplementedBarServer can be embedded to have forward compatible implementations.
131 type UnimplementedBarServer struct {
132 }
133
134 func (*UnimplementedBarServer) Do(ctx context.Context, req *DoRequest) (*internal.Empty, error) {
135 return nil, status.Errorf(codes.Unimplemented, "method Do not implemented")
136 }
137
138 func RegisterBarServer(s *grpc.Server, srv BarServer) {
139 s.RegisterService(&_Bar_serviceDesc, srv)
140 }
141
142 func _Bar_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.(BarServer).Do(ctx, in)
149 }
150 info := &grpc.UnaryServerInfo{
151 Server: srv,
152 FullMethod: "/protobuild.example.bar.Bar/Do",
153 }
154 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
155 return srv.(BarServer).Do(ctx, req.(*DoRequest))
156 }
157 return interceptor(ctx, in, info, handler)
158 }
159
160 var _Bar_serviceDesc = grpc.ServiceDesc{
161 ServiceName: "protobuild.example.bar.Bar",
162 HandlerType: (*BarServer)(nil),
163 Methods: []grpc.MethodDesc{
164 {
165 MethodName: "Do",
166 Handler: _Bar_Do_Handler,
167 },
168 },
169 Streams: []grpc.StreamDesc{},
170 Metadata: "github.com/containerd/protobuild/examples/bar/bar.proto",
171 }