📂 File Browser

AgentAI/vendor/google/apiclient-services/src/HangoutsChat
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AccessSettings.php
▶ Open 📄 View Source
🐘 AccessoryWidget.php
▶ Open 📄 View Source
🐘 ActionParameter.php
▶ Open 📄 View Source
🐘 ActionResponse.php
▶ Open 📄 View Source
🐘 ActionStatus.php
▶ Open 📄 View Source
🐘 Annotation.php
▶ Open 📄 View Source
🐘 AppCommandMetadata.php
▶ Open 📄 View Source
🐘 AttachedGif.php
▶ Open 📄 View Source
🐘 Attachment.php
▶ Open 📄 View Source
🐘 AttachmentDataRef.php
▶ Open 📄 View Source
🐘 Button.php
▶ Open 📄 View Source
🐘 CalendarEventLinkData.php
▶ Open 📄 View Source
🐘 Card.php
▶ Open 📄 View Source
🐘 CardAction.php
▶ Open 📄 View Source
🐘 CardHeader.php
▶ Open 📄 View Source
🐘 CardWithId.php
▶ Open 📄 View Source
🐘 ChatAppLogEntry.php
▶ Open 📄 View Source
🐘 ChatClientDataSourceMarkup.php
▶ Open 📄 View Source
🐘 ChatEmpty.php
▶ Open 📄 View Source
🐘 ChatSpaceLinkData.php
▶ Open 📄 View Source
🐘 Color.php
▶ Open 📄 View Source
🐘 CommonEventObject.php
▶ Open 📄 View Source
🐘 CompleteImportSpaceRequest.php
▶ Open 📄 View Source
🐘 CompleteImportSpaceResponse.php
▶ Open 📄 View Source
🐘 CustomEmoji.php
▶ Open 📄 View Source
🐘 CustomEmojiMetadata.php
▶ Open 📄 View Source
🐘 CustomEmojiPayload.php
▶ Open 📄 View Source
🐘 DateInput.php
▶ Open 📄 View Source
🐘 DateTimeInput.php
▶ Open 📄 View Source
🐘 DeletionMetadata.php
▶ Open 📄 View Source
🐘 DeprecatedEvent.php
▶ Open 📄 View Source
🐘 Dialog.php
▶ Open 📄 View Source
🐘 DialogAction.php
▶ Open 📄 View Source
🐘 DriveDataRef.php
▶ Open 📄 View Source
🐘 DriveLinkData.php
▶ Open 📄 View Source
🐘 DynamiteIntegrationLogEntry.php
▶ Open 📄 View Source
🐘 Emoji.php
▶ Open 📄 View Source
🐘 EmojiReactionSummary.php
▶ Open 📄 View Source
🐘 FindGroupChatsResponse.php
▶ Open 📄 View Source
🐘 FormAction.php
▶ Open 📄 View Source
🐘 ForwardedMetadata.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Action.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ActionParameter.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1AppUri.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1BorderStyle.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Button.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ButtonList.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Card.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1CardAction.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1CardFixedFooter.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1CardHeader.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Carousel.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1CarouselCard.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Chip.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ChipList.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1CollapseControl.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Column.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Columns.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1CommonWidgetAction.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Condition.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1DataSourceConfig.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1DateTimePicker.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1DecoratedText.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Divider.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1EventAction.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ExpressionData.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ExpressionDataCondition.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ExtraData.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1FooterWidget.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Grid.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1GridItem.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Icon.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Image.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ImageComponent.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1ImageCropStyle.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Intent.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1MaterialIcon.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1NestedWidget.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1OnClick.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1OpenLink.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1OverflowMenu.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1OverflowMenuItem.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1PlatformDataSource.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Section.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1SelectionInput.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1SelectionItem.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1SuggestionItem.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Suggestions.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1SwitchControl.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1TextInput.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1TextParagraph.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Trigger.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1UpdateVisibilityAction.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Validation.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Widget.php
▶ Open 📄 View Source
🐘 GoogleAppsCardV1Widgets.php
▶ Open 📄 View Source
🐘 GoogleChatV1Section.php
▶ Open 📄 View Source
🐘 Group.php
▶ Open 📄 View Source
🐘 HostAppDataSourceMarkup.php
▶ Open 📄 View Source
🐘 Image.php
▶ Open 📄 View Source
🐘 ImageButton.php
▶ Open 📄 View Source
🐘 Inputs.php
▶ Open 📄 View Source
🐘 KeyValue.php
▶ Open 📄 View Source
🐘 ListCustomEmojisResponse.php
▶ Open 📄 View Source
🐘 ListMembershipsResponse.php
▶ Open 📄 View Source
🐘 ListMessagesResponse.php
▶ Open 📄 View Source
🐘 ListReactionsResponse.php
▶ Open 📄 View Source
🐘 ListSectionItemsResponse.php
▶ Open 📄 View Source
🐘 ListSectionsResponse.php
▶ Open 📄 View Source
🐘 ListSpaceEventsResponse.php
▶ Open 📄 View Source
🐘 ListSpacesResponse.php
▶ Open 📄 View Source
🐘 MatchedUrl.php
▶ Open 📄 View Source
🐘 Media.php
▶ Open 📄 View Source
🐘 MeetSpaceLinkData.php
▶ Open 📄 View Source
🐘 Membership.php
▶ Open 📄 View Source
🐘 MembershipBatchCreatedEventData.php
▶ Open 📄 View Source
🐘 MembershipBatchDeletedEventData.php
▶ Open 📄 View Source
🐘 MembershipBatchUpdatedEventData.php
▶ Open 📄 View Source
🐘 MembershipCount.php
▶ Open 📄 View Source
🐘 MembershipCreatedEventData.php
▶ Open 📄 View Source
🐘 MembershipDeletedEventData.php
▶ Open 📄 View Source
🐘 MembershipUpdatedEventData.php
▶ Open 📄 View Source
🐘 Message.php
▶ Open 📄 View Source
🐘 MessageBatchCreatedEventData.php
▶ Open 📄 View Source
🐘 MessageBatchDeletedEventData.php
▶ Open 📄 View Source
🐘 MessageBatchUpdatedEventData.php
▶ Open 📄 View Source
🐘 MessageCreatedEventData.php
▶ Open 📄 View Source
🐘 MessageDeletedEventData.php
▶ Open 📄 View Source
🐘 MessageUpdatedEventData.php
▶ Open 📄 View Source
🐘 MoveSectionItemRequest.php
▶ Open 📄 View Source
🐘 MoveSectionItemResponse.php
▶ Open 📄 View Source
🐘 OnClick.php
▶ Open 📄 View Source
🐘 OpenLink.php
▶ Open 📄 View Source
🐘 PermissionSetting.php
▶ Open 📄 View Source
🐘 PermissionSettings.php
▶ Open 📄 View Source
🐘 PositionSectionRequest.php
▶ Open 📄 View Source
🐘 PositionSectionResponse.php
▶ Open 📄 View Source
🐘 QuotedMessageMetadata.php
▶ Open 📄 View Source
🐘 QuotedMessageSnapshot.php
▶ Open 📄 View Source
🐘 Reaction.php
▶ Open 📄 View Source
🐘 ReactionBatchCreatedEventData.php
▶ Open 📄 View Source
🐘 ReactionBatchDeletedEventData.php
▶ Open 📄 View Source
🐘 ReactionCreatedEventData.php
▶ Open 📄 View Source
🐘 ReactionDeletedEventData.php
▶ Open 📄 View Source
🐘 RichLinkMetadata.php
▶ Open 📄 View Source
🐘 SearchSpacesResponse.php
▶ Open 📄 View Source
🐘 Section.php
▶ Open 📄 View Source
🐘 SectionItem.php
▶ Open 📄 View Source
🐘 SelectionItems.php
▶ Open 📄 View Source
🐘 SetUpSpaceRequest.php
▶ Open 📄 View Source
🐘 SlashCommand.php
▶ Open 📄 View Source
🐘 SlashCommandMetadata.php
▶ Open 📄 View Source
🐘 Space.php
▶ Open 📄 View Source
🐘 SpaceBatchUpdatedEventData.php
▶ Open 📄 View Source
🐘 SpaceDataSource.php
▶ Open 📄 View Source
🐘 SpaceDetails.php
▶ Open 📄 View Source
🐘 SpaceEvent.php
▶ Open 📄 View Source
🐘 SpaceNotificationSetting.php
▶ Open 📄 View Source
🐘 SpaceReadState.php
▶ Open 📄 View Source
🐘 SpaceUpdatedEventData.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StringInputs.php
▶ Open 📄 View Source
🐘 TextButton.php
▶ Open 📄 View Source
🐘 TextParagraph.php
▶ Open 📄 View Source
🐘 Thread.php
▶ Open 📄 View Source
🐘 ThreadReadState.php
▶ Open 📄 View Source
🐘 TimeInput.php
▶ Open 📄 View Source
🐘 TimeZone.php
▶ Open 📄 View Source
🐘 UpdatedWidget.php
▶ Open 📄 View Source
🐘 UploadAttachmentRequest.php
▶ Open 📄 View Source
🐘 UploadAttachmentResponse.php
▶ Open 📄 View Source
🐘 User.php
▶ Open 📄 View Source
🐘 UserMentionMetadata.php
▶ Open 📄 View Source
🐘 WidgetMarkup.php
▶ Open 📄 View Source
🐘 WorkflowDataSourceMarkup.php
▶ Open 📄 View Source

📄 Source: GoogleAppsCardV1SelectionInput.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\HangoutsChat;

class GoogleAppsCardV1SelectionInput extends \Google\Collection
{
  /**
   * A set of checkboxes. Users can select one or more checkboxes.
   */
  public const TYPE_CHECK_BOX = 'CHECK_BOX';
  /**
   * A set of radio buttons. Users can select one radio button.
   */
  public const TYPE_RADIO_BUTTON = 'RADIO_BUTTON';
  /**
   * A set of switches. Users can turn on one or more switches.
   */
  public const TYPE_SWITCH = 'SWITCH';
  /**
   * A dropdown menu. Users can select one item from the menu. For Google Chat
   * apps, you can populate items using a dynamic data source and autosuggest
   * items as users type in the menu. For example, users can start typing the
   * name of a Google Chat space and the widget autosuggests the space. To
   * dynamically populate items for a dropdown menu, use one of the following
   * types of data sources: * Google Workspace data: Items are populated using
   * data from Google Workspace, such as Google Workspace users or Google Chat
   * spaces. * External data: Items are populated from an external data source
   * outside of Google Workspace. For examples of how to implement dropdown
   * menus for Chat apps, see [Add a dropdown
   * menu](https://developers.google.com/workspace/chat/design-interactive-card-
   * dialog#dropdown-menu) and [Dynamically populate drop-down
   * menus](https://developers.google.com/workspace/chat/design-interactive-
   * card-dialog#dynamic-dropdown-menu). [Google Workspace add-ons and Chat
   * apps](https://developers.google.com/workspace/extend):
   */
  public const TYPE_DROPDOWN = 'DROPDOWN';
  /**
   * A menu with a text box. Users can type and select one or more items. For
   * Google Workspace add-ons, you must populate items using a static array of
   * `SelectionItem` objects. For Google Chat apps, you can also populate items
   * using a dynamic data source and autosuggest items as users type in the
   * menu. For example, users can start typing the name of a Google Chat space
   * and the widget autosuggests the space. To dynamically populate items for a
   * multiselect menu, use one of the following types of data sources: * Google
   * Workspace data: Items are populated using data from Google Workspace, such
   * as Google Workspace users or Google Chat spaces. * External data: Items are
   * populated from an external data source outside of Google Workspace. For
   * examples of how to implement multiselect menus for Chat apps, see [Add a
   * multiselect menu](https://developers.google.com/workspace/chat/design-
   * interactive-card-dialog#multiselect-menu). [Google Workspace add-ons and
   * Chat apps](https://developers.google.com/workspace/extend):
   */
  public const TYPE_MULTI_SELECT = 'MULTI_SELECT';
  protected $collection_key = 'items';
  protected $dataSourceConfigsType = GoogleAppsCardV1DataSourceConfig::class;
  protected $dataSourceConfigsDataType = 'array';
  protected $externalDataSourceType = GoogleAppsCardV1Action::class;
  protected $externalDataSourceDataType = '';
  /**
   * Optional. Text that appears below the selection input field meant to assist
   * users by prompting them to enter a certain value. This text is always
   * visible. Available for Google Workspace add-ons that extend Google
   * Workspace Studio. Unavailable for Google Chat apps.
   *
   * @var string
   */
  public $hintText;
  protected $itemsType = GoogleAppsCardV1SelectionItem::class;
  protected $itemsDataType = 'array';
  /**
   * The text that appears above the selection input field in the user
   * interface. Specify text that helps the user enter the information your app
   * needs. For example, if users are selecting the urgency of a work ticket
   * from a drop-down menu, the label might be "Urgency" or "Select urgency".
   *
   * @var string
   */
  public $label;
  /**
   * For multiselect menus, the maximum number of items that a user can select.
   * Minimum value is 1 item. If unspecified, defaults to 3 items.
   *
   * @var int
   */
  public $multiSelectMaxSelectedItems;
  /**
   * For multiselect menus, the number of text characters that a user inputs
   * before the menu returns suggested selection items. If unset, the
   * multiselect menu uses the following default values: * If the menu uses a
   * static array of `SelectionInput` items, defaults to 0 characters and
   * immediately populates items from the array. * If the menu uses a dynamic
   * data source (`multi_select_data_source`), defaults to 3 characters before
   * querying the data source to return suggested items.
   *
   * @var int
   */
  public $multiSelectMinQueryLength;
  /**
   * Required. The name that identifies the selection input in a form input
   * event. For details about working with form inputs, see [Receive form
   * data](https://developers.google.com/workspace/chat/read-form-data).
   *
   * @var string
   */
  public $name;
  protected $onChangeActionType = GoogleAppsCardV1Action::class;
  protected $onChangeActionDataType = '';
  protected $platformDataSourceType = GoogleAppsCardV1PlatformDataSource::class;
  protected $platformDataSourceDataType = '';
  /**
   * The type of items that are displayed to users in a `SelectionInput` widget.
   * Selection types support different types of interactions. For example, users
   * can select one or more checkboxes, but they can only select one value from
   * a dropdown menu.
   *
   * @var string
   */
  public $type;

  /**
   * Optional. The data source configs for the selection control. This field
   * provides more fine-grained control over the data source. If specified, the
   * `multi_select_max_selected_items` field, `multi_select_min_query_length`
   * field, `external_data_source` field and `platform_data_source` field are
   * ignored. Available for Google Workspace add-ons that extend Google
   * Workspace Studio. Available for the `Dropdown widget` in Google Chat apps.
   * For the `Dropdown` widget in Google Chat apps, only one `DataSourceConfig`
   * is supported. If multiple `DataSourceConfig`s are set, only the first one
   * is used.
   *
   * @param GoogleAppsCardV1DataSourceConfig[] $dataSourceConfigs
   */
  public function setDataSourceConfigs($dataSourceConfigs)
  {
    $this->dataSourceConfigs = $dataSourceConfigs;
  }
  /**
   * @return GoogleAppsCardV1DataSourceConfig[]
   */
  public function getDataSourceConfigs()
  {
    return $this->dataSourceConfigs;
  }
  /**
   * An external data source, such as a relational database.
   *
   * @param GoogleAppsCardV1Action $externalDataSource
   */
  public function setExternalDataSource(GoogleAppsCardV1Action $externalDataSource)
  {
    $this->externalDataSource = $externalDataSource;
  }
  /**
   * @return GoogleAppsCardV1Action
   */
  public function getExternalDataSource()
  {
    return $this->externalDataSource;
  }
  /**
   * Optional. Text that appears below the selection input field meant to assist
   * users by prompting them to enter a certain value. This text is always
   * visible. Available for Google Workspace add-ons that extend Google
   * Workspace Studio. Unavailable for Google Chat apps.
   *
   * @param string $hintText
   */
  public function setHintText($hintText)
  {
    $this->hintText = $hintText;
  }
  /**
   * @return string
   */
  public function getHintText()
  {
    return $this->hintText;
  }
  /**
   * An array of selectable items. For example, an array of radio buttons or
   * checkboxes. Supports up to 100 items.
   *
   * @param GoogleAppsCardV1SelectionItem[] $items
   */
  public function setItems($items)
  {
    $this->items = $items;
  }
  /**
   * @return GoogleAppsCardV1SelectionItem[]
   */
  public function getItems()
  {
    return $this->items;
  }
  /**
   * The text that appears above the selection input field in the user
   * interface. Specify text that helps the user enter the information your app
   * needs. For example, if users are selecting the urgency of a work ticket
   * from a drop-down menu, the label might be "Urgency" or "Select urgency".
   *
   * @param string $label
   */
  public function setLabel($label)
  {
    $this->label = $label;
  }
  /**
   * @return string
   */
  public function getLabel()
  {
    return $this->label;
  }
  /**
   * For multiselect menus, the maximum number of items that a user can select.
   * Minimum value is 1 item. If unspecified, defaults to 3 items.
   *
   * @param int $multiSelectMaxSelectedItems
   */
  public function setMultiSelectMaxSelectedItems($multiSelectMaxSelectedItems)
  {
    $this->multiSelectMaxSelectedItems = $multiSelectMaxSelectedItems;
  }
  /**
   * @return int
   */
  public function getMultiSelectMaxSelectedItems()
  {
    return $this->multiSelectMaxSelectedItems;
  }
  /**
   * For multiselect menus, the number of text characters that a user inputs
   * before the menu returns suggested selection items. If unset, the
   * multiselect menu uses the following default values: * If the menu uses a
   * static array of `SelectionInput` items, defaults to 0 characters and
   * immediately populates items from the array. * If the menu uses a dynamic
   * data source (`multi_select_data_source`), defaults to 3 characters before
   * querying the data source to return suggested items.
   *
   * @param int $multiSelectMinQueryLength
   */
  public function setMultiSelectMinQueryLength($multiSelectMinQueryLength)
  {
    $this->multiSelectMinQueryLength = $multiSelectMinQueryLength;
  }
  /**
   * @return int
   */
  public function getMultiSelectMinQueryLength()
  {
    return $this->multiSelectMinQueryLength;
  }
  /**
   * Required. The name that identifies the selection input in a form input
   * event. For details about working with form inputs, see [Receive form
   * data](https://developers.google.com/workspace/chat/read-form-data).
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * If specified, the form is submitted when the selection changes. If not
   * specified, you must specify a separate button that submits the form. For
   * details about working with form inputs, see [Receive form
   * data](https://developers.google.com/workspace/chat/read-form-data).
   *
   * @param GoogleAppsCardV1Action $onChangeAction
   */
  public function setOnChangeAction(GoogleAppsCardV1Action $onChangeAction)
  {
    $this->onChangeAction = $onChangeAction;
  }
  /**
   * @return GoogleAppsCardV1Action
   */
  public function getOnChangeAction()
  {
    return $this->onChangeAction;
  }
  /**
   * A data source from Google Workspace.
   *
   * @param GoogleAppsCardV1PlatformDataSource $platformDataSource
   */
  public function setPlatformDataSource(GoogleAppsCardV1PlatformDataSource $platformDataSource)
  {
    $this->platformDataSource = $platformDataSource;
  }
  /**
   * @return GoogleAppsCardV1PlatformDataSource
   */
  public function getPlatformDataSource()
  {
    return $this->platformDataSource;
  }
  /**
   * The type of items that are displayed to users in a `SelectionInput` widget.
   * Selection types support different types of interactions. For example, users
   * can select one or more checkboxes, but they can only select one value from
   * a dropdown menu.
   *
   * Accepted values: CHECK_BOX, RADIO_BUTTON, SWITCH, DROPDOWN, MULTI_SELECT
   *
   * @param self::TYPE_* $type
   */
  public function setType($type)
  {
    $this->type = $type;
  }
  /**
   * @return self::TYPE_*
   */
  public function getType()
  {
    return $this->type;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppsCardV1SelectionInput::class, 'Google_Service_HangoutsChat_GoogleAppsCardV1SelectionInput');
← Back