@@ -60,9 +60,20 @@ public final class Form extends com.google.api.client.json.GenericJson {
6060 @ com .google .api .client .util .Key
6161 private java .lang .String linkedSheetId ;
6262
63+ /**
64+ * Output only. The publishing settings for a form. This field isn't set for legacy forms because
65+ * they don't have the `publish_settings` field. All newly created forms support publish settings.
66+ * Forms with `publish_settings` value set can call SetPublishSettings API to publish or unpublish
67+ * the form.
68+ * The value may be {@code null}.
69+ */
70+ @ com .google .api .client .util .Key
71+ private PublishSettings publishSettings ;
72+
6373 /**
6474 * Output only. The form URI to share with responders. This opens a page that allows the user to
65- * submit responses but not edit the questions.
75+ * submit responses but not edit the questions. For forms that have `publish_settings` value set,
76+ * this is the published form URI.
6677 * The value may be {@code null}.
6778 */
6879 @ com .google .api .client .util .Key
@@ -73,9 +84,11 @@ public final class Form extends com.google.api.client.json.GenericJson {
7384 * identify the revision on which the changes are based. The format of the revision ID may change
7485 * over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be
7586 * valid for 24 hours after it has been returned and cannot be shared across users. If the
76- * revision ID is unchanged between calls, then the form has not changed. Conversely, a changed ID
77- * (for the same form and user) usually means the form has been updated; however, a changed ID can
78- * also be due to internal factors such as ID format changes.
87+ * revision ID is unchanged between calls, then the form *content* has not changed. Conversely, a
88+ * changed ID (for the same form and user) usually means the form *content* has been updated;
89+ * however, a changed ID can also be due to internal factors such as ID format changes. Form
90+ * content excludes form metadata, including: * sharing settings (who has access to the form) *
91+ * `publish_settings` (if the form supports publishing and if it is published)
7992 * The value may be {@code null}.
8093 */
8194 @ com .google .api .client .util .Key
@@ -161,9 +174,33 @@ public Form setLinkedSheetId(java.lang.String linkedSheetId) {
161174 return this ;
162175 }
163176
177+ /**
178+ * Output only. The publishing settings for a form. This field isn't set for legacy forms because
179+ * they don't have the `publish_settings` field. All newly created forms support publish settings.
180+ * Forms with `publish_settings` value set can call SetPublishSettings API to publish or unpublish
181+ * the form.
182+ * @return value or {@code null} for none
183+ */
184+ public PublishSettings getPublishSettings () {
185+ return publishSettings ;
186+ }
187+
188+ /**
189+ * Output only. The publishing settings for a form. This field isn't set for legacy forms because
190+ * they don't have the `publish_settings` field. All newly created forms support publish settings.
191+ * Forms with `publish_settings` value set can call SetPublishSettings API to publish or unpublish
192+ * the form.
193+ * @param publishSettings publishSettings or {@code null} for none
194+ */
195+ public Form setPublishSettings (PublishSettings publishSettings ) {
196+ this .publishSettings = publishSettings ;
197+ return this ;
198+ }
199+
164200 /**
165201 * Output only. The form URI to share with responders. This opens a page that allows the user to
166- * submit responses but not edit the questions.
202+ * submit responses but not edit the questions. For forms that have `publish_settings` value set,
203+ * this is the published form URI.
167204 * @return value or {@code null} for none
168205 */
169206 public java .lang .String getResponderUri () {
@@ -172,7 +209,8 @@ public java.lang.String getResponderUri() {
172209
173210 /**
174211 * Output only. The form URI to share with responders. This opens a page that allows the user to
175- * submit responses but not edit the questions.
212+ * submit responses but not edit the questions. For forms that have `publish_settings` value set,
213+ * this is the published form URI.
176214 * @param responderUri responderUri or {@code null} for none
177215 */
178216 public Form setResponderUri (java .lang .String responderUri ) {
@@ -185,9 +223,11 @@ public Form setResponderUri(java.lang.String responderUri) {
185223 * identify the revision on which the changes are based. The format of the revision ID may change
186224 * over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be
187225 * valid for 24 hours after it has been returned and cannot be shared across users. If the
188- * revision ID is unchanged between calls, then the form has not changed. Conversely, a changed ID
189- * (for the same form and user) usually means the form has been updated; however, a changed ID can
190- * also be due to internal factors such as ID format changes.
226+ * revision ID is unchanged between calls, then the form *content* has not changed. Conversely, a
227+ * changed ID (for the same form and user) usually means the form *content* has been updated;
228+ * however, a changed ID can also be due to internal factors such as ID format changes. Form
229+ * content excludes form metadata, including: * sharing settings (who has access to the form) *
230+ * `publish_settings` (if the form supports publishing and if it is published)
191231 * @return value or {@code null} for none
192232 */
193233 public java .lang .String getRevisionId () {
@@ -199,9 +239,11 @@ public java.lang.String getRevisionId() {
199239 * identify the revision on which the changes are based. The format of the revision ID may change
200240 * over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be
201241 * valid for 24 hours after it has been returned and cannot be shared across users. If the
202- * revision ID is unchanged between calls, then the form has not changed. Conversely, a changed ID
203- * (for the same form and user) usually means the form has been updated; however, a changed ID can
204- * also be due to internal factors such as ID format changes.
242+ * revision ID is unchanged between calls, then the form *content* has not changed. Conversely, a
243+ * changed ID (for the same form and user) usually means the form *content* has been updated;
244+ * however, a changed ID can also be due to internal factors such as ID format changes. Form
245+ * content excludes form metadata, including: * sharing settings (who has access to the form) *
246+ * `publish_settings` (if the form supports publishing and if it is published)
205247 * @param revisionId revisionId or {@code null} for none
206248 */
207249 public Form setRevisionId (java .lang .String revisionId ) {
0 commit comments