Package com.google.genai.types
Class GoogleTypeDate.Builder
-
- All Implemented Interfaces:
public abstract class GoogleTypeDate.BuilderBuilder for GoogleTypeDate.
-
-
Constructor Summary
Constructors Constructor Description GoogleTypeDate.Builder()
-
Method Summary
Modifier and Type Method Description abstract GoogleTypeDate.Builderday(Integer day)Setter for day. GoogleTypeDate.BuilderclearDay()Clears the value of day field. abstract GoogleTypeDate.Buildermonth(Integer month)Setter for month. GoogleTypeDate.BuilderclearMonth()Clears the value of month field. abstract GoogleTypeDate.Builderyear(Integer year)Setter for year. GoogleTypeDate.BuilderclearYear()Clears the value of year field. abstract GoogleTypeDatebuild()-
-
Method Detail
-
day
abstract GoogleTypeDate.Builder day(Integer day)
Setter for day.
day: Day of a 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.
-
clearDay
@CanIgnoreReturnValue() GoogleTypeDate.Builder clearDay()
Clears the value of day field.
-
month
abstract GoogleTypeDate.Builder month(Integer month)
Setter for month.
month: Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
-
clearMonth
@CanIgnoreReturnValue() GoogleTypeDate.Builder clearMonth()
Clears the value of month field.
-
year
abstract GoogleTypeDate.Builder year(Integer year)
Setter for year.
year: Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
-
clearYear
@CanIgnoreReturnValue() GoogleTypeDate.Builder clearYear()
Clears the value of year field.
-
build
abstract GoogleTypeDate build()
-
-
-
-