Class ProtoSerialization
- java.lang.Object
-
- org.projectnessie.versioned.persist.adapter.serialize.ProtoSerialization
-
public final class ProtoSerialization extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProtoSerialization.Parser<T>Functional interface for the variousprotoToABC()methods above.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.projectnessie.versioned.ContentAttachmentattachmentContent(org.projectnessie.versioned.ContentAttachmentKey key, org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue value)static org.projectnessie.versioned.ContentAttachmentattachmentContent(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key, org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue value)static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKeyattachmentKey(org.projectnessie.versioned.ContentAttachmentKey key)static org.projectnessie.versioned.ContentAttachmentKeyattachmentKey(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key)static java.lang.StringattachmentKeyAsString(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key)static java.lang.StringattachmentKeyContentIdAsString(java.lang.String contentId)static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKeyattachmentKeyFromString(java.lang.String key)static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeykeyToProto(org.projectnessie.versioned.Key key)static org.projectnessie.versioned.persist.adapter.CommitLogEntryprotoToCommitLogEntry(byte[] bytes)static org.projectnessie.versioned.persist.adapter.CommitLogEntryprotoToCommitLogEntry(com.google.protobuf.ByteString serialized)static org.projectnessie.versioned.persist.adapter.ContentIdAndBytesprotoToContentIdAndBytes(org.projectnessie.versioned.persist.serialize.AdapterTypes.ContentIdWithBytes proto)static org.projectnessie.versioned.KeyprotoToKey(org.projectnessie.versioned.persist.serialize.AdapterTypes.Key key)static org.projectnessie.versioned.persist.adapter.KeyListprotoToKeyList(byte[] bytes)static org.projectnessie.versioned.persist.adapter.KeyListprotoToKeyList(com.google.protobuf.ByteString serialized)static org.projectnessie.versioned.persist.adapter.KeyListEntryprotoToKeyListEntry(org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyListEntry proto)static org.projectnessie.versioned.persist.adapter.KeyWithBytesprotoToKeyWithBytes(org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyWithBytes proto)static org.projectnessie.versioned.persist.adapter.RefLogprotoToRefLog(byte[] bytes)static org.projectnessie.versioned.persist.adapter.RefLogprotoToRefLog(com.google.protobuf.ByteString serialized)static org.projectnessie.versioned.persist.adapter.RepoDescriptionprotoToRepoDescription(byte[] bytes)static org.projectnessie.versioned.persist.adapter.RepoDescriptionprotoToRepoDescription(com.google.protobuf.ByteString bytes)static org.projectnessie.versioned.persist.adapter.RepoDescriptionprotoToRepoDescription(org.projectnessie.versioned.persist.serialize.AdapterTypes.RepoProps proto)static org.projectnessie.versioned.persist.serialize.AdapterTypes.CommitLogEntrytoProto(org.projectnessie.versioned.persist.adapter.CommitLogEntry entry)static org.projectnessie.versioned.persist.serialize.AdapterTypes.ContentIdWithBytestoProto(org.projectnessie.versioned.persist.adapter.ContentIdAndBytes x)static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyListtoProto(org.projectnessie.versioned.persist.adapter.KeyList x)static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyListEntrytoProto(org.projectnessie.versioned.persist.adapter.KeyListEntry x)static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyWithBytestoProto(org.projectnessie.versioned.persist.adapter.KeyWithBytes x)static org.projectnessie.versioned.persist.serialize.AdapterTypes.RepoPropstoProto(org.projectnessie.versioned.persist.adapter.RepoDescription repoDescription)static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKeytoProtoKey(org.projectnessie.versioned.ContentAttachment contentAttachment)static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKeytoProtoKey(org.projectnessie.versioned.ContentAttachmentKey contentAttachmentKey)static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValuetoProtoValue(org.projectnessie.versioned.ContentAttachment contentAttachment)
-
-
-
Method Detail
-
toProto
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.RepoProps toProto(org.projectnessie.versioned.persist.adapter.RepoDescription repoDescription)
-
protoToRepoDescription
public static org.projectnessie.versioned.persist.adapter.RepoDescription protoToRepoDescription(com.google.protobuf.ByteString bytes)
-
protoToRepoDescription
public static org.projectnessie.versioned.persist.adapter.RepoDescription protoToRepoDescription(byte[] bytes)
-
protoToRepoDescription
public static org.projectnessie.versioned.persist.adapter.RepoDescription protoToRepoDescription(org.projectnessie.versioned.persist.serialize.AdapterTypes.RepoProps proto)
-
toProto
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.CommitLogEntry toProto(org.projectnessie.versioned.persist.adapter.CommitLogEntry entry)
-
protoToCommitLogEntry
public static org.projectnessie.versioned.persist.adapter.CommitLogEntry protoToCommitLogEntry(com.google.protobuf.ByteString serialized)
-
protoToCommitLogEntry
public static org.projectnessie.versioned.persist.adapter.CommitLogEntry protoToCommitLogEntry(byte[] bytes)
-
toProto
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.ContentIdWithBytes toProto(org.projectnessie.versioned.persist.adapter.ContentIdAndBytes x)
-
protoToContentIdAndBytes
public static org.projectnessie.versioned.persist.adapter.ContentIdAndBytes protoToContentIdAndBytes(org.projectnessie.versioned.persist.serialize.AdapterTypes.ContentIdWithBytes proto)
-
toProto
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyList toProto(org.projectnessie.versioned.persist.adapter.KeyList x)
-
protoToKeyList
public static org.projectnessie.versioned.persist.adapter.KeyList protoToKeyList(com.google.protobuf.ByteString serialized)
-
protoToKeyList
public static org.projectnessie.versioned.persist.adapter.KeyList protoToKeyList(byte[] bytes)
-
toProto
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyWithBytes toProto(org.projectnessie.versioned.persist.adapter.KeyWithBytes x)
-
protoToKeyWithBytes
public static org.projectnessie.versioned.persist.adapter.KeyWithBytes protoToKeyWithBytes(org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyWithBytes proto)
-
toProto
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyListEntry toProto(org.projectnessie.versioned.persist.adapter.KeyListEntry x)
-
protoToKeyListEntry
public static org.projectnessie.versioned.persist.adapter.KeyListEntry protoToKeyListEntry(org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyListEntry proto)
-
keyToProto
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.Key keyToProto(org.projectnessie.versioned.Key key)
-
protoToRefLog
public static org.projectnessie.versioned.persist.adapter.RefLog protoToRefLog(com.google.protobuf.ByteString serialized)
-
protoToRefLog
public static org.projectnessie.versioned.persist.adapter.RefLog protoToRefLog(byte[] bytes)
-
protoToKey
public static org.projectnessie.versioned.Key protoToKey(org.projectnessie.versioned.persist.serialize.AdapterTypes.Key key)
-
toProtoKey
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey toProtoKey(org.projectnessie.versioned.ContentAttachmentKey contentAttachmentKey)
-
toProtoKey
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey toProtoKey(org.projectnessie.versioned.ContentAttachment contentAttachment)
-
toProtoValue
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue toProtoValue(org.projectnessie.versioned.ContentAttachment contentAttachment)
-
attachmentKey
public static org.projectnessie.versioned.ContentAttachmentKey attachmentKey(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key)
-
attachmentKey
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey attachmentKey(org.projectnessie.versioned.ContentAttachmentKey key)
-
attachmentContent
public static org.projectnessie.versioned.ContentAttachment attachmentContent(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key, org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue value)
-
attachmentContent
public static org.projectnessie.versioned.ContentAttachment attachmentContent(org.projectnessie.versioned.ContentAttachmentKey key, org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue value)
-
attachmentKeyContentIdAsString
public static java.lang.String attachmentKeyContentIdAsString(java.lang.String contentId)
-
attachmentKeyAsString
public static java.lang.String attachmentKeyAsString(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key)
-
attachmentKeyFromString
public static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey attachmentKeyFromString(java.lang.String key)
-
-