public class Protos extends Object
| Constructor and Description |
|---|
Protos() |
| Modifier and Type | Method and Description |
|---|---|
static <M extends com.google.protobuf.Message,K> |
extractKey(String fieldName) |
static <M extends com.google.protobuf.Message> |
getDefaultInstance(Class<M> clazz)
Utility function for creating a default PB Messgae from a Class object that
works with both protoc 2.3.0 and 2.4.x.
|
static <M extends com.google.protobuf.Message> |
lineParser(String sep,
Class<M> msgClass) |
public static <M extends com.google.protobuf.Message> M getDefaultInstance(Class<M> clazz)
clazz - The class of the protocol buffer to createpublic static <M extends com.google.protobuf.Message,K> MapFn<M,K> extractKey(String fieldName)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.