OLD | NEW |
1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
2 // source: test.proto | 2 // source: test.proto |
3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
4 | 4 |
5 /* | 5 /* |
6 Package test is a generated protocol buffer package. | 6 Package test is a generated protocol buffer package. |
7 | 7 |
8 It is generated from these files: | 8 It is generated from these files: |
9 test.proto | 9 test.proto |
10 | 10 |
11 It has these top-level messages: | 11 It has these top-level messages: |
12 Void | 12 Void |
13 */ | 13 */ |
14 package test | 14 package test |
15 | 15 |
| 16 import prpccommon "github.com/luci/luci-go/common/prpc" |
16 import prpc "github.com/luci/luci-go/server/prpc" | 17 import prpc "github.com/luci/luci-go/server/prpc" |
17 | 18 |
18 import proto "github.com/golang/protobuf/proto" | 19 import proto "github.com/golang/protobuf/proto" |
19 import fmt "fmt" | 20 import fmt "fmt" |
20 import math "math" | 21 import math "math" |
21 import google_protobuf "github.com/luci/luci-go/common/proto/google/descriptor" | 22 import google_protobuf "github.com/luci/luci-go/common/proto/google/descriptor" |
22 import google_protobuf1 "github.com/luci/luci-go/common/proto/google" | 23 import google_protobuf1 "github.com/luci/luci-go/common/proto/google" |
23 | 24 |
24 import ( | 25 import ( |
25 context "golang.org/x/net/context" | 26 context "golang.org/x/net/context" |
(...skipping 20 matching lines...) Expand all Loading... |
46 // Reference imports to suppress errors if they are not otherwise used. | 47 // Reference imports to suppress errors if they are not otherwise used. |
47 var _ context.Context | 48 var _ context.Context |
48 var _ grpc.ClientConn | 49 var _ grpc.ClientConn |
49 | 50 |
50 // Client API for Greeter service | 51 // Client API for Greeter service |
51 | 52 |
52 type GreeterClient interface { | 53 type GreeterClient interface { |
53 Describe(ctx context.Context, in *Void, opts ...grpc.CallOption) (*googl
e_protobuf.FileDescriptorProto, error) | 54 Describe(ctx context.Context, in *Void, opts ...grpc.CallOption) (*googl
e_protobuf.FileDescriptorProto, error) |
54 Timestamp(ctx context.Context, in *Void, opts ...grpc.CallOption) (*goog
le_protobuf1.Timestamp, error) | 55 Timestamp(ctx context.Context, in *Void, opts ...grpc.CallOption) (*goog
le_protobuf1.Timestamp, error) |
55 } | 56 } |
| 57 type greeterPRPCClient struct { |
| 58 client *prpccommon.Client |
| 59 } |
| 60 |
| 61 func NewGreeterPRPCClient(client *prpccommon.Client) GreeterClient { |
| 62 return &greeterPRPCClient{client} |
| 63 } |
| 64 |
| 65 func (c *greeterPRPCClient) Describe(ctx context.Context, in *Void, opts ...grpc
.CallOption) (*google_protobuf.FileDescriptorProto, error) { |
| 66 out := new(google_protobuf.FileDescriptorProto) |
| 67 err := c.client.Call(ctx, "test.Greeter", "Describe", in, out, opts...) |
| 68 if err != nil { |
| 69 return nil, err |
| 70 } |
| 71 return out, nil |
| 72 } |
| 73 |
| 74 func (c *greeterPRPCClient) Timestamp(ctx context.Context, in *Void, opts ...grp
c.CallOption) (*google_protobuf1.Timestamp, error) { |
| 75 out := new(google_protobuf1.Timestamp) |
| 76 err := c.client.Call(ctx, "test.Greeter", "Timestamp", in, out, opts...) |
| 77 if err != nil { |
| 78 return nil, err |
| 79 } |
| 80 return out, nil |
| 81 } |
56 | 82 |
57 type greeterClient struct { | 83 type greeterClient struct { |
58 cc *grpc.ClientConn | 84 cc *grpc.ClientConn |
59 } | 85 } |
60 | 86 |
61 func NewGreeterClient(cc *grpc.ClientConn) GreeterClient { | 87 func NewGreeterClient(cc *grpc.ClientConn) GreeterClient { |
62 return &greeterClient{cc} | 88 return &greeterClient{cc} |
63 } | 89 } |
64 | 90 |
65 func (c *greeterClient) Describe(ctx context.Context, in *Void, opts ...grpc.Cal
lOption) (*google_protobuf.FileDescriptorProto, error) { | 91 func (c *greeterClient) Describe(ctx context.Context, in *Void, opts ...grpc.Cal
lOption) (*google_protobuf.FileDescriptorProto, error) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0xa5, 0x14,
0xd2, 0xf3, 0xf3, 0xd3, | 163 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0xa5, 0x14,
0xd2, 0xf3, 0xf3, 0xd3, |
138 0x73, 0x52, 0xf5, 0xc1, 0x62, 0x49, 0xa5, 0x69, 0xfa, 0x29, 0xa9, 0xc5,
0xc9, 0x45, 0x99, 0x05, | 164 0x73, 0x52, 0xf5, 0xc1, 0x62, 0x49, 0xa5, 0x69, 0xfa, 0x29, 0xa9, 0xc5,
0xc9, 0x45, 0x99, 0x05, |
139 0x25, 0xf9, 0x45, 0x10, 0x75, 0x52, 0xf2, 0xe8, 0x2a, 0x4a, 0x32, 0x73,
0x81, 0x3a, 0x13, 0x73, | 165 0x25, 0xf9, 0x45, 0x10, 0x75, 0x52, 0xf2, 0xe8, 0x2a, 0x4a, 0x32, 0x73,
0x81, 0x3a, 0x13, 0x73, |
140 0x0b, 0x20, 0x0a, 0x94, 0xd8, 0xb8, 0x58, 0xc2, 0xf2, 0x33, 0x53, 0x8c,
0x1a, 0x18, 0xb9, 0xd8, | 166 0x0b, 0x20, 0x0a, 0x94, 0xd8, 0xb8, 0x58, 0xc2, 0xf2, 0x33, 0x53, 0x8c,
0x1a, 0x18, 0xb9, 0xd8, |
141 0xdd, 0x8b, 0x52, 0x53, 0x4b, 0x52, 0x8b, 0x84, 0xec, 0xb8, 0x38, 0x5c,
0xc0, 0x06, 0x25, 0xa5, | 167 0xdd, 0x8b, 0x52, 0x53, 0x4b, 0x52, 0x8b, 0x84, 0xec, 0xb8, 0x38, 0x5c,
0xc0, 0x06, 0x25, 0xa5, |
142 0x0a, 0x71, 0xe9, 0x81, 0x6d, 0x05, 0xa9, 0x91, 0x52, 0xd1, 0x83, 0x98,
0xa6, 0x07, 0x33, 0x4d, | 168 0x0a, 0x71, 0xe9, 0x81, 0x6d, 0x05, 0xa9, 0x91, 0x52, 0xd1, 0x83, 0x98,
0xa6, 0x07, 0x33, 0x4d, |
143 0xcf, 0x2d, 0x33, 0x27, 0xd5, 0x05, 0x6e, 0x67, 0x00, 0xd8, 0x44, 0x06,
0x21, 0x53, 0x2e, 0xce, | 169 0xcf, 0x2d, 0x33, 0x27, 0xd5, 0x05, 0x6e, 0x67, 0x00, 0xd8, 0x44, 0x06,
0x21, 0x53, 0x2e, 0xce, |
144 0x10, 0x98, 0x35, 0x28, 0x06, 0x48, 0x61, 0x18, 0x00, 0x57, 0xa7, 0xc4,
0x90, 0xc4, 0x06, 0x16, | 170 0x10, 0x98, 0x35, 0x28, 0x06, 0x48, 0x61, 0x18, 0x00, 0x57, 0xa7, 0xc4,
0x90, 0xc4, 0x06, 0x16, |
145 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x07, 0x4b, 0x26, 0x50, 0xe8,
0x00, 0x00, 0x00, | 171 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x07, 0x4b, 0x26, 0x50, 0xe8,
0x00, 0x00, 0x00, |
146 } | 172 } |
OLD | NEW |