public final class SchemaMakerHelper class to create com.google.cloud.vertexai.api.Schema
Static Methods
fromJsonObject(JsonObject jsonObject)
public static Schema fromJsonObject(JsonObject jsonObject)Creates a Schema from a JsonObject
| Parameter | |
|---|---|
| Name | Description |
jsonObject |
com.google.gson.JsonObjectA valid JSON object that can be parsed to a Schema object. |
| Returns | |
|---|---|
| Type | Description |
Schema |
a com.google.cloud.vertexai.api.Schema by parsing the input JSON object. |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
if the jsonObject can't be parsed into a Schema proto. |
fromJsonString(String jsonString)
public static Schema fromJsonString(String jsonString)Creates a Schema from a JsonString
| Parameter | |
|---|---|
| Name | Description |
jsonString |
StringA valid Json String that can be parsed to a Schema object. |
| Returns | |
|---|---|
| Type | Description |
Schema |
a com.google.cloud.vertexai.api.Schema by parsing the input JSON string. |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
if the String can't be parsed into a Schema proto. |