Skip to content

Commit a825ab9

Browse files
1 parent 3d3559b commit a825ab9

File tree

6 files changed

+369
-6
lines changed

6 files changed

+369
-6
lines changed

clients/google-api-services-docs/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-docs</artifactId>
25-
<version>v1-rev20251110-2.0.0</version>
25+
<version>v1-rev20251124-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-docs:v1-rev20251110-2.0.0'
38+
implementation 'com.google.apis:google-api-services-docs:v1-rev20251124-2.0.0'
3939
}
4040
```
4141

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.docs.v1.model;
18+
19+
/**
20+
* Properties of a DateElement.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Docs API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class DateElementProperties extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Determines how the date part of the DateElement will be displayed in the document. If unset,
34+
* the default value is DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be
35+
* formatted as `MMM d, y` in `en_US`, or locale specific equivalent.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String dateFormat;
40+
41+
/**
42+
* Output only. Indicates how the DateElement is displayed in the document.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String displayText;
47+
48+
/**
49+
* The locale of the document, as defined by the Unicode Common Locale Data Repository (CLDR)
50+
* project. For example, `en_US`. If unset, the default locale is `en_US`.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String locale;
55+
56+
/**
57+
* Determines how the time part of the DateElement will be displayed in the document. If unset,
58+
* the default value is TIME_FORMAT_DISABLED, indicating no time should be shown.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.lang.String timeFormat;
63+
64+
/**
65+
* The time zone of the DateElement, as defined by the Unicode Common Locale Data Repository
66+
* (CLDR) project. For example, `America/New York`. If unset, the default time zone is `etc/UTC`.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private java.lang.String timeZoneId;
71+
72+
/**
73+
* The point in time to represent, in seconds and nanoseconds since Unix epoch: January 1, 1970 at
74+
* midnight UTC. Timestamp is expected to be in UTC. If time_zone_id is set, the timestamp is
75+
* adjusted according to the time zone. For example, a timestamp of `18000` with a date format of
76+
* `DATE_FORMAT_ISO8601` and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as
77+
* `1970-01-01 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_8SO8601`, time
78+
* format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/New_York` will instead be
79+
* `1970-01-01 12:00 AM`.
80+
* The value may be {@code null}.
81+
*/
82+
@com.google.api.client.util.Key
83+
private String timestamp;
84+
85+
/**
86+
* Determines how the date part of the DateElement will be displayed in the document. If unset,
87+
* the default value is DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be
88+
* formatted as `MMM d, y` in `en_US`, or locale specific equivalent.
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.String getDateFormat() {
92+
return dateFormat;
93+
}
94+
95+
/**
96+
* Determines how the date part of the DateElement will be displayed in the document. If unset,
97+
* the default value is DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be
98+
* formatted as `MMM d, y` in `en_US`, or locale specific equivalent.
99+
* @param dateFormat dateFormat or {@code null} for none
100+
*/
101+
public DateElementProperties setDateFormat(java.lang.String dateFormat) {
102+
this.dateFormat = dateFormat;
103+
return this;
104+
}
105+
106+
/**
107+
* Output only. Indicates how the DateElement is displayed in the document.
108+
* @return value or {@code null} for none
109+
*/
110+
public java.lang.String getDisplayText() {
111+
return displayText;
112+
}
113+
114+
/**
115+
* Output only. Indicates how the DateElement is displayed in the document.
116+
* @param displayText displayText or {@code null} for none
117+
*/
118+
public DateElementProperties setDisplayText(java.lang.String displayText) {
119+
this.displayText = displayText;
120+
return this;
121+
}
122+
123+
/**
124+
* The locale of the document, as defined by the Unicode Common Locale Data Repository (CLDR)
125+
* project. For example, `en_US`. If unset, the default locale is `en_US`.
126+
* @return value or {@code null} for none
127+
*/
128+
public java.lang.String getLocale() {
129+
return locale;
130+
}
131+
132+
/**
133+
* The locale of the document, as defined by the Unicode Common Locale Data Repository (CLDR)
134+
* project. For example, `en_US`. If unset, the default locale is `en_US`.
135+
* @param locale locale or {@code null} for none
136+
*/
137+
public DateElementProperties setLocale(java.lang.String locale) {
138+
this.locale = locale;
139+
return this;
140+
}
141+
142+
/**
143+
* Determines how the time part of the DateElement will be displayed in the document. If unset,
144+
* the default value is TIME_FORMAT_DISABLED, indicating no time should be shown.
145+
* @return value or {@code null} for none
146+
*/
147+
public java.lang.String getTimeFormat() {
148+
return timeFormat;
149+
}
150+
151+
/**
152+
* Determines how the time part of the DateElement will be displayed in the document. If unset,
153+
* the default value is TIME_FORMAT_DISABLED, indicating no time should be shown.
154+
* @param timeFormat timeFormat or {@code null} for none
155+
*/
156+
public DateElementProperties setTimeFormat(java.lang.String timeFormat) {
157+
this.timeFormat = timeFormat;
158+
return this;
159+
}
160+
161+
/**
162+
* The time zone of the DateElement, as defined by the Unicode Common Locale Data Repository
163+
* (CLDR) project. For example, `America/New York`. If unset, the default time zone is `etc/UTC`.
164+
* @return value or {@code null} for none
165+
*/
166+
public java.lang.String getTimeZoneId() {
167+
return timeZoneId;
168+
}
169+
170+
/**
171+
* The time zone of the DateElement, as defined by the Unicode Common Locale Data Repository
172+
* (CLDR) project. For example, `America/New York`. If unset, the default time zone is `etc/UTC`.
173+
* @param timeZoneId timeZoneId or {@code null} for none
174+
*/
175+
public DateElementProperties setTimeZoneId(java.lang.String timeZoneId) {
176+
this.timeZoneId = timeZoneId;
177+
return this;
178+
}
179+
180+
/**
181+
* The point in time to represent, in seconds and nanoseconds since Unix epoch: January 1, 1970 at
182+
* midnight UTC. Timestamp is expected to be in UTC. If time_zone_id is set, the timestamp is
183+
* adjusted according to the time zone. For example, a timestamp of `18000` with a date format of
184+
* `DATE_FORMAT_ISO8601` and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as
185+
* `1970-01-01 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_8SO8601`, time
186+
* format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/New_York` will instead be
187+
* `1970-01-01 12:00 AM`.
188+
* @return value or {@code null} for none
189+
*/
190+
public String getTimestamp() {
191+
return timestamp;
192+
}
193+
194+
/**
195+
* The point in time to represent, in seconds and nanoseconds since Unix epoch: January 1, 1970 at
196+
* midnight UTC. Timestamp is expected to be in UTC. If time_zone_id is set, the timestamp is
197+
* adjusted according to the time zone. For example, a timestamp of `18000` with a date format of
198+
* `DATE_FORMAT_ISO8601` and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as
199+
* `1970-01-01 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_8SO8601`, time
200+
* format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/New_York` will instead be
201+
* `1970-01-01 12:00 AM`.
202+
* @param timestamp timestamp or {@code null} for none
203+
*/
204+
public DateElementProperties setTimestamp(String timestamp) {
205+
this.timestamp = timestamp;
206+
return this;
207+
}
208+
209+
@Override
210+
public DateElementProperties set(String fieldName, Object value) {
211+
return (DateElementProperties) super.set(fieldName, value);
212+
}
213+
214+
@Override
215+
public DateElementProperties clone() {
216+
return (DateElementProperties) super.clone();
217+
}
218+
219+
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.docs.v1.model;
18+
19+
/**
20+
* Inserts a date at the specified location.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Docs API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class InsertDateRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The properties of the date to insert.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private DateElementProperties dateElementProperties;
38+
39+
/**
40+
* Inserts the date at the end of the given header, footer or document body.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private EndOfSegmentLocation endOfSegmentLocation;
45+
46+
/**
47+
* Inserts the date at a specific index in the document. The date must be inserted inside the
48+
* bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index
49+
* (i.e. between an existing table and its preceding paragraph).
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private Location location;
54+
55+
/**
56+
* The properties of the date to insert.
57+
* @return value or {@code null} for none
58+
*/
59+
public DateElementProperties getDateElementProperties() {
60+
return dateElementProperties;
61+
}
62+
63+
/**
64+
* The properties of the date to insert.
65+
* @param dateElementProperties dateElementProperties or {@code null} for none
66+
*/
67+
public InsertDateRequest setDateElementProperties(DateElementProperties dateElementProperties) {
68+
this.dateElementProperties = dateElementProperties;
69+
return this;
70+
}
71+
72+
/**
73+
* Inserts the date at the end of the given header, footer or document body.
74+
* @return value or {@code null} for none
75+
*/
76+
public EndOfSegmentLocation getEndOfSegmentLocation() {
77+
return endOfSegmentLocation;
78+
}
79+
80+
/**
81+
* Inserts the date at the end of the given header, footer or document body.
82+
* @param endOfSegmentLocation endOfSegmentLocation or {@code null} for none
83+
*/
84+
public InsertDateRequest setEndOfSegmentLocation(EndOfSegmentLocation endOfSegmentLocation) {
85+
this.endOfSegmentLocation = endOfSegmentLocation;
86+
return this;
87+
}
88+
89+
/**
90+
* Inserts the date at a specific index in the document. The date must be inserted inside the
91+
* bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index
92+
* (i.e. between an existing table and its preceding paragraph).
93+
* @return value or {@code null} for none
94+
*/
95+
public Location getLocation() {
96+
return location;
97+
}
98+
99+
/**
100+
* Inserts the date at a specific index in the document. The date must be inserted inside the
101+
* bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index
102+
* (i.e. between an existing table and its preceding paragraph).
103+
* @param location location or {@code null} for none
104+
*/
105+
public InsertDateRequest setLocation(Location location) {
106+
this.location = location;
107+
return this;
108+
}
109+
110+
@Override
111+
public InsertDateRequest set(String fieldName, Object value) {
112+
return (InsertDateRequest) super.set(fieldName, value);
113+
}
114+
115+
@Override
116+
public InsertDateRequest clone() {
117+
return (InsertDateRequest) super.clone();
118+
}
119+
120+
}

clients/google-api-services-docs/v1/2.0.0/com/google/api/services/docs/v1/model/Request.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ public final class Request extends com.google.api.client.json.GenericJson {
120120
@com.google.api.client.util.Key
121121
private DeleteTableRowRequest deleteTableRow;
122122

123+
/**
124+
* Inserts a date.
125+
* The value may be {@code null}.
126+
*/
127+
@com.google.api.client.util.Key
128+
private InsertDateRequest insertDate;
129+
123130
/**
124131
* Inserts an inline image at the specified location.
125132
* The value may be {@code null}.
@@ -488,6 +495,23 @@ public Request setDeleteTableRow(DeleteTableRowRequest deleteTableRow) {
488495
return this;
489496
}
490497

498+
/**
499+
* Inserts a date.
500+
* @return value or {@code null} for none
501+
*/
502+
public InsertDateRequest getInsertDate() {
503+
return insertDate;
504+
}
505+
506+
/**
507+
* Inserts a date.
508+
* @param insertDate insertDate or {@code null} for none
509+
*/
510+
public Request setInsertDate(InsertDateRequest insertDate) {
511+
this.insertDate = insertDate;
512+
return this;
513+
}
514+
491515
/**
492516
* Inserts an inline image at the specified location.
493517
* @return value or {@code null} for none

0 commit comments

Comments
 (0)