olivetin_grpc.pb.go 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.5.1
  4. // - protoc (unknown)
  5. // source: olivetin/api/v1/olivetin.proto
  6. package apiv1
  7. import (
  8. context "context"
  9. httpbody "google.golang.org/genproto/googleapis/api/httpbody"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. )
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the grpc package it is being compiled against.
  16. // Requires gRPC-Go v1.64.0 or later.
  17. const _ = grpc.SupportPackageIsVersion9
  18. const (
  19. OliveTinApiService_GetDashboardComponents_FullMethodName = "/olivetin.api.v1.OliveTinApiService/GetDashboardComponents"
  20. OliveTinApiService_StartAction_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartAction"
  21. OliveTinApiService_StartActionAndWait_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartActionAndWait"
  22. OliveTinApiService_StartActionByGet_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartActionByGet"
  23. OliveTinApiService_StartActionByGetAndWait_FullMethodName = "/olivetin.api.v1.OliveTinApiService/StartActionByGetAndWait"
  24. OliveTinApiService_KillAction_FullMethodName = "/olivetin.api.v1.OliveTinApiService/KillAction"
  25. OliveTinApiService_ExecutionStatus_FullMethodName = "/olivetin.api.v1.OliveTinApiService/ExecutionStatus"
  26. OliveTinApiService_GetLogs_FullMethodName = "/olivetin.api.v1.OliveTinApiService/GetLogs"
  27. OliveTinApiService_ValidateArgumentType_FullMethodName = "/olivetin.api.v1.OliveTinApiService/ValidateArgumentType"
  28. OliveTinApiService_WhoAmI_FullMethodName = "/olivetin.api.v1.OliveTinApiService/WhoAmI"
  29. OliveTinApiService_SosReport_FullMethodName = "/olivetin.api.v1.OliveTinApiService/SosReport"
  30. OliveTinApiService_DumpVars_FullMethodName = "/olivetin.api.v1.OliveTinApiService/DumpVars"
  31. OliveTinApiService_DumpPublicIdActionMap_FullMethodName = "/olivetin.api.v1.OliveTinApiService/DumpPublicIdActionMap"
  32. OliveTinApiService_GetReadyz_FullMethodName = "/olivetin.api.v1.OliveTinApiService/GetReadyz"
  33. OliveTinApiService_LocalUserLogin_FullMethodName = "/olivetin.api.v1.OliveTinApiService/LocalUserLogin"
  34. OliveTinApiService_PasswordHash_FullMethodName = "/olivetin.api.v1.OliveTinApiService/PasswordHash"
  35. OliveTinApiService_Logout_FullMethodName = "/olivetin.api.v1.OliveTinApiService/Logout"
  36. )
  37. // OliveTinApiServiceClient is the client API for OliveTinApiService service.
  38. //
  39. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  40. type OliveTinApiServiceClient interface {
  41. GetDashboardComponents(ctx context.Context, in *GetDashboardComponentsRequest, opts ...grpc.CallOption) (*GetDashboardComponentsResponse, error)
  42. StartAction(ctx context.Context, in *StartActionRequest, opts ...grpc.CallOption) (*StartActionResponse, error)
  43. StartActionAndWait(ctx context.Context, in *StartActionAndWaitRequest, opts ...grpc.CallOption) (*StartActionAndWaitResponse, error)
  44. StartActionByGet(ctx context.Context, in *StartActionByGetRequest, opts ...grpc.CallOption) (*StartActionByGetResponse, error)
  45. StartActionByGetAndWait(ctx context.Context, in *StartActionByGetAndWaitRequest, opts ...grpc.CallOption) (*StartActionByGetAndWaitResponse, error)
  46. KillAction(ctx context.Context, in *KillActionRequest, opts ...grpc.CallOption) (*KillActionResponse, error)
  47. ExecutionStatus(ctx context.Context, in *ExecutionStatusRequest, opts ...grpc.CallOption) (*ExecutionStatusResponse, error)
  48. GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (*GetLogsResponse, error)
  49. ValidateArgumentType(ctx context.Context, in *ValidateArgumentTypeRequest, opts ...grpc.CallOption) (*ValidateArgumentTypeResponse, error)
  50. WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error)
  51. SosReport(ctx context.Context, in *SosReportRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
  52. DumpVars(ctx context.Context, in *DumpVarsRequest, opts ...grpc.CallOption) (*DumpVarsResponse, error)
  53. DumpPublicIdActionMap(ctx context.Context, in *DumpPublicIdActionMapRequest, opts ...grpc.CallOption) (*DumpPublicIdActionMapResponse, error)
  54. GetReadyz(ctx context.Context, in *GetReadyzRequest, opts ...grpc.CallOption) (*GetReadyzResponse, error)
  55. LocalUserLogin(ctx context.Context, in *LocalUserLoginRequest, opts ...grpc.CallOption) (*LocalUserLoginResponse, error)
  56. PasswordHash(ctx context.Context, in *PasswordHashRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
  57. Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
  58. }
  59. type oliveTinApiServiceClient struct {
  60. cc grpc.ClientConnInterface
  61. }
  62. func NewOliveTinApiServiceClient(cc grpc.ClientConnInterface) OliveTinApiServiceClient {
  63. return &oliveTinApiServiceClient{cc}
  64. }
  65. func (c *oliveTinApiServiceClient) GetDashboardComponents(ctx context.Context, in *GetDashboardComponentsRequest, opts ...grpc.CallOption) (*GetDashboardComponentsResponse, error) {
  66. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  67. out := new(GetDashboardComponentsResponse)
  68. err := c.cc.Invoke(ctx, OliveTinApiService_GetDashboardComponents_FullMethodName, in, out, cOpts...)
  69. if err != nil {
  70. return nil, err
  71. }
  72. return out, nil
  73. }
  74. func (c *oliveTinApiServiceClient) StartAction(ctx context.Context, in *StartActionRequest, opts ...grpc.CallOption) (*StartActionResponse, error) {
  75. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  76. out := new(StartActionResponse)
  77. err := c.cc.Invoke(ctx, OliveTinApiService_StartAction_FullMethodName, in, out, cOpts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *oliveTinApiServiceClient) StartActionAndWait(ctx context.Context, in *StartActionAndWaitRequest, opts ...grpc.CallOption) (*StartActionAndWaitResponse, error) {
  84. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  85. out := new(StartActionAndWaitResponse)
  86. err := c.cc.Invoke(ctx, OliveTinApiService_StartActionAndWait_FullMethodName, in, out, cOpts...)
  87. if err != nil {
  88. return nil, err
  89. }
  90. return out, nil
  91. }
  92. func (c *oliveTinApiServiceClient) StartActionByGet(ctx context.Context, in *StartActionByGetRequest, opts ...grpc.CallOption) (*StartActionByGetResponse, error) {
  93. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  94. out := new(StartActionByGetResponse)
  95. err := c.cc.Invoke(ctx, OliveTinApiService_StartActionByGet_FullMethodName, in, out, cOpts...)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return out, nil
  100. }
  101. func (c *oliveTinApiServiceClient) StartActionByGetAndWait(ctx context.Context, in *StartActionByGetAndWaitRequest, opts ...grpc.CallOption) (*StartActionByGetAndWaitResponse, error) {
  102. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  103. out := new(StartActionByGetAndWaitResponse)
  104. err := c.cc.Invoke(ctx, OliveTinApiService_StartActionByGetAndWait_FullMethodName, in, out, cOpts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *oliveTinApiServiceClient) KillAction(ctx context.Context, in *KillActionRequest, opts ...grpc.CallOption) (*KillActionResponse, error) {
  111. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  112. out := new(KillActionResponse)
  113. err := c.cc.Invoke(ctx, OliveTinApiService_KillAction_FullMethodName, in, out, cOpts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *oliveTinApiServiceClient) ExecutionStatus(ctx context.Context, in *ExecutionStatusRequest, opts ...grpc.CallOption) (*ExecutionStatusResponse, error) {
  120. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  121. out := new(ExecutionStatusResponse)
  122. err := c.cc.Invoke(ctx, OliveTinApiService_ExecutionStatus_FullMethodName, in, out, cOpts...)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return out, nil
  127. }
  128. func (c *oliveTinApiServiceClient) GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (*GetLogsResponse, error) {
  129. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  130. out := new(GetLogsResponse)
  131. err := c.cc.Invoke(ctx, OliveTinApiService_GetLogs_FullMethodName, in, out, cOpts...)
  132. if err != nil {
  133. return nil, err
  134. }
  135. return out, nil
  136. }
  137. func (c *oliveTinApiServiceClient) ValidateArgumentType(ctx context.Context, in *ValidateArgumentTypeRequest, opts ...grpc.CallOption) (*ValidateArgumentTypeResponse, error) {
  138. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  139. out := new(ValidateArgumentTypeResponse)
  140. err := c.cc.Invoke(ctx, OliveTinApiService_ValidateArgumentType_FullMethodName, in, out, cOpts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *oliveTinApiServiceClient) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIResponse, error) {
  147. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  148. out := new(WhoAmIResponse)
  149. err := c.cc.Invoke(ctx, OliveTinApiService_WhoAmI_FullMethodName, in, out, cOpts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. func (c *oliveTinApiServiceClient) SosReport(ctx context.Context, in *SosReportRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
  156. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  157. out := new(httpbody.HttpBody)
  158. err := c.cc.Invoke(ctx, OliveTinApiService_SosReport_FullMethodName, in, out, cOpts...)
  159. if err != nil {
  160. return nil, err
  161. }
  162. return out, nil
  163. }
  164. func (c *oliveTinApiServiceClient) DumpVars(ctx context.Context, in *DumpVarsRequest, opts ...grpc.CallOption) (*DumpVarsResponse, error) {
  165. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  166. out := new(DumpVarsResponse)
  167. err := c.cc.Invoke(ctx, OliveTinApiService_DumpVars_FullMethodName, in, out, cOpts...)
  168. if err != nil {
  169. return nil, err
  170. }
  171. return out, nil
  172. }
  173. func (c *oliveTinApiServiceClient) DumpPublicIdActionMap(ctx context.Context, in *DumpPublicIdActionMapRequest, opts ...grpc.CallOption) (*DumpPublicIdActionMapResponse, error) {
  174. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  175. out := new(DumpPublicIdActionMapResponse)
  176. err := c.cc.Invoke(ctx, OliveTinApiService_DumpPublicIdActionMap_FullMethodName, in, out, cOpts...)
  177. if err != nil {
  178. return nil, err
  179. }
  180. return out, nil
  181. }
  182. func (c *oliveTinApiServiceClient) GetReadyz(ctx context.Context, in *GetReadyzRequest, opts ...grpc.CallOption) (*GetReadyzResponse, error) {
  183. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  184. out := new(GetReadyzResponse)
  185. err := c.cc.Invoke(ctx, OliveTinApiService_GetReadyz_FullMethodName, in, out, cOpts...)
  186. if err != nil {
  187. return nil, err
  188. }
  189. return out, nil
  190. }
  191. func (c *oliveTinApiServiceClient) LocalUserLogin(ctx context.Context, in *LocalUserLoginRequest, opts ...grpc.CallOption) (*LocalUserLoginResponse, error) {
  192. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  193. out := new(LocalUserLoginResponse)
  194. err := c.cc.Invoke(ctx, OliveTinApiService_LocalUserLogin_FullMethodName, in, out, cOpts...)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return out, nil
  199. }
  200. func (c *oliveTinApiServiceClient) PasswordHash(ctx context.Context, in *PasswordHashRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
  201. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  202. out := new(httpbody.HttpBody)
  203. err := c.cc.Invoke(ctx, OliveTinApiService_PasswordHash_FullMethodName, in, out, cOpts...)
  204. if err != nil {
  205. return nil, err
  206. }
  207. return out, nil
  208. }
  209. func (c *oliveTinApiServiceClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
  210. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  211. out := new(httpbody.HttpBody)
  212. err := c.cc.Invoke(ctx, OliveTinApiService_Logout_FullMethodName, in, out, cOpts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return out, nil
  217. }
  218. // OliveTinApiServiceServer is the server API for OliveTinApiService service.
  219. // All implementations should embed UnimplementedOliveTinApiServiceServer
  220. // for forward compatibility.
  221. type OliveTinApiServiceServer interface {
  222. GetDashboardComponents(context.Context, *GetDashboardComponentsRequest) (*GetDashboardComponentsResponse, error)
  223. StartAction(context.Context, *StartActionRequest) (*StartActionResponse, error)
  224. StartActionAndWait(context.Context, *StartActionAndWaitRequest) (*StartActionAndWaitResponse, error)
  225. StartActionByGet(context.Context, *StartActionByGetRequest) (*StartActionByGetResponse, error)
  226. StartActionByGetAndWait(context.Context, *StartActionByGetAndWaitRequest) (*StartActionByGetAndWaitResponse, error)
  227. KillAction(context.Context, *KillActionRequest) (*KillActionResponse, error)
  228. ExecutionStatus(context.Context, *ExecutionStatusRequest) (*ExecutionStatusResponse, error)
  229. GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error)
  230. ValidateArgumentType(context.Context, *ValidateArgumentTypeRequest) (*ValidateArgumentTypeResponse, error)
  231. WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error)
  232. SosReport(context.Context, *SosReportRequest) (*httpbody.HttpBody, error)
  233. DumpVars(context.Context, *DumpVarsRequest) (*DumpVarsResponse, error)
  234. DumpPublicIdActionMap(context.Context, *DumpPublicIdActionMapRequest) (*DumpPublicIdActionMapResponse, error)
  235. GetReadyz(context.Context, *GetReadyzRequest) (*GetReadyzResponse, error)
  236. LocalUserLogin(context.Context, *LocalUserLoginRequest) (*LocalUserLoginResponse, error)
  237. PasswordHash(context.Context, *PasswordHashRequest) (*httpbody.HttpBody, error)
  238. Logout(context.Context, *LogoutRequest) (*httpbody.HttpBody, error)
  239. }
  240. // UnimplementedOliveTinApiServiceServer should be embedded to have
  241. // forward compatible implementations.
  242. //
  243. // NOTE: this should be embedded by value instead of pointer to avoid a nil
  244. // pointer dereference when methods are called.
  245. type UnimplementedOliveTinApiServiceServer struct{}
  246. func (UnimplementedOliveTinApiServiceServer) GetDashboardComponents(context.Context, *GetDashboardComponentsRequest) (*GetDashboardComponentsResponse, error) {
  247. return nil, status.Errorf(codes.Unimplemented, "method GetDashboardComponents not implemented")
  248. }
  249. func (UnimplementedOliveTinApiServiceServer) StartAction(context.Context, *StartActionRequest) (*StartActionResponse, error) {
  250. return nil, status.Errorf(codes.Unimplemented, "method StartAction not implemented")
  251. }
  252. func (UnimplementedOliveTinApiServiceServer) StartActionAndWait(context.Context, *StartActionAndWaitRequest) (*StartActionAndWaitResponse, error) {
  253. return nil, status.Errorf(codes.Unimplemented, "method StartActionAndWait not implemented")
  254. }
  255. func (UnimplementedOliveTinApiServiceServer) StartActionByGet(context.Context, *StartActionByGetRequest) (*StartActionByGetResponse, error) {
  256. return nil, status.Errorf(codes.Unimplemented, "method StartActionByGet not implemented")
  257. }
  258. func (UnimplementedOliveTinApiServiceServer) StartActionByGetAndWait(context.Context, *StartActionByGetAndWaitRequest) (*StartActionByGetAndWaitResponse, error) {
  259. return nil, status.Errorf(codes.Unimplemented, "method StartActionByGetAndWait not implemented")
  260. }
  261. func (UnimplementedOliveTinApiServiceServer) KillAction(context.Context, *KillActionRequest) (*KillActionResponse, error) {
  262. return nil, status.Errorf(codes.Unimplemented, "method KillAction not implemented")
  263. }
  264. func (UnimplementedOliveTinApiServiceServer) ExecutionStatus(context.Context, *ExecutionStatusRequest) (*ExecutionStatusResponse, error) {
  265. return nil, status.Errorf(codes.Unimplemented, "method ExecutionStatus not implemented")
  266. }
  267. func (UnimplementedOliveTinApiServiceServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) {
  268. return nil, status.Errorf(codes.Unimplemented, "method GetLogs not implemented")
  269. }
  270. func (UnimplementedOliveTinApiServiceServer) ValidateArgumentType(context.Context, *ValidateArgumentTypeRequest) (*ValidateArgumentTypeResponse, error) {
  271. return nil, status.Errorf(codes.Unimplemented, "method ValidateArgumentType not implemented")
  272. }
  273. func (UnimplementedOliveTinApiServiceServer) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIResponse, error) {
  274. return nil, status.Errorf(codes.Unimplemented, "method WhoAmI not implemented")
  275. }
  276. func (UnimplementedOliveTinApiServiceServer) SosReport(context.Context, *SosReportRequest) (*httpbody.HttpBody, error) {
  277. return nil, status.Errorf(codes.Unimplemented, "method SosReport not implemented")
  278. }
  279. func (UnimplementedOliveTinApiServiceServer) DumpVars(context.Context, *DumpVarsRequest) (*DumpVarsResponse, error) {
  280. return nil, status.Errorf(codes.Unimplemented, "method DumpVars not implemented")
  281. }
  282. func (UnimplementedOliveTinApiServiceServer) DumpPublicIdActionMap(context.Context, *DumpPublicIdActionMapRequest) (*DumpPublicIdActionMapResponse, error) {
  283. return nil, status.Errorf(codes.Unimplemented, "method DumpPublicIdActionMap not implemented")
  284. }
  285. func (UnimplementedOliveTinApiServiceServer) GetReadyz(context.Context, *GetReadyzRequest) (*GetReadyzResponse, error) {
  286. return nil, status.Errorf(codes.Unimplemented, "method GetReadyz not implemented")
  287. }
  288. func (UnimplementedOliveTinApiServiceServer) LocalUserLogin(context.Context, *LocalUserLoginRequest) (*LocalUserLoginResponse, error) {
  289. return nil, status.Errorf(codes.Unimplemented, "method LocalUserLogin not implemented")
  290. }
  291. func (UnimplementedOliveTinApiServiceServer) PasswordHash(context.Context, *PasswordHashRequest) (*httpbody.HttpBody, error) {
  292. return nil, status.Errorf(codes.Unimplemented, "method PasswordHash not implemented")
  293. }
  294. func (UnimplementedOliveTinApiServiceServer) Logout(context.Context, *LogoutRequest) (*httpbody.HttpBody, error) {
  295. return nil, status.Errorf(codes.Unimplemented, "method Logout not implemented")
  296. }
  297. func (UnimplementedOliveTinApiServiceServer) testEmbeddedByValue() {}
  298. // UnsafeOliveTinApiServiceServer may be embedded to opt out of forward compatibility for this service.
  299. // Use of this interface is not recommended, as added methods to OliveTinApiServiceServer will
  300. // result in compilation errors.
  301. type UnsafeOliveTinApiServiceServer interface {
  302. mustEmbedUnimplementedOliveTinApiServiceServer()
  303. }
  304. func RegisterOliveTinApiServiceServer(s grpc.ServiceRegistrar, srv OliveTinApiServiceServer) {
  305. // If the following call pancis, it indicates UnimplementedOliveTinApiServiceServer was
  306. // embedded by pointer and is nil. This will cause panics if an
  307. // unimplemented method is ever invoked, so we test this at initialization
  308. // time to prevent it from happening at runtime later due to I/O.
  309. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
  310. t.testEmbeddedByValue()
  311. }
  312. s.RegisterService(&OliveTinApiService_ServiceDesc, srv)
  313. }
  314. func _OliveTinApiService_GetDashboardComponents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  315. in := new(GetDashboardComponentsRequest)
  316. if err := dec(in); err != nil {
  317. return nil, err
  318. }
  319. if interceptor == nil {
  320. return srv.(OliveTinApiServiceServer).GetDashboardComponents(ctx, in)
  321. }
  322. info := &grpc.UnaryServerInfo{
  323. Server: srv,
  324. FullMethod: OliveTinApiService_GetDashboardComponents_FullMethodName,
  325. }
  326. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  327. return srv.(OliveTinApiServiceServer).GetDashboardComponents(ctx, req.(*GetDashboardComponentsRequest))
  328. }
  329. return interceptor(ctx, in, info, handler)
  330. }
  331. func _OliveTinApiService_StartAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  332. in := new(StartActionRequest)
  333. if err := dec(in); err != nil {
  334. return nil, err
  335. }
  336. if interceptor == nil {
  337. return srv.(OliveTinApiServiceServer).StartAction(ctx, in)
  338. }
  339. info := &grpc.UnaryServerInfo{
  340. Server: srv,
  341. FullMethod: OliveTinApiService_StartAction_FullMethodName,
  342. }
  343. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  344. return srv.(OliveTinApiServiceServer).StartAction(ctx, req.(*StartActionRequest))
  345. }
  346. return interceptor(ctx, in, info, handler)
  347. }
  348. func _OliveTinApiService_StartActionAndWait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  349. in := new(StartActionAndWaitRequest)
  350. if err := dec(in); err != nil {
  351. return nil, err
  352. }
  353. if interceptor == nil {
  354. return srv.(OliveTinApiServiceServer).StartActionAndWait(ctx, in)
  355. }
  356. info := &grpc.UnaryServerInfo{
  357. Server: srv,
  358. FullMethod: OliveTinApiService_StartActionAndWait_FullMethodName,
  359. }
  360. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  361. return srv.(OliveTinApiServiceServer).StartActionAndWait(ctx, req.(*StartActionAndWaitRequest))
  362. }
  363. return interceptor(ctx, in, info, handler)
  364. }
  365. func _OliveTinApiService_StartActionByGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  366. in := new(StartActionByGetRequest)
  367. if err := dec(in); err != nil {
  368. return nil, err
  369. }
  370. if interceptor == nil {
  371. return srv.(OliveTinApiServiceServer).StartActionByGet(ctx, in)
  372. }
  373. info := &grpc.UnaryServerInfo{
  374. Server: srv,
  375. FullMethod: OliveTinApiService_StartActionByGet_FullMethodName,
  376. }
  377. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  378. return srv.(OliveTinApiServiceServer).StartActionByGet(ctx, req.(*StartActionByGetRequest))
  379. }
  380. return interceptor(ctx, in, info, handler)
  381. }
  382. func _OliveTinApiService_StartActionByGetAndWait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  383. in := new(StartActionByGetAndWaitRequest)
  384. if err := dec(in); err != nil {
  385. return nil, err
  386. }
  387. if interceptor == nil {
  388. return srv.(OliveTinApiServiceServer).StartActionByGetAndWait(ctx, in)
  389. }
  390. info := &grpc.UnaryServerInfo{
  391. Server: srv,
  392. FullMethod: OliveTinApiService_StartActionByGetAndWait_FullMethodName,
  393. }
  394. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  395. return srv.(OliveTinApiServiceServer).StartActionByGetAndWait(ctx, req.(*StartActionByGetAndWaitRequest))
  396. }
  397. return interceptor(ctx, in, info, handler)
  398. }
  399. func _OliveTinApiService_KillAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  400. in := new(KillActionRequest)
  401. if err := dec(in); err != nil {
  402. return nil, err
  403. }
  404. if interceptor == nil {
  405. return srv.(OliveTinApiServiceServer).KillAction(ctx, in)
  406. }
  407. info := &grpc.UnaryServerInfo{
  408. Server: srv,
  409. FullMethod: OliveTinApiService_KillAction_FullMethodName,
  410. }
  411. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  412. return srv.(OliveTinApiServiceServer).KillAction(ctx, req.(*KillActionRequest))
  413. }
  414. return interceptor(ctx, in, info, handler)
  415. }
  416. func _OliveTinApiService_ExecutionStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  417. in := new(ExecutionStatusRequest)
  418. if err := dec(in); err != nil {
  419. return nil, err
  420. }
  421. if interceptor == nil {
  422. return srv.(OliveTinApiServiceServer).ExecutionStatus(ctx, in)
  423. }
  424. info := &grpc.UnaryServerInfo{
  425. Server: srv,
  426. FullMethod: OliveTinApiService_ExecutionStatus_FullMethodName,
  427. }
  428. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  429. return srv.(OliveTinApiServiceServer).ExecutionStatus(ctx, req.(*ExecutionStatusRequest))
  430. }
  431. return interceptor(ctx, in, info, handler)
  432. }
  433. func _OliveTinApiService_GetLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  434. in := new(GetLogsRequest)
  435. if err := dec(in); err != nil {
  436. return nil, err
  437. }
  438. if interceptor == nil {
  439. return srv.(OliveTinApiServiceServer).GetLogs(ctx, in)
  440. }
  441. info := &grpc.UnaryServerInfo{
  442. Server: srv,
  443. FullMethod: OliveTinApiService_GetLogs_FullMethodName,
  444. }
  445. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  446. return srv.(OliveTinApiServiceServer).GetLogs(ctx, req.(*GetLogsRequest))
  447. }
  448. return interceptor(ctx, in, info, handler)
  449. }
  450. func _OliveTinApiService_ValidateArgumentType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  451. in := new(ValidateArgumentTypeRequest)
  452. if err := dec(in); err != nil {
  453. return nil, err
  454. }
  455. if interceptor == nil {
  456. return srv.(OliveTinApiServiceServer).ValidateArgumentType(ctx, in)
  457. }
  458. info := &grpc.UnaryServerInfo{
  459. Server: srv,
  460. FullMethod: OliveTinApiService_ValidateArgumentType_FullMethodName,
  461. }
  462. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  463. return srv.(OliveTinApiServiceServer).ValidateArgumentType(ctx, req.(*ValidateArgumentTypeRequest))
  464. }
  465. return interceptor(ctx, in, info, handler)
  466. }
  467. func _OliveTinApiService_WhoAmI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  468. in := new(WhoAmIRequest)
  469. if err := dec(in); err != nil {
  470. return nil, err
  471. }
  472. if interceptor == nil {
  473. return srv.(OliveTinApiServiceServer).WhoAmI(ctx, in)
  474. }
  475. info := &grpc.UnaryServerInfo{
  476. Server: srv,
  477. FullMethod: OliveTinApiService_WhoAmI_FullMethodName,
  478. }
  479. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  480. return srv.(OliveTinApiServiceServer).WhoAmI(ctx, req.(*WhoAmIRequest))
  481. }
  482. return interceptor(ctx, in, info, handler)
  483. }
  484. func _OliveTinApiService_SosReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  485. in := new(SosReportRequest)
  486. if err := dec(in); err != nil {
  487. return nil, err
  488. }
  489. if interceptor == nil {
  490. return srv.(OliveTinApiServiceServer).SosReport(ctx, in)
  491. }
  492. info := &grpc.UnaryServerInfo{
  493. Server: srv,
  494. FullMethod: OliveTinApiService_SosReport_FullMethodName,
  495. }
  496. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  497. return srv.(OliveTinApiServiceServer).SosReport(ctx, req.(*SosReportRequest))
  498. }
  499. return interceptor(ctx, in, info, handler)
  500. }
  501. func _OliveTinApiService_DumpVars_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  502. in := new(DumpVarsRequest)
  503. if err := dec(in); err != nil {
  504. return nil, err
  505. }
  506. if interceptor == nil {
  507. return srv.(OliveTinApiServiceServer).DumpVars(ctx, in)
  508. }
  509. info := &grpc.UnaryServerInfo{
  510. Server: srv,
  511. FullMethod: OliveTinApiService_DumpVars_FullMethodName,
  512. }
  513. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  514. return srv.(OliveTinApiServiceServer).DumpVars(ctx, req.(*DumpVarsRequest))
  515. }
  516. return interceptor(ctx, in, info, handler)
  517. }
  518. func _OliveTinApiService_DumpPublicIdActionMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  519. in := new(DumpPublicIdActionMapRequest)
  520. if err := dec(in); err != nil {
  521. return nil, err
  522. }
  523. if interceptor == nil {
  524. return srv.(OliveTinApiServiceServer).DumpPublicIdActionMap(ctx, in)
  525. }
  526. info := &grpc.UnaryServerInfo{
  527. Server: srv,
  528. FullMethod: OliveTinApiService_DumpPublicIdActionMap_FullMethodName,
  529. }
  530. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  531. return srv.(OliveTinApiServiceServer).DumpPublicIdActionMap(ctx, req.(*DumpPublicIdActionMapRequest))
  532. }
  533. return interceptor(ctx, in, info, handler)
  534. }
  535. func _OliveTinApiService_GetReadyz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  536. in := new(GetReadyzRequest)
  537. if err := dec(in); err != nil {
  538. return nil, err
  539. }
  540. if interceptor == nil {
  541. return srv.(OliveTinApiServiceServer).GetReadyz(ctx, in)
  542. }
  543. info := &grpc.UnaryServerInfo{
  544. Server: srv,
  545. FullMethod: OliveTinApiService_GetReadyz_FullMethodName,
  546. }
  547. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  548. return srv.(OliveTinApiServiceServer).GetReadyz(ctx, req.(*GetReadyzRequest))
  549. }
  550. return interceptor(ctx, in, info, handler)
  551. }
  552. func _OliveTinApiService_LocalUserLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  553. in := new(LocalUserLoginRequest)
  554. if err := dec(in); err != nil {
  555. return nil, err
  556. }
  557. if interceptor == nil {
  558. return srv.(OliveTinApiServiceServer).LocalUserLogin(ctx, in)
  559. }
  560. info := &grpc.UnaryServerInfo{
  561. Server: srv,
  562. FullMethod: OliveTinApiService_LocalUserLogin_FullMethodName,
  563. }
  564. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  565. return srv.(OliveTinApiServiceServer).LocalUserLogin(ctx, req.(*LocalUserLoginRequest))
  566. }
  567. return interceptor(ctx, in, info, handler)
  568. }
  569. func _OliveTinApiService_PasswordHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  570. in := new(PasswordHashRequest)
  571. if err := dec(in); err != nil {
  572. return nil, err
  573. }
  574. if interceptor == nil {
  575. return srv.(OliveTinApiServiceServer).PasswordHash(ctx, in)
  576. }
  577. info := &grpc.UnaryServerInfo{
  578. Server: srv,
  579. FullMethod: OliveTinApiService_PasswordHash_FullMethodName,
  580. }
  581. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  582. return srv.(OliveTinApiServiceServer).PasswordHash(ctx, req.(*PasswordHashRequest))
  583. }
  584. return interceptor(ctx, in, info, handler)
  585. }
  586. func _OliveTinApiService_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  587. in := new(LogoutRequest)
  588. if err := dec(in); err != nil {
  589. return nil, err
  590. }
  591. if interceptor == nil {
  592. return srv.(OliveTinApiServiceServer).Logout(ctx, in)
  593. }
  594. info := &grpc.UnaryServerInfo{
  595. Server: srv,
  596. FullMethod: OliveTinApiService_Logout_FullMethodName,
  597. }
  598. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  599. return srv.(OliveTinApiServiceServer).Logout(ctx, req.(*LogoutRequest))
  600. }
  601. return interceptor(ctx, in, info, handler)
  602. }
  603. // OliveTinApiService_ServiceDesc is the grpc.ServiceDesc for OliveTinApiService service.
  604. // It's only intended for direct use with grpc.RegisterService,
  605. // and not to be introspected or modified (even as a copy)
  606. var OliveTinApiService_ServiceDesc = grpc.ServiceDesc{
  607. ServiceName: "olivetin.api.v1.OliveTinApiService",
  608. HandlerType: (*OliveTinApiServiceServer)(nil),
  609. Methods: []grpc.MethodDesc{
  610. {
  611. MethodName: "GetDashboardComponents",
  612. Handler: _OliveTinApiService_GetDashboardComponents_Handler,
  613. },
  614. {
  615. MethodName: "StartAction",
  616. Handler: _OliveTinApiService_StartAction_Handler,
  617. },
  618. {
  619. MethodName: "StartActionAndWait",
  620. Handler: _OliveTinApiService_StartActionAndWait_Handler,
  621. },
  622. {
  623. MethodName: "StartActionByGet",
  624. Handler: _OliveTinApiService_StartActionByGet_Handler,
  625. },
  626. {
  627. MethodName: "StartActionByGetAndWait",
  628. Handler: _OliveTinApiService_StartActionByGetAndWait_Handler,
  629. },
  630. {
  631. MethodName: "KillAction",
  632. Handler: _OliveTinApiService_KillAction_Handler,
  633. },
  634. {
  635. MethodName: "ExecutionStatus",
  636. Handler: _OliveTinApiService_ExecutionStatus_Handler,
  637. },
  638. {
  639. MethodName: "GetLogs",
  640. Handler: _OliveTinApiService_GetLogs_Handler,
  641. },
  642. {
  643. MethodName: "ValidateArgumentType",
  644. Handler: _OliveTinApiService_ValidateArgumentType_Handler,
  645. },
  646. {
  647. MethodName: "WhoAmI",
  648. Handler: _OliveTinApiService_WhoAmI_Handler,
  649. },
  650. {
  651. MethodName: "SosReport",
  652. Handler: _OliveTinApiService_SosReport_Handler,
  653. },
  654. {
  655. MethodName: "DumpVars",
  656. Handler: _OliveTinApiService_DumpVars_Handler,
  657. },
  658. {
  659. MethodName: "DumpPublicIdActionMap",
  660. Handler: _OliveTinApiService_DumpPublicIdActionMap_Handler,
  661. },
  662. {
  663. MethodName: "GetReadyz",
  664. Handler: _OliveTinApiService_GetReadyz_Handler,
  665. },
  666. {
  667. MethodName: "LocalUserLogin",
  668. Handler: _OliveTinApiService_LocalUserLogin_Handler,
  669. },
  670. {
  671. MethodName: "PasswordHash",
  672. Handler: _OliveTinApiService_PasswordHash_Handler,
  673. },
  674. {
  675. MethodName: "Logout",
  676. Handler: _OliveTinApiService_Logout_Handler,
  677. },
  678. },
  679. Streams: []grpc.StreamDesc{},
  680. Metadata: "olivetin/api/v1/olivetin.proto",
  681. }