Table of Contents

Class GoogleTypeDate

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents a whole or partial calendar date, such as a birthday.

public class GoogleTypeDate
Inheritance
GoogleTypeDate
Inherited Members
Extension Methods

Properties

Day

Day of the month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.

[JsonPropertyName("day")]
public int? Day { get; set; }

Property Value

int?

Month

Month of the year. Must be from 1 to 12, or 0 to specify a year without a month and day.

[JsonPropertyName("month")]
public int? Month { get; set; }

Property Value

int?

Year

Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.

[JsonPropertyName("year")]
public int? Year { get; set; }

Property Value

int?