Package com.google.genai.types
Class Endpoint
-
- All Implemented Interfaces:
public abstract class Endpoint extends JsonSerializable
An endpoint where you deploy models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classEndpoint.BuilderBuilder for Endpoint.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description Endpoint()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>name()Resource name of the endpoint. abstract Optional<String>deployedModelId()ID of the model that's deployed to the endpoint. static Endpoint.Builderbuilder()Instantiates a builder for Endpoint. abstract Endpoint.BuildertoBuilder()Creates a builder with the same values as this instance. static EndpointfromJson(String jsonString)Deserializes a JSON string to a Endpoint object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
deployedModelId
abstract Optional<String> deployedModelId()
ID of the model that's deployed to the endpoint.
-
builder
static Endpoint.Builder builder()
Instantiates a builder for Endpoint.
-
toBuilder
abstract Endpoint.Builder toBuilder()
Creates a builder with the same values as this instance.
-
-
-
-