| Modifier and Type | Method and Description |
|---|---|
static Schema |
fromJsonObject(com.google.gson.JsonObject jsonObject)
Creates a Schema from a JsonObject
|
static Schema |
fromJsonString(String jsonString)
Creates a Schema from a JsonString
|
public static Schema fromJsonString(String jsonString) throws com.google.protobuf.InvalidProtocolBufferException
jsonString - A valid Json String that can be parsed to a Schema object.Schema by parsing the input JSON string.com.google.protobuf.InvalidProtocolBufferException - if the String can't be parsed into a Schema proto.public static Schema fromJsonObject(com.google.gson.JsonObject jsonObject) throws com.google.protobuf.InvalidProtocolBufferException
jsonObject - A valid JSON object that can be parsed to a Schema object.Schema by parsing the input JSON object.com.google.protobuf.InvalidProtocolBufferException - if the jsonObject can't be parsed into a Schema proto.Copyright © 2024 Google LLC. All rights reserved.