Table of Contents

Class DatasetDistributionDistributionBucket

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

Dataset bucket used to create a histogram for the distribution given a population of values. This data type is not supported in Gemini API.

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

Properties

Count

Output only. Number of values in the bucket.

[JsonPropertyName("count")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(StringToNullableLongConverter))]
public long? Count { get; set; }

Property Value

long?

Left

Output only. Left bound of the bucket.

[JsonPropertyName("left")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Left { get; set; }

Property Value

double?

Right

Output only. Right bound of the bucket.

[JsonPropertyName("right")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Right { get; set; }

Property Value

double?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a DatasetDistributionDistributionBucket object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

DatasetDistributionDistributionBucket

The deserialized DatasetDistributionDistributionBucket object, or null if deserialization fails.