get

open fun <T : MessageLite?> get(key: String, parser: Parser<T>): ListenableFuture<T>

Read a protocol buffer from disk

Return

value if present, default instance of T if absent

Parameters

key

to read from

parser

to parse with

<T>

proto type


open fun get(key: String): ListenableFuture<Array<Byte>>