diff --git a/clients/google-api-services-chat/v1/2.0.0/README.md b/clients/google-api-services-chat/v1/2.0.0/README.md index 0b570d68391..63ed59a7af2 100644 --- a/clients/google-api-services-chat/v1/2.0.0/README.md +++ b/clients/google-api-services-chat/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-chat - v1-rev20261025-2.9.2 + v1-rev20261026-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-chat:v1-rev20261025-2.9.2' + implementation 'com.google.apis:google-api-services-chat:v1-rev20261026-2.9.2' } ``` diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/CommonEventObject.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/CommonEventObject.java index 23dc4a2b33b..10369575eb9 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/CommonEventObject.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/CommonEventObject.java @@ -41,30 +41,42 @@ public final class CommonEventObject extends com.google.api.client.json.GenericJ /** * A map containing the current values of the widgets in the displayed card. The map keys are the - * string IDs assigned with each widget. The structure of the map value object is dependent on the - * widget type: **Note**: The following examples are formatted for Apps Script's V8 runtime. If - * you're using Rhino runtime, you must add `[""]` after the value. For example, instead of + * string `name` values assigned to each input widget (such as `TextInput.name`, + * `SelectionInput.name`, `DateTimePicker.name`, or `DecoratedText.SwitchControl.name`). The + * structure of the map value object is dependent on the widget type: **Note**: The following + * examples are formatted for Apps Script's V8 runtime. If you're using Rhino runtime, you must + * add `[""]` after the value. For example, instead of * `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`, format the event object as * `e.commonEventObject.formInputs.employeeName[""].stringInputs.value[0]`. To learn more about * runtimes in Apps Script, see the [V8 Runtime Overview](https://developers.google.com/apps- - * script/guides/v8-runtime). * Single-valued widgets (for example, a text box): a list of strings - * (only one element). **Example**: for a text input widget with `employeeName` as its ID, access - * the text input value with: `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`. - * * Multi-valued widgets (for example, checkbox groups): a list of strings. **Example**: for a - * multi-value widget with `participants` as its ID, access the value array with: - * `e.commonEventObject.formInputs.participants.stringInputs.value`. * **A date-time picker**: a - * [`DateTimeInput object`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#date-time-input). **Example**: For a picker with an ID of `myDTPicker`, access the + * script/guides/v8-runtime). * Single-valued widgets (for example, a `TextInput` widget, or a + * `SelectionInput` widget of type `DROPDOWN` or `RADIO_BUTTON`): a `StringInputs` object + * containing a single-element list (or an empty list if no selection is made). **Example**: for a + * text input widget with `employeeName` as its `name`, access the text input value with: + * `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`. * Multi-valued widgets + * (for example, a `SelectionInput` widget of type `CHECK_BOX`, `SWITCH`, or `MULTI_SELECT`): a + * `StringInputs` object containing the list of selected item `value` strings. **Example**: for a + * multi-value widget with `participants` as its `name`, access the value array with: + * `e.commonEventObject.formInputs.participants.stringInputs.value`. * **A + * `DecoratedText.SwitchControl` widget**: a `StringInputs` object. When `selected` is `true`, + * `stringInputs.value` contains the switch's `value` field (or `""` if `value` was not specified; + * if multiple switches share the same `name`, each selected switch's `value` is included in the + * list). When `selected` is `false`, the switch's `value` is omitted from `stringInputs.value`. * + * **A date-time picker (`DateTimePickerType.DATE_AND_TIME`)**: a [`DateTimeInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date-time- + * input). **Example**: For a picker with a `name` of `myDTPicker`, access the * [`DateTimeInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date- * time-input) object using `e.commonEventObject.formInputs.myDTPicker.dateTimeInput`. * **A date- - * only picker**: a [`DateInput object`](https://developers.google.com/workspace/add- - * ons/concepts/event-objects#date-input). **Example**: For a picker with an ID of `myDatePicker`, - * access the [`DateInput`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#date-input) object using `e.commonEventObject.formInputs.myDatePicker.dateInput`. * **A - * time-only picker**: a [`TimeInput object`](https://developers.google.com/workspace/add- - * ons/concepts/event-objects#time-input). **Example**: For a picker with an ID of `myTimePicker`, - * access the [`TimeInput`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#time-input) object using `e.commonEventObject.formInputs.myTimePicker.timeInput`. + * only picker (`DateTimePickerType.DATE_ONLY`)**: a [`DateInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date-input). + * **Example**: For a picker with a `name` of `myDatePicker`, access the + * [`DateInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date- + * input) object using `e.commonEventObject.formInputs.myDatePicker.dateInput`. * **A time-only + * picker (`DateTimePickerType.TIME_ONLY`)**: a [`TimeInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#time-input). + * **Example**: For a picker with a `name` of `myTimePicker`, access the + * [`TimeInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#time- + * input) object using `e.commonEventObject.formInputs.myTimePicker.timeInput`. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,30 +156,42 @@ public final class CommonEventObject extends com.google.api.client.json.GenericJ /** * A map containing the current values of the widgets in the displayed card. The map keys are the - * string IDs assigned with each widget. The structure of the map value object is dependent on the - * widget type: **Note**: The following examples are formatted for Apps Script's V8 runtime. If - * you're using Rhino runtime, you must add `[""]` after the value. For example, instead of + * string `name` values assigned to each input widget (such as `TextInput.name`, + * `SelectionInput.name`, `DateTimePicker.name`, or `DecoratedText.SwitchControl.name`). The + * structure of the map value object is dependent on the widget type: **Note**: The following + * examples are formatted for Apps Script's V8 runtime. If you're using Rhino runtime, you must + * add `[""]` after the value. For example, instead of * `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`, format the event object as * `e.commonEventObject.formInputs.employeeName[""].stringInputs.value[0]`. To learn more about * runtimes in Apps Script, see the [V8 Runtime Overview](https://developers.google.com/apps- - * script/guides/v8-runtime). * Single-valued widgets (for example, a text box): a list of strings - * (only one element). **Example**: for a text input widget with `employeeName` as its ID, access - * the text input value with: `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`. - * * Multi-valued widgets (for example, checkbox groups): a list of strings. **Example**: for a - * multi-value widget with `participants` as its ID, access the value array with: - * `e.commonEventObject.formInputs.participants.stringInputs.value`. * **A date-time picker**: a - * [`DateTimeInput object`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#date-time-input). **Example**: For a picker with an ID of `myDTPicker`, access the + * script/guides/v8-runtime). * Single-valued widgets (for example, a `TextInput` widget, or a + * `SelectionInput` widget of type `DROPDOWN` or `RADIO_BUTTON`): a `StringInputs` object + * containing a single-element list (or an empty list if no selection is made). **Example**: for a + * text input widget with `employeeName` as its `name`, access the text input value with: + * `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`. * Multi-valued widgets + * (for example, a `SelectionInput` widget of type `CHECK_BOX`, `SWITCH`, or `MULTI_SELECT`): a + * `StringInputs` object containing the list of selected item `value` strings. **Example**: for a + * multi-value widget with `participants` as its `name`, access the value array with: + * `e.commonEventObject.formInputs.participants.stringInputs.value`. * **A + * `DecoratedText.SwitchControl` widget**: a `StringInputs` object. When `selected` is `true`, + * `stringInputs.value` contains the switch's `value` field (or `""` if `value` was not specified; + * if multiple switches share the same `name`, each selected switch's `value` is included in the + * list). When `selected` is `false`, the switch's `value` is omitted from `stringInputs.value`. * + * **A date-time picker (`DateTimePickerType.DATE_AND_TIME`)**: a [`DateTimeInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date-time- + * input). **Example**: For a picker with a `name` of `myDTPicker`, access the * [`DateTimeInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date- * time-input) object using `e.commonEventObject.formInputs.myDTPicker.dateTimeInput`. * **A date- - * only picker**: a [`DateInput object`](https://developers.google.com/workspace/add- - * ons/concepts/event-objects#date-input). **Example**: For a picker with an ID of `myDatePicker`, - * access the [`DateInput`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#date-input) object using `e.commonEventObject.formInputs.myDatePicker.dateInput`. * **A - * time-only picker**: a [`TimeInput object`](https://developers.google.com/workspace/add- - * ons/concepts/event-objects#time-input). **Example**: For a picker with an ID of `myTimePicker`, - * access the [`TimeInput`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#time-input) object using `e.commonEventObject.formInputs.myTimePicker.timeInput`. + * only picker (`DateTimePickerType.DATE_ONLY`)**: a [`DateInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date-input). + * **Example**: For a picker with a `name` of `myDatePicker`, access the + * [`DateInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date- + * input) object using `e.commonEventObject.formInputs.myDatePicker.dateInput`. * **A time-only + * picker (`DateTimePickerType.TIME_ONLY`)**: a [`TimeInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#time-input). + * **Example**: For a picker with a `name` of `myTimePicker`, access the + * [`TimeInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#time- + * input) object using `e.commonEventObject.formInputs.myTimePicker.timeInput`. * @return value or {@code null} for none */ public java.util.Map getFormInputs() { @@ -176,30 +200,42 @@ public java.util.Map getFormInputs() { /** * A map containing the current values of the widgets in the displayed card. The map keys are the - * string IDs assigned with each widget. The structure of the map value object is dependent on the - * widget type: **Note**: The following examples are formatted for Apps Script's V8 runtime. If - * you're using Rhino runtime, you must add `[""]` after the value. For example, instead of + * string `name` values assigned to each input widget (such as `TextInput.name`, + * `SelectionInput.name`, `DateTimePicker.name`, or `DecoratedText.SwitchControl.name`). The + * structure of the map value object is dependent on the widget type: **Note**: The following + * examples are formatted for Apps Script's V8 runtime. If you're using Rhino runtime, you must + * add `[""]` after the value. For example, instead of * `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`, format the event object as * `e.commonEventObject.formInputs.employeeName[""].stringInputs.value[0]`. To learn more about * runtimes in Apps Script, see the [V8 Runtime Overview](https://developers.google.com/apps- - * script/guides/v8-runtime). * Single-valued widgets (for example, a text box): a list of strings - * (only one element). **Example**: for a text input widget with `employeeName` as its ID, access - * the text input value with: `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`. - * * Multi-valued widgets (for example, checkbox groups): a list of strings. **Example**: for a - * multi-value widget with `participants` as its ID, access the value array with: - * `e.commonEventObject.formInputs.participants.stringInputs.value`. * **A date-time picker**: a - * [`DateTimeInput object`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#date-time-input). **Example**: For a picker with an ID of `myDTPicker`, access the + * script/guides/v8-runtime). * Single-valued widgets (for example, a `TextInput` widget, or a + * `SelectionInput` widget of type `DROPDOWN` or `RADIO_BUTTON`): a `StringInputs` object + * containing a single-element list (or an empty list if no selection is made). **Example**: for a + * text input widget with `employeeName` as its `name`, access the text input value with: + * `e.commonEventObject.formInputs.employeeName.stringInputs.value[0]`. * Multi-valued widgets + * (for example, a `SelectionInput` widget of type `CHECK_BOX`, `SWITCH`, or `MULTI_SELECT`): a + * `StringInputs` object containing the list of selected item `value` strings. **Example**: for a + * multi-value widget with `participants` as its `name`, access the value array with: + * `e.commonEventObject.formInputs.participants.stringInputs.value`. * **A + * `DecoratedText.SwitchControl` widget**: a `StringInputs` object. When `selected` is `true`, + * `stringInputs.value` contains the switch's `value` field (or `""` if `value` was not specified; + * if multiple switches share the same `name`, each selected switch's `value` is included in the + * list). When `selected` is `false`, the switch's `value` is omitted from `stringInputs.value`. * + * **A date-time picker (`DateTimePickerType.DATE_AND_TIME`)**: a [`DateTimeInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date-time- + * input). **Example**: For a picker with a `name` of `myDTPicker`, access the * [`DateTimeInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date- * time-input) object using `e.commonEventObject.formInputs.myDTPicker.dateTimeInput`. * **A date- - * only picker**: a [`DateInput object`](https://developers.google.com/workspace/add- - * ons/concepts/event-objects#date-input). **Example**: For a picker with an ID of `myDatePicker`, - * access the [`DateInput`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#date-input) object using `e.commonEventObject.formInputs.myDatePicker.dateInput`. * **A - * time-only picker**: a [`TimeInput object`](https://developers.google.com/workspace/add- - * ons/concepts/event-objects#time-input). **Example**: For a picker with an ID of `myTimePicker`, - * access the [`TimeInput`](https://developers.google.com/workspace/add-ons/concepts/event- - * objects#time-input) object using `e.commonEventObject.formInputs.myTimePicker.timeInput`. + * only picker (`DateTimePickerType.DATE_ONLY`)**: a [`DateInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date-input). + * **Example**: For a picker with a `name` of `myDatePicker`, access the + * [`DateInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#date- + * input) object using `e.commonEventObject.formInputs.myDatePicker.dateInput`. * **A time-only + * picker (`DateTimePickerType.TIME_ONLY`)**: a [`TimeInput + * object`](https://developers.google.com/workspace/add-ons/concepts/event-objects#time-input). + * **Example**: For a picker with a `name` of `myTimePicker`, access the + * [`TimeInput`](https://developers.google.com/workspace/add-ons/concepts/event-objects#time- + * input) object using `e.commonEventObject.formInputs.myTimePicker.timeInput`. * @param formInputs formInputs or {@code null} for none */ public CommonEventObject setFormInputs(java.util.Map formInputs) { diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Card.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Card.java index 23c08298ed2..f6359c4fdd7 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Card.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Card.java @@ -52,13 +52,13 @@ public final class GoogleAppsCardV1Card extends com.google.api.client.json.GenericJson { /** - * The card's actions. Actions are added to the card's toolbar menu. [Google Workspace add- - * ons](https://developers.google.com/workspace/add-ons): For example, the following JSON - * constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": - * [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", - * "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": - * "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { - * "url": "https://example.com/feedback" } } } ] ``` + * The card's actions. Actions are added to the card's toolbar menu. Supports up to 10 + * `CardAction` items. [Google Workspace add-ons](https://developers.google.com/workspace/add- + * ons): For example, the following JSON constructs a card action menu with `Settings` and `Send + * Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { + * "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], + * "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { + * "openLink": { "url": "https://example.com/feedback" } } } ] ``` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,13 +134,13 @@ public final class GoogleAppsCardV1Card extends com.google.api.client.json.Gener private java.util.List sections; /** - * The card's actions. Actions are added to the card's toolbar menu. [Google Workspace add- - * ons](https://developers.google.com/workspace/add-ons): For example, the following JSON - * constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": - * [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", - * "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": - * "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { - * "url": "https://example.com/feedback" } } } ] ``` + * The card's actions. Actions are added to the card's toolbar menu. Supports up to 10 + * `CardAction` items. [Google Workspace add-ons](https://developers.google.com/workspace/add- + * ons): For example, the following JSON constructs a card action menu with `Settings` and `Send + * Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { + * "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], + * "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { + * "openLink": { "url": "https://example.com/feedback" } } } ] ``` * @return value or {@code null} for none */ public java.util.List getCardActions() { @@ -148,13 +148,13 @@ public java.util.List getCardActions() { } /** - * The card's actions. Actions are added to the card's toolbar menu. [Google Workspace add- - * ons](https://developers.google.com/workspace/add-ons): For example, the following JSON - * constructs a card action menu with `Settings` and `Send Feedback` options: ``` "card_actions": - * [ { "actionLabel": "Settings", "onClick": { "action": { "functionName": "goToView", - * "parameters": [ { "key": "viewType", "value": "SETTING" } ], "loadIndicator": - * "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { - * "url": "https://example.com/feedback" } } } ] ``` + * The card's actions. Actions are added to the card's toolbar menu. Supports up to 10 + * `CardAction` items. [Google Workspace add-ons](https://developers.google.com/workspace/add- + * ons): For example, the following JSON constructs a card action menu with `Settings` and `Send + * Feedback` options: ``` "card_actions": [ { "actionLabel": "Settings", "onClick": { "action": { + * "functionName": "goToView", "parameters": [ { "key": "viewType", "value": "SETTING" } ], + * "loadIndicator": "LoadIndicator.SPINNER" } } }, { "actionLabel": "Send Feedback", "onClick": { + * "openLink": { "url": "https://example.com/feedback" } } } ] ``` * @param cardActions cardActions or {@code null} for none */ public GoogleAppsCardV1Card setCardActions(java.util.List cardActions) { diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Section.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Section.java index 0283838687a..9f9c41eb780 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Section.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Section.java @@ -81,7 +81,8 @@ public final class GoogleAppsCardV1Section extends com.google.api.client.json.Ge private java.lang.Integer uncollapsibleWidgetsCount; /** - * All the widgets in the section. Must contain at least one widget. + * All the widgets in the section. Must contain at least one widget. A card supports up to 100 + * widgets across all sections. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -201,7 +202,8 @@ public GoogleAppsCardV1Section setUncollapsibleWidgetsCount(java.lang.Integer un } /** - * All the widgets in the section. Must contain at least one widget. + * All the widgets in the section. Must contain at least one widget. A card supports up to 100 + * widgets across all sections. * @return value or {@code null} for none */ public java.util.List getWidgets() { @@ -209,7 +211,8 @@ public java.util.List getWidgets() { } /** - * All the widgets in the section. Must contain at least one widget. + * All the widgets in the section. Must contain at least one widget. A card supports up to 100 + * widgets across all sections. * @param widgets widgets or {@code null} for none */ public GoogleAppsCardV1Section setWidgets(java.util.List widgets) { diff --git a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1SwitchControl.java b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1SwitchControl.java index bd28e44aa70..878356b43ca 100644 --- a/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1SwitchControl.java +++ b/clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1SwitchControl.java @@ -40,8 +40,8 @@ public final class GoogleAppsCardV1SwitchControl extends com.google.api.client.j private java.lang.String controlType; /** - * The name by which the switch widget is identified in a form input event. For details about - * working with form inputs, see [Receive form + * The name by which the switch widget is identified in a form input event (as the key in + * `CommonEventObject.form_inputs`). For details about working with form inputs, see [Receive form * data](https://developers.google.com/workspace/chat/read-form-data). * The value may be {@code null}. */ @@ -56,16 +56,19 @@ public final class GoogleAppsCardV1SwitchControl extends com.google.api.client.j private GoogleAppsCardV1Action onChangeAction; /** - * When `true`, the switch is selected. + * When `true`, the switch is selected, and its `value` is included in + * `CommonEventObject.form_inputs[name].string_inputs.value`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean selected; /** - * The value entered by a user, returned as part of a form input event. For details about working - * with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read- - * form-data). + * The value returned in `CommonEventObject.form_inputs[name].string_inputs` when the switch is + * selected (`selected` is `true`). If `selected` is `true` and `value` is unset, an empty string + * (`""`) is returned in `string_inputs.value`. When `selected` is `false`, this value is omitted + * from `string_inputs.value`. For details about working with form inputs, see [Receive form + * data](https://developers.google.com/workspace/chat/read-form-data). * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,8 +94,8 @@ public GoogleAppsCardV1SwitchControl setControlType(java.lang.String controlType } /** - * The name by which the switch widget is identified in a form input event. For details about - * working with form inputs, see [Receive form + * The name by which the switch widget is identified in a form input event (as the key in + * `CommonEventObject.form_inputs`). For details about working with form inputs, see [Receive form * data](https://developers.google.com/workspace/chat/read-form-data). * @return value or {@code null} for none */ @@ -101,8 +104,8 @@ public java.lang.String getName() { } /** - * The name by which the switch widget is identified in a form input event. For details about - * working with form inputs, see [Receive form + * The name by which the switch widget is identified in a form input event (as the key in + * `CommonEventObject.form_inputs`). For details about working with form inputs, see [Receive form * data](https://developers.google.com/workspace/chat/read-form-data). * @param name name or {@code null} for none */ @@ -129,7 +132,8 @@ public GoogleAppsCardV1SwitchControl setOnChangeAction(GoogleAppsCardV1Action on } /** - * When `true`, the switch is selected. + * When `true`, the switch is selected, and its `value` is included in + * `CommonEventObject.form_inputs[name].string_inputs.value`. * @return value or {@code null} for none */ public java.lang.Boolean getSelected() { @@ -137,7 +141,8 @@ public java.lang.Boolean getSelected() { } /** - * When `true`, the switch is selected. + * When `true`, the switch is selected, and its `value` is included in + * `CommonEventObject.form_inputs[name].string_inputs.value`. * @param selected selected or {@code null} for none */ public GoogleAppsCardV1SwitchControl setSelected(java.lang.Boolean selected) { @@ -146,9 +151,11 @@ public GoogleAppsCardV1SwitchControl setSelected(java.lang.Boolean selected) { } /** - * The value entered by a user, returned as part of a form input event. For details about working - * with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read- - * form-data). + * The value returned in `CommonEventObject.form_inputs[name].string_inputs` when the switch is + * selected (`selected` is `true`). If `selected` is `true` and `value` is unset, an empty string + * (`""`) is returned in `string_inputs.value`. When `selected` is `false`, this value is omitted + * from `string_inputs.value`. For details about working with form inputs, see [Receive form + * data](https://developers.google.com/workspace/chat/read-form-data). * @return value or {@code null} for none */ public java.lang.String getValue() { @@ -156,9 +163,11 @@ public java.lang.String getValue() { } /** - * The value entered by a user, returned as part of a form input event. For details about working - * with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read- - * form-data). + * The value returned in `CommonEventObject.form_inputs[name].string_inputs` when the switch is + * selected (`selected` is `true`). If `selected` is `true` and `value` is unset, an empty string + * (`""`) is returned in `string_inputs.value`. When `selected` is `false`, this value is omitted + * from `string_inputs.value`. For details about working with form inputs, see [Receive form + * data](https://developers.google.com/workspace/chat/read-form-data). * @param value value or {@code null} for none */ public GoogleAppsCardV1SwitchControl setValue(java.lang.String value) { diff --git a/clients/google-api-services-chat/v1/2.0.0/pom.xml b/clients/google-api-services-chat/v1/2.0.0/pom.xml index 722edfe437b..ba950deaef7 100644 --- a/clients/google-api-services-chat/v1/2.0.0/pom.xml +++ b/clients/google-api-services-chat/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-chat - v1-rev20261025-2.9.2 - Google Chat API v1-rev20261025-2.9.2 + v1-rev20261026-2.9.2 + Google Chat API v1-rev20261026-2.9.2 jar 2011 diff --git a/clients/google-api-services-chat/v1/README.md b/clients/google-api-services-chat/v1/README.md index 0b570d68391..63ed59a7af2 100644 --- a/clients/google-api-services-chat/v1/README.md +++ b/clients/google-api-services-chat/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-chat - v1-rev20261025-2.9.2 + v1-rev20261026-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-chat:v1-rev20261025-2.9.2' + implementation 'com.google.apis:google-api-services-chat:v1-rev20261026-2.9.2' } ```