@Immutable public final class WorkerIdentity extends Object
WorkerIdentity.Parsers
provides means of converting between a GRPC
representation and an instance of this class.Modifier and Type | Class and Description |
---|---|
static class |
WorkerIdentity.Parsers
Parsers for worker identity.
|
static class |
WorkerIdentity.ParserV0
Parser for legacy long-based worker IDs.
|
static class |
WorkerIdentity.ParserV1
Parser for
WorkerIdentity that is based on a UUID. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static WorkerIdentity |
fromProto(WorkerIdentity proto)
Converts from a Protobuf representation.
|
int |
hashCode() |
WorkerIdentity |
toProto()
Converts to Protobuf representation.
|
String |
toString() |
public static WorkerIdentity fromProto(WorkerIdentity proto) throws ProtoParsingException
proto
- the protobuf messageProtoParsingException
- when the protobuf message cannot be parsedpublic WorkerIdentity toProto()
Copyright © 2023. All Rights Reserved.