public static class WorkerIdentity.Parsers extends Object
Constructor and Description |
---|
Parsers() |
Modifier and Type | Method and Description |
---|---|
static WorkerIdentity |
fromProto(WorkerIdentity proto)
Parses from a protobuf representation.
|
static WorkerIdentity |
toProto(WorkerIdentity workerIdentity)
Converts to a Protobuf representation.
|
public static WorkerIdentity fromProto(WorkerIdentity proto) throws ProtoParsingException
proto
- protoMissingRequiredFieldsParsingException
- if required fields are missingInvalidVersionParsingException
- if the version of the proto message is not validProtoParsingException
- if parsing failspublic static WorkerIdentity toProto(WorkerIdentity workerIdentity)
workerIdentity
- worker identityCopyright © 2023. All Rights Reserved.