File tree Expand file tree Collapse file tree
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,28 @@ public static Type bool() {
147147 public static Type timestamp () {
148148 return new Type (LegacySQLTypeName .TIMESTAMP );
149149 }
150+
151+ /**
152+ * Returns a {@link LegacySQLTypeName#DATE} field value.
153+ */
154+ public static Type date () {
155+ return new Type (LegacySQLTypeName .DATE );
156+ }
157+
158+ /**
159+ * Returns a {@link LegacySQLTypeName#TIME} field value.
160+ */
161+ public static Type time () {
162+ return new Type (LegacySQLTypeName .TIME );
163+ }
150164
165+ /**
166+ * Returns a {@link LegacySQLTypeName#DATETIME} field value.
167+ */
168+ public static Type datetime () {
169+ return new Type (LegacySQLTypeName .DATETIME );
170+ }
171+
151172 /**
152173 * Returns a {@link LegacySQLTypeName#RECORD} field value with associated list of sub-fields.
153174 */
You can’t perform that action at this time.
0 commit comments