@InterfaceAudience.Private public class ProtobufMessageConverter extends Object
toJsonElement(MessageOrBuilder)toJsonElement(MessageOrBuilder)toJavaObject(JsonElement)| Modifier and Type | Method and Description |
|---|---|
static Object |
toJavaObject(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder) |
static org.apache.hbase.thirdparty.com.google.gson.JsonElement |
toJsonElement(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder) |
static org.apache.hbase.thirdparty.com.google.gson.JsonElement |
toJsonElement(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder,
boolean removeType) |
static String |
toJsonString(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder) |
public static String toJsonString(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder) throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferExceptionpublic static org.apache.hbase.thirdparty.com.google.gson.JsonElement toJsonElement(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferExceptionpublic static org.apache.hbase.thirdparty.com.google.gson.JsonElement toJsonElement(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder,
boolean removeType)
throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferExceptionpublic static Object toJavaObject(org.apache.hbase.thirdparty.com.google.protobuf.MessageOrBuilder messageOrBuilder) throws org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferException
org.apache.hbase.thirdparty.com.google.protobuf.InvalidProtocolBufferExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.