You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

609 lines
24 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/devtools/remoteworkers/v1test2/tasks.proto
  3. package remoteworkers // import "google.golang.org/genproto/googleapis/devtools/remoteworkers/v1test2"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import any "github.com/golang/protobuf/ptypes/any"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import status "google.golang.org/genproto/googleapis/rpc/status"
  10. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  11. import (
  12. context "golang.org/x/net/context"
  13. grpc "google.golang.org/grpc"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // DEPRECATED - use Lease.payload instead.
  25. // A Task represents a unit of work. Its result and logs are defined as
  26. // subresources.
  27. //
  28. // If all the `Any` fields are populated, this can be a very large message, and
  29. // clients may not want the entire message returned on every call to every
  30. // method. Such clients should request partial responses
  31. // (https://cloud.google.com/apis/design/design_patterns#partial_response) and
  32. // servers should implement partial responses in order to reduce unnecessry
  33. // overhead.
  34. type Task struct {
  35. // The name of this task. Output only.
  36. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  37. // The actual task to perform. For example, this could be CommandTask to run a
  38. // command line.
  39. Description *any.Any `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  40. // Handles to logs. The key is a human-readable name like `stdout`, and the
  41. // handle is a resource name that can be passed to ByteStream or other
  42. // accessors.
  43. //
  44. // An implementation may define some logs by default (like `stdout`), and may
  45. // allow clients to add new logs via AddTaskLog.
  46. Logs map[string]string `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  47. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  48. XXX_unrecognized []byte `json:"-"`
  49. XXX_sizecache int32 `json:"-"`
  50. }
  51. func (m *Task) Reset() { *m = Task{} }
  52. func (m *Task) String() string { return proto.CompactTextString(m) }
  53. func (*Task) ProtoMessage() {}
  54. func (*Task) Descriptor() ([]byte, []int) {
  55. return fileDescriptor_tasks_6552a9b42110a64c, []int{0}
  56. }
  57. func (m *Task) XXX_Unmarshal(b []byte) error {
  58. return xxx_messageInfo_Task.Unmarshal(m, b)
  59. }
  60. func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  61. return xxx_messageInfo_Task.Marshal(b, m, deterministic)
  62. }
  63. func (dst *Task) XXX_Merge(src proto.Message) {
  64. xxx_messageInfo_Task.Merge(dst, src)
  65. }
  66. func (m *Task) XXX_Size() int {
  67. return xxx_messageInfo_Task.Size(m)
  68. }
  69. func (m *Task) XXX_DiscardUnknown() {
  70. xxx_messageInfo_Task.DiscardUnknown(m)
  71. }
  72. var xxx_messageInfo_Task proto.InternalMessageInfo
  73. func (m *Task) GetName() string {
  74. if m != nil {
  75. return m.Name
  76. }
  77. return ""
  78. }
  79. func (m *Task) GetDescription() *any.Any {
  80. if m != nil {
  81. return m.Description
  82. }
  83. return nil
  84. }
  85. func (m *Task) GetLogs() map[string]string {
  86. if m != nil {
  87. return m.Logs
  88. }
  89. return nil
  90. }
  91. // DEPRECATED - use Lease.assignment_result instead.
  92. // The result and metadata of the task.
  93. type TaskResult struct {
  94. // The name of the task result; must be a name of a `Task` followed by
  95. // `/result`.
  96. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  97. // The result may be updated several times; the client must only set
  98. // `complete` to true to indicate that no further updates are allowed.
  99. // If this is not true, the `status` field must not be examined since its zero
  100. // value is equivalent to `OK`.
  101. //
  102. // Once a task is completed, it must not be updated with further results,
  103. // though the implementation may choose to continue to receive logs.
  104. Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
  105. // The final status of the task itself. For example, if task.description
  106. // included a timeout which was violated, status.code may be
  107. // DEADLINE_EXCEEDED. This field can only be read if `complete` is true.
  108. Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
  109. // Any non-log output, such as output files and exit codes. See
  110. // CommandResult as an example.
  111. Output *any.Any `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
  112. // Any information about how the command was executed, eg runtime. See
  113. // CommandOverhead as an example.
  114. Meta *any.Any `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"`
  115. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  116. XXX_unrecognized []byte `json:"-"`
  117. XXX_sizecache int32 `json:"-"`
  118. }
  119. func (m *TaskResult) Reset() { *m = TaskResult{} }
  120. func (m *TaskResult) String() string { return proto.CompactTextString(m) }
  121. func (*TaskResult) ProtoMessage() {}
  122. func (*TaskResult) Descriptor() ([]byte, []int) {
  123. return fileDescriptor_tasks_6552a9b42110a64c, []int{1}
  124. }
  125. func (m *TaskResult) XXX_Unmarshal(b []byte) error {
  126. return xxx_messageInfo_TaskResult.Unmarshal(m, b)
  127. }
  128. func (m *TaskResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  129. return xxx_messageInfo_TaskResult.Marshal(b, m, deterministic)
  130. }
  131. func (dst *TaskResult) XXX_Merge(src proto.Message) {
  132. xxx_messageInfo_TaskResult.Merge(dst, src)
  133. }
  134. func (m *TaskResult) XXX_Size() int {
  135. return xxx_messageInfo_TaskResult.Size(m)
  136. }
  137. func (m *TaskResult) XXX_DiscardUnknown() {
  138. xxx_messageInfo_TaskResult.DiscardUnknown(m)
  139. }
  140. var xxx_messageInfo_TaskResult proto.InternalMessageInfo
  141. func (m *TaskResult) GetName() string {
  142. if m != nil {
  143. return m.Name
  144. }
  145. return ""
  146. }
  147. func (m *TaskResult) GetComplete() bool {
  148. if m != nil {
  149. return m.Complete
  150. }
  151. return false
  152. }
  153. func (m *TaskResult) GetStatus() *status.Status {
  154. if m != nil {
  155. return m.Status
  156. }
  157. return nil
  158. }
  159. func (m *TaskResult) GetOutput() *any.Any {
  160. if m != nil {
  161. return m.Output
  162. }
  163. return nil
  164. }
  165. func (m *TaskResult) GetMeta() *any.Any {
  166. if m != nil {
  167. return m.Meta
  168. }
  169. return nil
  170. }
  171. // Request message for `GetTask`.
  172. type GetTaskRequest struct {
  173. // The task name.
  174. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  175. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  176. XXX_unrecognized []byte `json:"-"`
  177. XXX_sizecache int32 `json:"-"`
  178. }
  179. func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} }
  180. func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) }
  181. func (*GetTaskRequest) ProtoMessage() {}
  182. func (*GetTaskRequest) Descriptor() ([]byte, []int) {
  183. return fileDescriptor_tasks_6552a9b42110a64c, []int{2}
  184. }
  185. func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error {
  186. return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b)
  187. }
  188. func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  189. return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic)
  190. }
  191. func (dst *GetTaskRequest) XXX_Merge(src proto.Message) {
  192. xxx_messageInfo_GetTaskRequest.Merge(dst, src)
  193. }
  194. func (m *GetTaskRequest) XXX_Size() int {
  195. return xxx_messageInfo_GetTaskRequest.Size(m)
  196. }
  197. func (m *GetTaskRequest) XXX_DiscardUnknown() {
  198. xxx_messageInfo_GetTaskRequest.DiscardUnknown(m)
  199. }
  200. var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo
  201. func (m *GetTaskRequest) GetName() string {
  202. if m != nil {
  203. return m.Name
  204. }
  205. return ""
  206. }
  207. // Request message for `UpdateTaskResult`.
  208. type UpdateTaskResultRequest struct {
  209. // The task result name; must match `result.name`.
  210. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  211. // The result being updated.
  212. Result *TaskResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
  213. // The fields within `result` that are specified.
  214. UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  215. // If this is being updated by a bot from BotManager, the source should be
  216. // bot.session_id. That way, if two bots accidentally get the same name, we'll
  217. // know to reject updates from the older one.
  218. Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
  219. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  220. XXX_unrecognized []byte `json:"-"`
  221. XXX_sizecache int32 `json:"-"`
  222. }
  223. func (m *UpdateTaskResultRequest) Reset() { *m = UpdateTaskResultRequest{} }
  224. func (m *UpdateTaskResultRequest) String() string { return proto.CompactTextString(m) }
  225. func (*UpdateTaskResultRequest) ProtoMessage() {}
  226. func (*UpdateTaskResultRequest) Descriptor() ([]byte, []int) {
  227. return fileDescriptor_tasks_6552a9b42110a64c, []int{3}
  228. }
  229. func (m *UpdateTaskResultRequest) XXX_Unmarshal(b []byte) error {
  230. return xxx_messageInfo_UpdateTaskResultRequest.Unmarshal(m, b)
  231. }
  232. func (m *UpdateTaskResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  233. return xxx_messageInfo_UpdateTaskResultRequest.Marshal(b, m, deterministic)
  234. }
  235. func (dst *UpdateTaskResultRequest) XXX_Merge(src proto.Message) {
  236. xxx_messageInfo_UpdateTaskResultRequest.Merge(dst, src)
  237. }
  238. func (m *UpdateTaskResultRequest) XXX_Size() int {
  239. return xxx_messageInfo_UpdateTaskResultRequest.Size(m)
  240. }
  241. func (m *UpdateTaskResultRequest) XXX_DiscardUnknown() {
  242. xxx_messageInfo_UpdateTaskResultRequest.DiscardUnknown(m)
  243. }
  244. var xxx_messageInfo_UpdateTaskResultRequest proto.InternalMessageInfo
  245. func (m *UpdateTaskResultRequest) GetName() string {
  246. if m != nil {
  247. return m.Name
  248. }
  249. return ""
  250. }
  251. func (m *UpdateTaskResultRequest) GetResult() *TaskResult {
  252. if m != nil {
  253. return m.Result
  254. }
  255. return nil
  256. }
  257. func (m *UpdateTaskResultRequest) GetUpdateMask() *field_mask.FieldMask {
  258. if m != nil {
  259. return m.UpdateMask
  260. }
  261. return nil
  262. }
  263. func (m *UpdateTaskResultRequest) GetSource() string {
  264. if m != nil {
  265. return m.Source
  266. }
  267. return ""
  268. }
  269. // Request message for `AddTaskLog`.
  270. type AddTaskLogRequest struct {
  271. // The name of the task that will own the new log.
  272. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  273. // The human-readable name of the log, like `stdout` or a relative file path.
  274. LogId string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
  275. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  276. XXX_unrecognized []byte `json:"-"`
  277. XXX_sizecache int32 `json:"-"`
  278. }
  279. func (m *AddTaskLogRequest) Reset() { *m = AddTaskLogRequest{} }
  280. func (m *AddTaskLogRequest) String() string { return proto.CompactTextString(m) }
  281. func (*AddTaskLogRequest) ProtoMessage() {}
  282. func (*AddTaskLogRequest) Descriptor() ([]byte, []int) {
  283. return fileDescriptor_tasks_6552a9b42110a64c, []int{4}
  284. }
  285. func (m *AddTaskLogRequest) XXX_Unmarshal(b []byte) error {
  286. return xxx_messageInfo_AddTaskLogRequest.Unmarshal(m, b)
  287. }
  288. func (m *AddTaskLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  289. return xxx_messageInfo_AddTaskLogRequest.Marshal(b, m, deterministic)
  290. }
  291. func (dst *AddTaskLogRequest) XXX_Merge(src proto.Message) {
  292. xxx_messageInfo_AddTaskLogRequest.Merge(dst, src)
  293. }
  294. func (m *AddTaskLogRequest) XXX_Size() int {
  295. return xxx_messageInfo_AddTaskLogRequest.Size(m)
  296. }
  297. func (m *AddTaskLogRequest) XXX_DiscardUnknown() {
  298. xxx_messageInfo_AddTaskLogRequest.DiscardUnknown(m)
  299. }
  300. var xxx_messageInfo_AddTaskLogRequest proto.InternalMessageInfo
  301. func (m *AddTaskLogRequest) GetName() string {
  302. if m != nil {
  303. return m.Name
  304. }
  305. return ""
  306. }
  307. func (m *AddTaskLogRequest) GetLogId() string {
  308. if m != nil {
  309. return m.LogId
  310. }
  311. return ""
  312. }
  313. // Response message for `AddTaskLog`.
  314. type AddTaskLogResponse struct {
  315. // The handle for the new log, as would be returned in Task.logs.
  316. Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
  317. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  318. XXX_unrecognized []byte `json:"-"`
  319. XXX_sizecache int32 `json:"-"`
  320. }
  321. func (m *AddTaskLogResponse) Reset() { *m = AddTaskLogResponse{} }
  322. func (m *AddTaskLogResponse) String() string { return proto.CompactTextString(m) }
  323. func (*AddTaskLogResponse) ProtoMessage() {}
  324. func (*AddTaskLogResponse) Descriptor() ([]byte, []int) {
  325. return fileDescriptor_tasks_6552a9b42110a64c, []int{5}
  326. }
  327. func (m *AddTaskLogResponse) XXX_Unmarshal(b []byte) error {
  328. return xxx_messageInfo_AddTaskLogResponse.Unmarshal(m, b)
  329. }
  330. func (m *AddTaskLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  331. return xxx_messageInfo_AddTaskLogResponse.Marshal(b, m, deterministic)
  332. }
  333. func (dst *AddTaskLogResponse) XXX_Merge(src proto.Message) {
  334. xxx_messageInfo_AddTaskLogResponse.Merge(dst, src)
  335. }
  336. func (m *AddTaskLogResponse) XXX_Size() int {
  337. return xxx_messageInfo_AddTaskLogResponse.Size(m)
  338. }
  339. func (m *AddTaskLogResponse) XXX_DiscardUnknown() {
  340. xxx_messageInfo_AddTaskLogResponse.DiscardUnknown(m)
  341. }
  342. var xxx_messageInfo_AddTaskLogResponse proto.InternalMessageInfo
  343. func (m *AddTaskLogResponse) GetHandle() string {
  344. if m != nil {
  345. return m.Handle
  346. }
  347. return ""
  348. }
  349. func init() {
  350. proto.RegisterType((*Task)(nil), "google.devtools.remoteworkers.v1test2.Task")
  351. proto.RegisterMapType((map[string]string)(nil), "google.devtools.remoteworkers.v1test2.Task.LogsEntry")
  352. proto.RegisterType((*TaskResult)(nil), "google.devtools.remoteworkers.v1test2.TaskResult")
  353. proto.RegisterType((*GetTaskRequest)(nil), "google.devtools.remoteworkers.v1test2.GetTaskRequest")
  354. proto.RegisterType((*UpdateTaskResultRequest)(nil), "google.devtools.remoteworkers.v1test2.UpdateTaskResultRequest")
  355. proto.RegisterType((*AddTaskLogRequest)(nil), "google.devtools.remoteworkers.v1test2.AddTaskLogRequest")
  356. proto.RegisterType((*AddTaskLogResponse)(nil), "google.devtools.remoteworkers.v1test2.AddTaskLogResponse")
  357. }
  358. // Reference imports to suppress errors if they are not otherwise used.
  359. var _ context.Context
  360. var _ grpc.ClientConn
  361. // This is a compile-time assertion to ensure that this generated file
  362. // is compatible with the grpc package it is being compiled against.
  363. const _ = grpc.SupportPackageIsVersion4
  364. // TasksClient is the client API for Tasks service.
  365. //
  366. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  367. type TasksClient interface {
  368. // DEPRECATED - use Lease.payload instead.
  369. // GetTask reads the current state of the task. Tasks must be created through
  370. // some other interface, and should be immutable once created and exposed to
  371. // the bots.
  372. GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error)
  373. // DEPRECATED - use Lease.result instead.
  374. // UpdateTaskResult updates the result.
  375. UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error)
  376. // DEPRECATED - precreate logs prior to sending to bot.
  377. // AddTaskLog creates a new streaming log. The log is streamed and marked as
  378. // completed through other interfaces (i.e., ByteStream). This can be called
  379. // by the bot if it wants to create a new log; the server can also predefine
  380. // logs that do not need to be created (e.g. `stdout`).
  381. AddTaskLog(ctx context.Context, in *AddTaskLogRequest, opts ...grpc.CallOption) (*AddTaskLogResponse, error)
  382. }
  383. type tasksClient struct {
  384. cc *grpc.ClientConn
  385. }
  386. func NewTasksClient(cc *grpc.ClientConn) TasksClient {
  387. return &tasksClient{cc}
  388. }
  389. func (c *tasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) {
  390. out := new(Task)
  391. err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/GetTask", in, out, opts...)
  392. if err != nil {
  393. return nil, err
  394. }
  395. return out, nil
  396. }
  397. func (c *tasksClient) UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error) {
  398. out := new(TaskResult)
  399. err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult", in, out, opts...)
  400. if err != nil {
  401. return nil, err
  402. }
  403. return out, nil
  404. }
  405. func (c *tasksClient) AddTaskLog(ctx context.Context, in *AddTaskLogRequest, opts ...grpc.CallOption) (*AddTaskLogResponse, error) {
  406. out := new(AddTaskLogResponse)
  407. err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog", in, out, opts...)
  408. if err != nil {
  409. return nil, err
  410. }
  411. return out, nil
  412. }
  413. // TasksServer is the server API for Tasks service.
  414. type TasksServer interface {
  415. // DEPRECATED - use Lease.payload instead.
  416. // GetTask reads the current state of the task. Tasks must be created through
  417. // some other interface, and should be immutable once created and exposed to
  418. // the bots.
  419. GetTask(context.Context, *GetTaskRequest) (*Task, error)
  420. // DEPRECATED - use Lease.result instead.
  421. // UpdateTaskResult updates the result.
  422. UpdateTaskResult(context.Context, *UpdateTaskResultRequest) (*TaskResult, error)
  423. // DEPRECATED - precreate logs prior to sending to bot.
  424. // AddTaskLog creates a new streaming log. The log is streamed and marked as
  425. // completed through other interfaces (i.e., ByteStream). This can be called
  426. // by the bot if it wants to create a new log; the server can also predefine
  427. // logs that do not need to be created (e.g. `stdout`).
  428. AddTaskLog(context.Context, *AddTaskLogRequest) (*AddTaskLogResponse, error)
  429. }
  430. func RegisterTasksServer(s *grpc.Server, srv TasksServer) {
  431. s.RegisterService(&_Tasks_serviceDesc, srv)
  432. }
  433. func _Tasks_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  434. in := new(GetTaskRequest)
  435. if err := dec(in); err != nil {
  436. return nil, err
  437. }
  438. if interceptor == nil {
  439. return srv.(TasksServer).GetTask(ctx, in)
  440. }
  441. info := &grpc.UnaryServerInfo{
  442. Server: srv,
  443. FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/GetTask",
  444. }
  445. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  446. return srv.(TasksServer).GetTask(ctx, req.(*GetTaskRequest))
  447. }
  448. return interceptor(ctx, in, info, handler)
  449. }
  450. func _Tasks_UpdateTaskResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  451. in := new(UpdateTaskResultRequest)
  452. if err := dec(in); err != nil {
  453. return nil, err
  454. }
  455. if interceptor == nil {
  456. return srv.(TasksServer).UpdateTaskResult(ctx, in)
  457. }
  458. info := &grpc.UnaryServerInfo{
  459. Server: srv,
  460. FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult",
  461. }
  462. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  463. return srv.(TasksServer).UpdateTaskResult(ctx, req.(*UpdateTaskResultRequest))
  464. }
  465. return interceptor(ctx, in, info, handler)
  466. }
  467. func _Tasks_AddTaskLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  468. in := new(AddTaskLogRequest)
  469. if err := dec(in); err != nil {
  470. return nil, err
  471. }
  472. if interceptor == nil {
  473. return srv.(TasksServer).AddTaskLog(ctx, in)
  474. }
  475. info := &grpc.UnaryServerInfo{
  476. Server: srv,
  477. FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog",
  478. }
  479. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  480. return srv.(TasksServer).AddTaskLog(ctx, req.(*AddTaskLogRequest))
  481. }
  482. return interceptor(ctx, in, info, handler)
  483. }
  484. var _Tasks_serviceDesc = grpc.ServiceDesc{
  485. ServiceName: "google.devtools.remoteworkers.v1test2.Tasks",
  486. HandlerType: (*TasksServer)(nil),
  487. Methods: []grpc.MethodDesc{
  488. {
  489. MethodName: "GetTask",
  490. Handler: _Tasks_GetTask_Handler,
  491. },
  492. {
  493. MethodName: "UpdateTaskResult",
  494. Handler: _Tasks_UpdateTaskResult_Handler,
  495. },
  496. {
  497. MethodName: "AddTaskLog",
  498. Handler: _Tasks_AddTaskLog_Handler,
  499. },
  500. },
  501. Streams: []grpc.StreamDesc{},
  502. Metadata: "google/devtools/remoteworkers/v1test2/tasks.proto",
  503. }
  504. func init() {
  505. proto.RegisterFile("google/devtools/remoteworkers/v1test2/tasks.proto", fileDescriptor_tasks_6552a9b42110a64c)
  506. }
  507. var fileDescriptor_tasks_6552a9b42110a64c = []byte{
  508. // 682 bytes of a gzipped FileDescriptorProto
  509. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6b, 0x13, 0x41,
  510. 0x14, 0x66, 0x92, 0x34, 0x36, 0x2f, 0x20, 0x75, 0xa8, 0x36, 0x2e, 0x3d, 0xc4, 0xc5, 0x4a, 0x4c,
  511. 0xcb, 0x2e, 0x89, 0xa8, 0x35, 0xc5, 0x42, 0x8b, 0x5a, 0x0a, 0x15, 0x64, 0xad, 0x16, 0xbc, 0x94,
  512. 0x69, 0x76, 0x3a, 0x86, 0x6c, 0x76, 0xd6, 0x9d, 0xd9, 0x48, 0x90, 0x5e, 0x3c, 0x79, 0x15, 0xff,
  513. 0x03, 0x8f, 0x5e, 0xbc, 0x7a, 0x14, 0xef, 0x9e, 0x04, 0xff, 0x02, 0xff, 0x10, 0x99, 0x1f, 0x69,
  514. 0x9b, 0xfe, 0x88, 0xa9, 0xb7, 0x99, 0x79, 0xdf, 0xf7, 0xde, 0xfb, 0xde, 0xf7, 0xb2, 0x81, 0x06,
  515. 0xe3, 0x9c, 0x45, 0xd4, 0x0f, 0x69, 0x5f, 0x72, 0x1e, 0x09, 0x3f, 0xa5, 0x3d, 0x2e, 0xe9, 0x5b,
  516. 0x9e, 0x76, 0x69, 0x2a, 0xfc, 0x7e, 0x43, 0x52, 0x21, 0x9b, 0xbe, 0x24, 0xa2, 0x2b, 0xbc, 0x24,
  517. 0xe5, 0x92, 0xe3, 0x05, 0x43, 0xf1, 0x86, 0x14, 0x6f, 0x84, 0xe2, 0x59, 0x8a, 0x33, 0x6f, 0x33,
  518. 0x93, 0xa4, 0xe3, 0x93, 0x38, 0xe6, 0x92, 0xc8, 0x0e, 0x8f, 0x6d, 0x12, 0xe7, 0xba, 0x8d, 0xea,
  519. 0xdb, 0x5e, 0xb6, 0xef, 0x93, 0x78, 0x60, 0x43, 0xd5, 0x93, 0xa1, 0xfd, 0x0e, 0x8d, 0xc2, 0xdd,
  520. 0x1e, 0x11, 0x5d, 0x8b, 0x98, 0xb3, 0x88, 0x34, 0x69, 0xfb, 0x42, 0x12, 0x99, 0xd9, 0xac, 0xee,
  521. 0x6f, 0x04, 0x85, 0x6d, 0x22, 0xba, 0x18, 0x43, 0x21, 0x26, 0x3d, 0x5a, 0x41, 0x55, 0x54, 0x2b,
  522. 0x05, 0xfa, 0x8c, 0xef, 0x41, 0x39, 0xa4, 0xa2, 0x9d, 0x76, 0x12, 0xd5, 0x48, 0x25, 0x57, 0x45,
  523. 0xb5, 0x72, 0x73, 0xd6, 0xb3, 0x6a, 0x86, 0xd5, 0xbc, 0xb5, 0x78, 0x10, 0x1c, 0x07, 0xe2, 0x4d,
  524. 0x28, 0x44, 0x9c, 0x89, 0x4a, 0xbe, 0x9a, 0xaf, 0x95, 0x9b, 0x77, 0xbd, 0x89, 0xe4, 0x7b, 0xaa,
  525. 0x0d, 0x6f, 0x8b, 0x33, 0xf1, 0x38, 0x96, 0xe9, 0x20, 0xd0, 0x29, 0x9c, 0xfb, 0x50, 0x3a, 0x7c,
  526. 0xc2, 0x33, 0x90, 0xef, 0xd2, 0x81, 0x6d, 0x51, 0x1d, 0xf1, 0x2c, 0x4c, 0xf5, 0x49, 0x94, 0x51,
  527. 0xdd, 0x5b, 0x29, 0x30, 0x97, 0x56, 0x6e, 0x19, 0xb9, 0xdf, 0x11, 0x80, 0xca, 0x18, 0x50, 0x91,
  528. 0x45, 0xf2, 0x4c, 0x79, 0x0e, 0x4c, 0xb7, 0x79, 0x2f, 0x89, 0xa8, 0x34, 0xfc, 0xe9, 0xe0, 0xf0,
  529. 0x8e, 0xeb, 0x50, 0x34, 0x73, 0xaa, 0xe4, 0xb5, 0x6a, 0x3c, 0x14, 0x91, 0x26, 0x6d, 0xef, 0xb9,
  530. 0x8e, 0x04, 0x16, 0x81, 0x97, 0xa0, 0xc8, 0x33, 0x99, 0x64, 0xb2, 0x52, 0x18, 0x33, 0x21, 0x8b,
  531. 0xc1, 0x35, 0x28, 0xf4, 0xa8, 0x24, 0x95, 0xa9, 0x31, 0x58, 0x8d, 0x70, 0x6f, 0xc2, 0xe5, 0x0d,
  532. 0x2a, 0x8d, 0x88, 0x37, 0x19, 0x15, 0x67, 0xaa, 0x70, 0x7f, 0x22, 0x98, 0x7b, 0x91, 0x84, 0x44,
  533. 0xd2, 0x23, 0xb9, 0x63, 0xf0, 0x78, 0x13, 0x8a, 0xa9, 0x06, 0x59, 0x3f, 0x1b, 0x17, 0xb0, 0xc7,
  534. 0x66, 0xb7, 0x09, 0xf0, 0x0a, 0x94, 0x33, 0x5d, 0x59, 0xaf, 0x9a, 0x9d, 0x94, 0x73, 0x4a, 0xd1,
  535. 0x13, 0xb5, 0x8d, 0x4f, 0x15, 0x1d, 0x0c, 0x5c, 0x9d, 0xf1, 0x35, 0x28, 0x0a, 0x9e, 0xa5, 0x6d,
  536. 0xaa, 0xa7, 0x56, 0x0a, 0xec, 0xcd, 0x5d, 0x85, 0x2b, 0x6b, 0x61, 0xa8, 0xaa, 0x6d, 0x71, 0x36,
  537. 0x4e, 0xc8, 0x55, 0x28, 0x46, 0x9c, 0xed, 0x76, 0xc2, 0xa1, 0xf9, 0x11, 0x67, 0x9b, 0xa1, 0xbb,
  538. 0x04, 0xf8, 0x38, 0x5f, 0x24, 0x3c, 0x16, 0x54, 0x55, 0x7b, 0x4d, 0xe2, 0x30, 0x1a, 0xa6, 0xb0,
  539. 0xb7, 0xe6, 0x87, 0x02, 0x4c, 0x29, 0xac, 0xc0, 0x1f, 0x11, 0x5c, 0xb2, 0xe3, 0xc6, 0x93, 0xae,
  540. 0xec, 0xa8, 0x3d, 0xce, 0xe2, 0x05, 0x46, 0xe9, 0xba, 0xef, 0x7f, 0xfd, 0xf9, 0x94, 0x9b, 0xc7,
  541. 0xce, 0xe1, 0x27, 0xe3, 0x9d, 0x92, 0xf5, 0xb0, 0x5e, 0x37, 0xdf, 0x0e, 0xbf, 0x7e, 0x80, 0xbf,
  542. 0x21, 0x98, 0x39, 0xe9, 0x2d, 0x5e, 0x9d, 0xb0, 0xca, 0x39, 0x4b, 0xe1, 0x5c, 0xdc, 0x70, 0xb7,
  543. 0xa1, 0x7b, 0x5d, 0x6c, 0xde, 0x38, 0xb7, 0x57, 0xdf, 0xac, 0xc4, 0x41, 0x6b, 0xb8, 0x1b, 0x5f,
  544. 0x11, 0xc0, 0x91, 0x0f, 0x78, 0x79, 0xc2, 0xa2, 0xa7, 0xac, 0x77, 0x1e, 0xfc, 0x07, 0xd3, 0x98,
  545. 0xee, 0x2e, 0xe9, 0xb6, 0x6f, 0xb9, 0xe7, 0xb7, 0x7d, 0xd0, 0x22, 0x61, 0xb8, 0xc5, 0x59, 0x0b,
  546. 0xd5, 0xd7, 0x7f, 0x20, 0xb8, 0xdd, 0xe6, 0xbd, 0xc9, 0xca, 0xad, 0xe3, 0x40, 0x3f, 0xef, 0x98,
  547. 0x67, 0xbd, 0x42, 0xcf, 0xd0, 0xab, 0xc0, 0x92, 0x19, 0x8f, 0x48, 0xcc, 0x3c, 0x9e, 0x32, 0x9f,
  548. 0xd1, 0x58, 0xff, 0x12, 0x7c, 0x13, 0x22, 0x49, 0x47, 0xfc, 0xe3, 0xbf, 0x63, 0x65, 0xe4, 0xf5,
  549. 0x73, 0x2e, 0x17, 0xec, 0x7c, 0xc9, 0x2d, 0x6c, 0x98, 0xcc, 0x8f, 0x68, 0x7f, 0x5b, 0xb7, 0x35,
  550. 0x52, 0xdf, 0x7b, 0xd9, 0xd8, 0x56, 0xd4, 0xbd, 0xa2, 0xae, 0x75, 0xe7, 0x6f, 0x00, 0x00, 0x00,
  551. 0xff, 0xff, 0xbb, 0x4a, 0x2c, 0x76, 0xa6, 0x06, 0x00, 0x00,
  552. }