Class ProtoSerialization


  • public final class ProtoSerialization
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ProtoSerialization.Parser<T>
      Functional interface for the various protoToABC() methods above.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.projectnessie.versioned.ContentAttachment attachmentContent​(org.projectnessie.versioned.ContentAttachmentKey key, org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue value)  
      static org.projectnessie.versioned.ContentAttachment attachmentContent​(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key, org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue value)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey attachmentKey​(org.projectnessie.versioned.ContentAttachmentKey key)  
      static org.projectnessie.versioned.ContentAttachmentKey attachmentKey​(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key)  
      static java.lang.String attachmentKeyAsString​(org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey key)  
      static java.lang.String attachmentKeyContentIdAsString​(java.lang.String contentId)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey attachmentKeyFromString​(java.lang.String key)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.Key keyToProto​(org.projectnessie.versioned.Key key)  
      static org.projectnessie.versioned.persist.adapter.CommitLogEntry protoToCommitLogEntry​(byte[] bytes)  
      static org.projectnessie.versioned.persist.adapter.CommitLogEntry protoToCommitLogEntry​(com.google.protobuf.ByteString serialized)  
      static org.projectnessie.versioned.persist.adapter.ContentIdAndBytes protoToContentIdAndBytes​(org.projectnessie.versioned.persist.serialize.AdapterTypes.ContentIdWithBytes proto)  
      static org.projectnessie.versioned.Key protoToKey​(org.projectnessie.versioned.persist.serialize.AdapterTypes.Key key)  
      static org.projectnessie.versioned.persist.adapter.KeyList protoToKeyList​(byte[] bytes)  
      static org.projectnessie.versioned.persist.adapter.KeyList protoToKeyList​(com.google.protobuf.ByteString serialized)  
      static org.projectnessie.versioned.persist.adapter.KeyListEntry protoToKeyListEntry​(org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyListEntry proto)  
      static org.projectnessie.versioned.persist.adapter.KeyWithBytes protoToKeyWithBytes​(org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyWithBytes proto)  
      static org.projectnessie.versioned.persist.adapter.RefLog protoToRefLog​(byte[] bytes)  
      static org.projectnessie.versioned.persist.adapter.RefLog protoToRefLog​(com.google.protobuf.ByteString serialized)  
      static org.projectnessie.versioned.persist.adapter.RepoDescription protoToRepoDescription​(byte[] bytes)  
      static org.projectnessie.versioned.persist.adapter.RepoDescription protoToRepoDescription​(com.google.protobuf.ByteString bytes)  
      static org.projectnessie.versioned.persist.adapter.RepoDescription protoToRepoDescription​(org.projectnessie.versioned.persist.serialize.AdapterTypes.RepoProps proto)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.CommitLogEntry toProto​(org.projectnessie.versioned.persist.adapter.CommitLogEntry entry)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.ContentIdWithBytes toProto​(org.projectnessie.versioned.persist.adapter.ContentIdAndBytes x)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyList toProto​(org.projectnessie.versioned.persist.adapter.KeyList x)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyListEntry toProto​(org.projectnessie.versioned.persist.adapter.KeyListEntry x)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.KeyWithBytes toProto​(org.projectnessie.versioned.persist.adapter.KeyWithBytes x)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.RepoProps toProto​(org.projectnessie.versioned.persist.adapter.RepoDescription repoDescription)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey toProtoKey​(org.projectnessie.versioned.ContentAttachment contentAttachment)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentKey toProtoKey​(org.projectnessie.versioned.ContentAttachmentKey contentAttachmentKey)  
      static org.projectnessie.versioned.persist.serialize.AdapterTypes.AttachmentValue toProtoValue​(org.projectnessie.versioned.ContentAttachment contentAttachment)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)