public final class FunctionDeclarationMaker
Helper class to create com.google.cloud.vertexai.api.FunctionDeclaration
Static Methods
fromJsonObject(JsonObject jsonObject)
public static FunctionDeclaration fromJsonObject(JsonObject jsonObject)
Creates a FunctionDeclaration from a JsonObject
Parameter | |
---|---|
Name | Description |
jsonObject |
com.google.gson.JsonObject A valid Json Object that can be parsed to a FunctionDeclaration. |
Returns | |
---|---|
Type | Description |
FunctionDeclaration |
a FunctionDeclaration by parsing the input json Object. |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
if the jsonObject can't be parsed into a FunctionDeclaration proto. |
fromJsonString(String jsonString)
public static FunctionDeclaration fromJsonString(String jsonString)
Creates a FunctionDeclaration from a JsonString
Parameter | |
---|---|
Name | Description |
jsonString |
String A valid Json String that can be parsed to a FunctionDeclaration. |
Returns | |
---|---|
Type | Description |
FunctionDeclaration |
a FunctionDeclaration by parsing the input json String. |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
if the String can't be parsed into a FunctionDeclaration proto. |
Constructors
FunctionDeclarationMaker()
public FunctionDeclarationMaker()