/
microservice.pb.go
216 lines (196 loc) · 11.3 KB
/
microservice.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: api/francisar/chatgpt/v1/microservice.proto
package francisar_chatgpt_v1
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
grpc_health_v1 "google.golang.org/grpc/health/grpc_health_v1"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("api/francisar/chatgpt/v1/microservice.proto", fileDescriptor_675cde845bd19763)
}
func init() {
golang_proto.RegisterFile("api/francisar/chatgpt/v1/microservice.proto", fileDescriptor_675cde845bd19763)
}
var fileDescriptor_675cde845bd19763 = []byte{
// 923 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x4d, 0x6c, 0x1b, 0x45,
0x14, 0x80, 0xbd, 0x4e, 0x02, 0xc9, 0x50, 0xd4, 0xb2, 0x58, 0x42, 0x58, 0x62, 0x35, 0x6c, 0xc5,
0x25, 0xd4, 0xb3, 0x6b, 0xb7, 0xe5, 0x60, 0xa9, 0x42, 0x6e, 0x6a, 0xca, 0x4f, 0x05, 0x91, 0x93,
0xf6, 0x60, 0xd4, 0xc3, 0x7a, 0x33, 0x59, 0xaf, 0x6a, 0xef, 0x2c, 0xbb, 0xe3, 0x54, 0x21, 0x8a,
0x14, 0x87, 0x00, 0x21, 0x8d, 0xe2, 0x28, 0x84, 0xa2, 0x26, 0x02, 0x82, 0xda, 0x8a, 0x5c, 0x48,
0x5b, 0x89, 0x92, 0xd4, 0x31, 0x35, 0xc7, 0x1c, 0x8b, 0xb8, 0x70, 0x84, 0xd8, 0xbb, 0xb6, 0x4f,
0x96, 0xb8, 0x23, 0xa1, 0x5d, 0xaf, 0xdd, 0xd0, 0x98, 0x5e, 0x46, 0xf3, 0xe6, 0x7d, 0xf3, 0xde,
0xbc, 0xbf, 0x01, 0xaf, 0x4b, 0xba, 0x2a, 0x8c, 0x1b, 0x92, 0x26, 0xab, 0xa6, 0x64, 0x08, 0x72,
0x5a, 0xa2, 0x8a, 0x4e, 0x85, 0x89, 0xb0, 0x90, 0x55, 0x65, 0x83, 0x98, 0xd8, 0x98, 0x50, 0x65,
0x8c, 0x74, 0x83, 0x50, 0xc2, 0x06, 0x3a, 0x20, 0xf2, 0x40, 0x34, 0x11, 0x0e, 0x86, 0x14, 0x95,
0xa6, 0x73, 0x29, 0x24, 0x93, 0xac, 0xa0, 0x10, 0x85, 0x08, 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a8, 0x70, 0xbe, 0xd4, 0x33, 0xee, 0xd7, 0x71, 0xf2, 0xdf, 0x00, 0x00,
0x00, 0xff, 0xff, 0x44, 0x18, 0x9d, 0xef, 0x9f, 0x05, 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
// FrancisarChatgptClient is the client API for FrancisarChatgpt service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FrancisarChatgptClient interface {
HealthCheck(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error)
Demo(ctx context.Context, in *DemoRequest, opts ...grpc.CallOption) (*DemoResponse, error)
}
type francisarChatgptClient struct {
cc *grpc.ClientConn
}
func NewFrancisarChatgptClient(cc *grpc.ClientConn) FrancisarChatgptClient {
return &francisarChatgptClient{cc}
}
func (c *francisarChatgptClient) HealthCheck(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error) {
out := new(grpc_health_v1.HealthCheckResponse)
err := c.cc.Invoke(ctx, "/francisar.chatgpt.v1.FrancisarChatgpt/HealthCheck", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *francisarChatgptClient) Demo(ctx context.Context, in *DemoRequest, opts ...grpc.CallOption) (*DemoResponse, error) {
out := new(DemoResponse)
err := c.cc.Invoke(ctx, "/francisar.chatgpt.v1.FrancisarChatgpt/Demo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// FrancisarChatgptServer is the server API for FrancisarChatgpt service.
type FrancisarChatgptServer interface {
HealthCheck(context.Context, *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
Demo(context.Context, *DemoRequest) (*DemoResponse, error)
}
// UnimplementedFrancisarChatgptServer can be embedded to have forward compatible implementations.
type UnimplementedFrancisarChatgptServer struct {
}
func (*UnimplementedFrancisarChatgptServer) HealthCheck(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented")
}
func (*UnimplementedFrancisarChatgptServer) Demo(ctx context.Context, req *DemoRequest) (*DemoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Demo not implemented")
}
func RegisterFrancisarChatgptServer(s *grpc.Server, srv FrancisarChatgptServer) {
s.RegisterService(&_FrancisarChatgpt_serviceDesc, srv)
}
func _FrancisarChatgpt_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(grpc_health_v1.HealthCheckRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FrancisarChatgptServer).HealthCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/francisar.chatgpt.v1.FrancisarChatgpt/HealthCheck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FrancisarChatgptServer).HealthCheck(ctx, req.(*grpc_health_v1.HealthCheckRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FrancisarChatgpt_Demo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DemoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FrancisarChatgptServer).Demo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/francisar.chatgpt.v1.FrancisarChatgpt/Demo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FrancisarChatgptServer).Demo(ctx, req.(*DemoRequest))
}
return interceptor(ctx, in, info, handler)
}
var _FrancisarChatgpt_serviceDesc = grpc.ServiceDesc{
ServiceName: "francisar.chatgpt.v1.FrancisarChatgpt",
HandlerType: (*FrancisarChatgptServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "HealthCheck",
Handler: _FrancisarChatgpt_HealthCheck_Handler,
},
{
MethodName: "Demo",
Handler: _FrancisarChatgpt_Demo_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/francisar/chatgpt/v1/microservice.proto",
}