public final class ProtoUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Status |
fromProto(Job.Status status) |
static TaskInfo |
fromProto(Job.TaskInfo taskInfo) |
static Job.Status |
toProto(Status status) |
static Job.TaskInfo |
toProto(TaskInfo taskInfo) |
public static Job.TaskInfo toProto(TaskInfo taskInfo)
taskInfo
- the task to convert to protopublic static Job.Status toProto(Status status)
status
- the status to convertpublic static TaskInfo fromProto(Job.TaskInfo taskInfo)
taskInfo
- the protocol buffer task information to convertTaskInfo
version of the given protocol buffer task infopublic static Status fromProto(Job.Status status)
status
- the protocol buffer status to convertStatus
type representing the given statusCopyright © 2023. All Rights Reserved.