| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/devtools/remoteworkers/v1test2/tasks.proto |
| |
| package remoteworkers |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| any "github.com/golang/protobuf/ptypes/any" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| status "google.golang.org/genproto/googleapis/rpc/status" |
| field_mask "google.golang.org/genproto/protobuf/field_mask" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status1 "google.golang.org/grpc/status" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // DEPRECATED - use Lease.payload instead. |
| // A Task represents a unit of work. Its result and logs are defined as |
| // subresources. |
| // |
| // If all the `Any` fields are populated, this can be a very large message, and |
| // clients may not want the entire message returned on every call to every |
| // method. Such clients should request partial responses |
| // (https://cloud.google.com/apis/design/design_patterns#partial_response) and |
| // servers should implement partial responses in order to reduce unnecessry |
| // overhead. |
| type Task struct { |
| // The name of this task. Output only. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // The actual task to perform. For example, this could be CommandTask to run a |
| // command line. |
| Description *any.Any `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| // Handles to logs. The key is a human-readable name like `stdout`, and the |
| // handle is a resource name that can be passed to ByteStream or other |
| // accessors. |
| // |
| // An implementation may define some logs by default (like `stdout`), and may |
| // allow clients to add new logs via AddTaskLog. |
| 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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Task) Reset() { *m = Task{} } |
| func (m *Task) String() string { return proto.CompactTextString(m) } |
| func (*Task) ProtoMessage() {} |
| func (*Task) Descriptor() ([]byte, []int) { |
| return fileDescriptor_164aeca5668e3481, []int{0} |
| } |
| |
| func (m *Task) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Task.Unmarshal(m, b) |
| } |
| func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Task.Marshal(b, m, deterministic) |
| } |
| func (m *Task) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Task.Merge(m, src) |
| } |
| func (m *Task) XXX_Size() int { |
| return xxx_messageInfo_Task.Size(m) |
| } |
| func (m *Task) XXX_DiscardUnknown() { |
| xxx_messageInfo_Task.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Task proto.InternalMessageInfo |
| |
| func (m *Task) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *Task) GetDescription() *any.Any { |
| if m != nil { |
| return m.Description |
| } |
| return nil |
| } |
| |
| func (m *Task) GetLogs() map[string]string { |
| if m != nil { |
| return m.Logs |
| } |
| return nil |
| } |
| |
| // DEPRECATED - use Lease.assignment_result instead. |
| // The result and metadata of the task. |
| type TaskResult struct { |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // The result may be updated several times; the client must only set |
| // `complete` to true to indicate that no further updates are allowed. |
| // If this is not true, the `status` field must not be examined since its zero |
| // value is equivalent to `OK`. |
| // |
| // Once a task is completed, it must not be updated with further results, |
| // though the implementation may choose to continue to receive logs. |
| Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"` |
| // The final status of the task itself. For example, if task.description |
| // included a timeout which was violated, status.code may be |
| // DEADLINE_EXCEEDED. This field can only be read if `complete` is true. |
| Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` |
| // Any non-log output, such as output files and exit codes. See |
| // CommandResult as an example. |
| Output *any.Any `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"` |
| // Any information about how the command was executed, eg runtime. See |
| // CommandOverhead as an example. |
| Meta *any.Any `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TaskResult) Reset() { *m = TaskResult{} } |
| func (m *TaskResult) String() string { return proto.CompactTextString(m) } |
| func (*TaskResult) ProtoMessage() {} |
| func (*TaskResult) Descriptor() ([]byte, []int) { |
| return fileDescriptor_164aeca5668e3481, []int{1} |
| } |
| |
| func (m *TaskResult) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TaskResult.Unmarshal(m, b) |
| } |
| func (m *TaskResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TaskResult.Marshal(b, m, deterministic) |
| } |
| func (m *TaskResult) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TaskResult.Merge(m, src) |
| } |
| func (m *TaskResult) XXX_Size() int { |
| return xxx_messageInfo_TaskResult.Size(m) |
| } |
| func (m *TaskResult) XXX_DiscardUnknown() { |
| xxx_messageInfo_TaskResult.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TaskResult proto.InternalMessageInfo |
| |
| func (m *TaskResult) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *TaskResult) GetComplete() bool { |
| if m != nil { |
| return m.Complete |
| } |
| return false |
| } |
| |
| func (m *TaskResult) GetStatus() *status.Status { |
| if m != nil { |
| return m.Status |
| } |
| return nil |
| } |
| |
| func (m *TaskResult) GetOutput() *any.Any { |
| if m != nil { |
| return m.Output |
| } |
| return nil |
| } |
| |
| func (m *TaskResult) GetMeta() *any.Any { |
| if m != nil { |
| return m.Meta |
| } |
| return nil |
| } |
| |
| // Request message for `GetTask`. |
| type GetTaskRequest struct { |
| // Required. The task name. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} } |
| func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetTaskRequest) ProtoMessage() {} |
| func (*GetTaskRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_164aeca5668e3481, []int{2} |
| } |
| |
| func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b) |
| } |
| func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetTaskRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetTaskRequest.Merge(m, src) |
| } |
| func (m *GetTaskRequest) XXX_Size() int { |
| return xxx_messageInfo_GetTaskRequest.Size(m) |
| } |
| func (m *GetTaskRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetTaskRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo |
| |
| func (m *GetTaskRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| // Request message for `UpdateTaskResult`. |
| type UpdateTaskResultRequest struct { |
| // Required. The task result name; must match `result.name`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. The result being updated. |
| Result *TaskResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` |
| // Required. The fields within `result` that are specified. |
| UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` |
| // Required. If this is being updated by a bot from BotManager, the source should be |
| // bot.session_id. That way, if two bots accidentally get the same name, we'll |
| // know to reject updates from the older one. |
| Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *UpdateTaskResultRequest) Reset() { *m = UpdateTaskResultRequest{} } |
| func (m *UpdateTaskResultRequest) String() string { return proto.CompactTextString(m) } |
| func (*UpdateTaskResultRequest) ProtoMessage() {} |
| func (*UpdateTaskResultRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_164aeca5668e3481, []int{3} |
| } |
| |
| func (m *UpdateTaskResultRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_UpdateTaskResultRequest.Unmarshal(m, b) |
| } |
| func (m *UpdateTaskResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_UpdateTaskResultRequest.Marshal(b, m, deterministic) |
| } |
| func (m *UpdateTaskResultRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_UpdateTaskResultRequest.Merge(m, src) |
| } |
| func (m *UpdateTaskResultRequest) XXX_Size() int { |
| return xxx_messageInfo_UpdateTaskResultRequest.Size(m) |
| } |
| func (m *UpdateTaskResultRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_UpdateTaskResultRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_UpdateTaskResultRequest proto.InternalMessageInfo |
| |
| func (m *UpdateTaskResultRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *UpdateTaskResultRequest) GetResult() *TaskResult { |
| if m != nil { |
| return m.Result |
| } |
| return nil |
| } |
| |
| func (m *UpdateTaskResultRequest) GetUpdateMask() *field_mask.FieldMask { |
| if m != nil { |
| return m.UpdateMask |
| } |
| return nil |
| } |
| |
| func (m *UpdateTaskResultRequest) GetSource() string { |
| if m != nil { |
| return m.Source |
| } |
| return "" |
| } |
| |
| // Request message for `AddTaskLog`. |
| type AddTaskLogRequest struct { |
| // Required. The name of the task that will own the new log. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. The human-readable name of the log, like `stdout` or a relative file path. |
| LogId string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AddTaskLogRequest) Reset() { *m = AddTaskLogRequest{} } |
| func (m *AddTaskLogRequest) String() string { return proto.CompactTextString(m) } |
| func (*AddTaskLogRequest) ProtoMessage() {} |
| func (*AddTaskLogRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_164aeca5668e3481, []int{4} |
| } |
| |
| func (m *AddTaskLogRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AddTaskLogRequest.Unmarshal(m, b) |
| } |
| func (m *AddTaskLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AddTaskLogRequest.Marshal(b, m, deterministic) |
| } |
| func (m *AddTaskLogRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AddTaskLogRequest.Merge(m, src) |
| } |
| func (m *AddTaskLogRequest) XXX_Size() int { |
| return xxx_messageInfo_AddTaskLogRequest.Size(m) |
| } |
| func (m *AddTaskLogRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_AddTaskLogRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AddTaskLogRequest proto.InternalMessageInfo |
| |
| func (m *AddTaskLogRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *AddTaskLogRequest) GetLogId() string { |
| if m != nil { |
| return m.LogId |
| } |
| return "" |
| } |
| |
| // Response message for `AddTaskLog`. |
| type AddTaskLogResponse struct { |
| // The handle for the new log, as would be returned in Task.logs. |
| Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AddTaskLogResponse) Reset() { *m = AddTaskLogResponse{} } |
| func (m *AddTaskLogResponse) String() string { return proto.CompactTextString(m) } |
| func (*AddTaskLogResponse) ProtoMessage() {} |
| func (*AddTaskLogResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_164aeca5668e3481, []int{5} |
| } |
| |
| func (m *AddTaskLogResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_AddTaskLogResponse.Unmarshal(m, b) |
| } |
| func (m *AddTaskLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_AddTaskLogResponse.Marshal(b, m, deterministic) |
| } |
| func (m *AddTaskLogResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AddTaskLogResponse.Merge(m, src) |
| } |
| func (m *AddTaskLogResponse) XXX_Size() int { |
| return xxx_messageInfo_AddTaskLogResponse.Size(m) |
| } |
| func (m *AddTaskLogResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_AddTaskLogResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AddTaskLogResponse proto.InternalMessageInfo |
| |
| func (m *AddTaskLogResponse) GetHandle() string { |
| if m != nil { |
| return m.Handle |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*Task)(nil), "google.devtools.remoteworkers.v1test2.Task") |
| proto.RegisterMapType((map[string]string)(nil), "google.devtools.remoteworkers.v1test2.Task.LogsEntry") |
| proto.RegisterType((*TaskResult)(nil), "google.devtools.remoteworkers.v1test2.TaskResult") |
| proto.RegisterType((*GetTaskRequest)(nil), "google.devtools.remoteworkers.v1test2.GetTaskRequest") |
| proto.RegisterType((*UpdateTaskResultRequest)(nil), "google.devtools.remoteworkers.v1test2.UpdateTaskResultRequest") |
| proto.RegisterType((*AddTaskLogRequest)(nil), "google.devtools.remoteworkers.v1test2.AddTaskLogRequest") |
| proto.RegisterType((*AddTaskLogResponse)(nil), "google.devtools.remoteworkers.v1test2.AddTaskLogResponse") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/devtools/remoteworkers/v1test2/tasks.proto", fileDescriptor_164aeca5668e3481) |
| } |
| |
| var fileDescriptor_164aeca5668e3481 = []byte{ |
| // 847 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0x1b, 0x45, |
| 0x14, 0xd6, 0xae, 0x7f, 0x50, 0x3f, 0x4b, 0xa8, 0x8c, 0x2a, 0x6a, 0x96, 0xa8, 0x75, 0x17, 0x05, |
| 0x6c, 0xd7, 0xda, 0x95, 0x8d, 0x80, 0x62, 0x14, 0xc4, 0xba, 0xd0, 0xaa, 0x52, 0x80, 0x6a, 0x1b, |
| 0xa8, 0xc4, 0x25, 0x9a, 0xec, 0x4e, 0x37, 0x2b, 0xaf, 0x67, 0x96, 0x9d, 0x59, 0x57, 0x56, 0xe4, |
| 0x0b, 0x77, 0x4e, 0x08, 0x89, 0x13, 0x07, 0x8e, 0xfc, 0x0f, 0x5c, 0x38, 0x72, 0xe5, 0x44, 0x2e, |
| 0xf4, 0xc0, 0x29, 0x7f, 0x02, 0x27, 0xb4, 0x33, 0xe3, 0xc4, 0x76, 0x88, 0xe3, 0x20, 0x4e, 0xd9, |
| 0x79, 0x3f, 0xbf, 0xf7, 0xbd, 0xef, 0x45, 0x86, 0x5e, 0xc4, 0x58, 0x94, 0x10, 0x37, 0x24, 0x13, |
| 0xc1, 0x58, 0xc2, 0xdd, 0x8c, 0x8c, 0x99, 0x20, 0xcf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x13, 0x00, 0x00, 0xff, 0xff, 0x79, 0x7a, 0xdc, 0xca, 0x8a, 0x08, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // 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.SupportPackageIsVersion6 |
| |
| // TasksClient is the client API for Tasks service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type TasksClient interface { |
| // DEPRECATED - use Lease.payload instead. |
| // GetTask reads the current state of the task. Tasks must be created through |
| // some other interface, and should be immutable once created and exposed to |
| // the bots. |
| GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) |
| // DEPRECATED - use Lease.result instead. |
| // UpdateTaskResult updates the result. |
| UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error) |
| // DEPRECATED - precreate logs prior to sending to bot. |
| // AddTaskLog creates a new streaming log. The log is streamed and marked as |
| // completed through other interfaces (i.e., ByteStream). This can be called |
| // by the bot if it wants to create a new log; the server can also predefine |
| // logs that do not need to be created (e.g. `stdout`). |
| AddTaskLog(ctx context.Context, in *AddTaskLogRequest, opts ...grpc.CallOption) (*AddTaskLogResponse, error) |
| } |
| |
| type tasksClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewTasksClient(cc grpc.ClientConnInterface) TasksClient { |
| return &tasksClient{cc} |
| } |
| |
| func (c *tasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*Task, error) { |
| out := new(Task) |
| err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/GetTask", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *tasksClient) UpdateTaskResult(ctx context.Context, in *UpdateTaskResultRequest, opts ...grpc.CallOption) (*TaskResult, error) { |
| out := new(TaskResult) |
| err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *tasksClient) AddTaskLog(ctx context.Context, in *AddTaskLogRequest, opts ...grpc.CallOption) (*AddTaskLogResponse, error) { |
| out := new(AddTaskLogResponse) |
| err := c.cc.Invoke(ctx, "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // TasksServer is the server API for Tasks service. |
| type TasksServer interface { |
| // DEPRECATED - use Lease.payload instead. |
| // GetTask reads the current state of the task. Tasks must be created through |
| // some other interface, and should be immutable once created and exposed to |
| // the bots. |
| GetTask(context.Context, *GetTaskRequest) (*Task, error) |
| // DEPRECATED - use Lease.result instead. |
| // UpdateTaskResult updates the result. |
| UpdateTaskResult(context.Context, *UpdateTaskResultRequest) (*TaskResult, error) |
| // DEPRECATED - precreate logs prior to sending to bot. |
| // AddTaskLog creates a new streaming log. The log is streamed and marked as |
| // completed through other interfaces (i.e., ByteStream). This can be called |
| // by the bot if it wants to create a new log; the server can also predefine |
| // logs that do not need to be created (e.g. `stdout`). |
| AddTaskLog(context.Context, *AddTaskLogRequest) (*AddTaskLogResponse, error) |
| } |
| |
| // UnimplementedTasksServer can be embedded to have forward compatible implementations. |
| type UnimplementedTasksServer struct { |
| } |
| |
| func (*UnimplementedTasksServer) GetTask(ctx context.Context, req *GetTaskRequest) (*Task, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method GetTask not implemented") |
| } |
| func (*UnimplementedTasksServer) UpdateTaskResult(ctx context.Context, req *UpdateTaskResultRequest) (*TaskResult, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method UpdateTaskResult not implemented") |
| } |
| func (*UnimplementedTasksServer) AddTaskLog(ctx context.Context, req *AddTaskLogRequest) (*AddTaskLogResponse, error) { |
| return nil, status1.Errorf(codes.Unimplemented, "method AddTaskLog not implemented") |
| } |
| |
| func RegisterTasksServer(s *grpc.Server, srv TasksServer) { |
| s.RegisterService(&_Tasks_serviceDesc, srv) |
| } |
| |
| func _Tasks_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetTaskRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(TasksServer).GetTask(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/GetTask", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(TasksServer).GetTask(ctx, req.(*GetTaskRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Tasks_UpdateTaskResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdateTaskResultRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(TasksServer).UpdateTaskResult(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/UpdateTaskResult", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(TasksServer).UpdateTaskResult(ctx, req.(*UpdateTaskResultRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Tasks_AddTaskLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(AddTaskLogRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(TasksServer).AddTaskLog(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.devtools.remoteworkers.v1test2.Tasks/AddTaskLog", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(TasksServer).AddTaskLog(ctx, req.(*AddTaskLogRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _Tasks_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.devtools.remoteworkers.v1test2.Tasks", |
| HandlerType: (*TasksServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetTask", |
| Handler: _Tasks_GetTask_Handler, |
| }, |
| { |
| MethodName: "UpdateTaskResult", |
| Handler: _Tasks_UpdateTaskResult_Handler, |
| }, |
| { |
| MethodName: "AddTaskLog", |
| Handler: _Tasks_AddTaskLog_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/devtools/remoteworkers/v1test2/tasks.proto", |
| } |