Table of Contents

Class ListBatchJobsResponse

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

Config for batches.list return value.

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

Properties

BatchJobs

[JsonPropertyName("batchJobs")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<BatchJob>? BatchJobs { get; set; }

Property Value

List<BatchJob>

NextPageToken

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

Property Value

string

SdkHttpResponse

Used to retain the full HTTP response.

[JsonPropertyName("sdkHttpResponse")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpResponse? SdkHttpResponse { get; set; }

Property Value

HttpResponse

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ListBatchJobsResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ListBatchJobsResponse

The deserialized ListBatchJobsResponse object, or null if deserialization fails.