Table of Contents

Class Endpoint

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

An endpoint where you deploy models.

public record Endpoint : IEquatable<Endpoint>
Inheritance
Endpoint
Implements
Inherited Members

Properties

DeployedModelId

ID of the model that's deployed to the endpoint.

[JsonPropertyName("deployedModelId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? DeployedModelId { get; set; }

Property Value

string

Name

Resource name of the endpoint.

[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a Endpoint object.

public static Endpoint? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

Endpoint

The deserialized Endpoint object, or null if deserialization fails.